-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
117 lines (102 loc) · 2.94 KB
/
pyproject.toml
File metadata and controls
117 lines (102 loc) · 2.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
[project]
name = "fingr"
version = "1.0.0"
description = "Finger server, serving weather forecast based on location input"
readme = "README.md"
requires-python = ">=3.10"
license = {text = "GPL-3.0-or-later"}
authors = [
{name = "Lars Falk-Petersen", email = "dev@falkp.no"}
]
keywords = ["finger", "weather"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: System :: Networking",
"Operating System :: POSIX :: Linux",
"Environment :: Console",
"Topic :: Internet :: Finger",
]
dependencies = [
"metno-locationforecast~=2.1.0",
"geopy~=2.4.0",
"redis~=7.1.0",
"async_timeout~=5.0.0", # redis dep
"pysolar~=0.13",
"timezonefinder~=8.2.0",
"pytz~=2025.2",
"structlog~=25.5.0",
"prometheus-client~=0.23.0",
"urllib3>=2.6.3", # vuln in 2.6.2
]
[project.optional-dependencies]
dev = [
"bandit",
"tox",
"ruff",
"types-pytz",
"types-redis",
"fakeredis",
"ty",
]
[project.urls]
Homepage = "https://github.com/ways/fingr"
Repository = "https://github.com/ways/fingr"
[build-system]
requires = ["setuptools>=45", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = []
# Ruff configuration
[tool.ruff]
line-length = 100
target-version = "py38"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by formatter)
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
# Tox configuration
[tool.tox]
requires = ["tox>=4", "tox-uv"]
env_list = ["py", "ruff-format", "ruff-check", "bandit", "ty"]
[tool.tox.env_run_base]
description = "Run unit tests"
extras = ["dev"]
commands = [["python3", "-m", "unittest", "fingr_test.py"]]
[tool.tox.env.ruff-check]
description = "Run ruff linter"
deps = ["ruff"]
commands = [["ruff", "check", "--fix", "{toxinidir}/fingr/", "{toxinidir}/fingr.py"]]
[tool.tox.env.ruff-format]
description = "Check code formatting with ruff"
deps = ["ruff"]
commands = [["ruff", "format", "{toxinidir}/fingr/", "{toxinidir}/fingr.py"]]
[tool.tox.env.mypy]
description = "Check typing"
deps = ["mypy", "types-pytz"]
commands = [["mypy", "--follow-imports", "skip", "{toxinidir}/fingr/", "{toxinidir}/fingr.py"]]
[tool.tox.env.bandit]
description = "Check for security issues"
deps = ["bandit"]
commands = [["bandit", "-r", "{toxinidir}/fingr/", "{toxinidir}/fingr.py"]]
[tool.tox.env.ty]
description = "Type check with ty"
deps = ["ty"]
commands = [["ty", "check", "{toxinidir}/fingr/", "{toxinidir}/fingr.py"]]