-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
131 lines (123 loc) · 3 KB
/
pyproject.toml
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
130
131
[project]
dependencies = [
"alembic",
"beautifulsoup4[charset-normalizer,lxml]",
"cachetools",
"fastapi",
"feedgen",
"gunicorn",
"httpx[brotli,zstd]",
"jinja2",
"mapbox-vector-tile",
"numpy",
"pillow",
"pyinstrument",
"pyproj",
"python-magic",
"python-multipart",
"pytz",
"scikit-learn",
"sentry-sdk[fastapi,httpx,sqlalchemy]",
"shapely",
"sqlalchemy[postgresql-asyncpg]",
"starlette-compress",
"supervisor",
"tzfpy",
"uvicorn[standard]",
"valkey[libvalkey]>=6.0.0",
"xmltodict",
"zstandard",
]
name = "openaedmap-backend"
requires-python = "~=3.13"
version = "0.0.0"
[tool.uv]
compile-bytecode = true
package = false
python-downloads = "never"
python-preference = "only-system"
[tool.ruff]
indent-width = 4
line-length = 120
target-version = "py313"
[tool.ruff.lint]
# custom + https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
ignore = [
"ARG001", # unused-function-argument
"ARG002", # unused-method-argument
"COM812", # missing-trailing-comma
"COM819", # prohibited-trailing-comma
"D206", # indent-with-spaces
"D300", # triple-single-quotes
"E111", # indentation-with-invalid-multiple
"E114", # indentation-with-invalid-multiple-comment
"E117", # over-indented
"E501", # line-too-long
"ISC001", # single-line-implicit-string-concatenation
"ISC002", # multi-line-implicit-string-concatenation
"Q000", # bad-quotes-inline-string
"Q001", # bad-quotes-multiline-string
"Q002", # bad-quotes-docstring
"Q003", # avoidable-escaped-quote
"SIM108", # if-else-block-instead-of-if-exp
"TRY003", # raise-vanilla-args
"W191", # tab-indentation
]
# see https://docs.astral.sh/ruff/rules/ for rules documentation
select = [
"A", # flake8-builtins
"ARG", # flake8-unused-arguments
"ASYNC", # flake8-async
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"DTZ", # flake8-datetimez
"E4", # pycodestyle
"E7",
"E9",
"F", # pyflakes
"FA", # flake8-future-annotations
"FLY", # flynt
"FURB", # refurb
"G", # flake8-logging-format
"I", # isort
"ICN", # flake8-import-conventions
"INT", # flake8-gettext
"ISC", # flake8-implicit-str-concat
"LOG", # flake8-logging
"N", # pep8-naming
"NPY", # numpy
"PERF", # perflint
"PIE", # flake8-pie
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"PYI", # flake8-pyi
"Q", # flake8-quotes
"RSE", # flake8-raise
"RUF", # ruff
"S", # flake8-bandit
"SIM", # flake8-simplify
"SLF", # flake8-self
"SLOT", # flake8-slots
"T10", # flake8-debugger
"T20", # flake8-print
"TID", # flake8-tidy-imports
"TRY", # tryceratops
"UP", # pyupgrade
"W6",
"YTT", # flake8-2020
]
fixable = ["ALL"]
unfixable = []
[tool.ruff.format]
quote-style = "single"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "lf"
[tool.ruff.lint.flake8-builtins]
builtins-ignorelist = ["filter", "format", "id", "open", "type"]
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
inline-quotes = "single"
multiline-quotes = "double"
[tool.ruff.lint.pylint]
max-args = 10