Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
129 lines (116 loc) · 2.27 KB
/
Copy pathpyproject.toml
File metadata and controls
129 lines (116 loc) · 2.27 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
118
119
120
121
122
123
124
125
126
127
128
129
#:schema https://www.schemastore.org/pyproject.json
[project]
name = "photon-docker"
version = "2.5.0"
description = "Unofficial docker image for the Photon Geocoder"
requires-python = ">=3.12"
dependencies = [
"apprise>=1.9.3",
"psutil>=5.9.0",
"python-dateutil>=2.9.0.post0",
"requests==2.34.2",
"schedule>=1.2.2",
"tqdm==4.70.1",
"zstandard>=0.23.0",
]
[dependency-groups]
dev = [
"deptry>=0.25.1",
"prek>=0.3.4",
"pytest>=9.0.2",
"pytest-cov>=7.0.0",
"ruff>=0.12.7",
"ty>=0.0.1a16",
"vulture>=2.14",
]
[build-system]
requires = ["uv_build>=0.12.3,<0.13.0"]
build-backend = "uv_build"
[tool.coverage.run]
omit = ["tests/*"]
[tool.ruff]
indent-width = 4
line-length = 120
[tool.ruff.lint]
ignore = [
"ANN", # flake8-annotations
"COM", # flake8-commas
"DJ", # django
"EXE", # flake8-executable
"BLE", # blind except
"PTH", # flake8-pathlib
"T10", # debugger
"TID", # flake8-tidy-imports
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D106",
"D107",
"D213",
"D203",
"D400",
"D415",
"G004",
"PLR2004",
"E501", # line too long
"TRY",
"SIM105", # faster without contextlib
] # select = ["ALL"]
extend-select = [
"A",
"B",
"S",
"SIM",
"T20",
"C901",
"RET",
"ICN",
"ISC",
"FA",
"C4",
"UP",
"I",
"E",
"W",
"F",
"RUF",
"ASYNC",
"FAST",
"FBT",
"DTZ",
"LOG",
"PIE",
"PYI",
"PT",
"ARG",
"N",
"PERF",
"FURB",
]
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.mccabe]
max-complexity = 15
[tool.ruff.lint.isort]
split-on-trailing-comma = false
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["S101", "FBT", "ARG", "PLR"]
# Static region lookup table: positional booleans are the db_available column.
"src/utils/regions.py" = ["FBT001", "FBT003"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
docstring-code-format = false
skip-magic-trailing-comma = true
[tool.tombi.format.rules]
indent-style = "space"
indent-width = 4
[tool.uv.build-backend]
module-name = "src"
module-root = ""