-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
89 lines (78 loc) · 1.9 KB
/
pyproject.toml
File metadata and controls
89 lines (78 loc) · 1.9 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
[tool.setuptools]
packages = ["x2gbfs"]
[project]
name = "x2gbfs"
version = "0.0.1"
dependencies = [
"requests~=2.32.5",
"python-decouple~=3.8",
"websockets~=15.0",
"xmltodict~=0.14",
"unidecode~=1.4",
]
[project.optional-dependencies]
testing = [
"ruff~=0.14.5",
"mypy~=1.19.1",
"black~=25.1.0",
"types-requests==2.32.4.20260107",
"types-urllib3==1.26.25.14",
"types-xmltodict==0.14.0.20241009",
]
[tool.black]
line-length = 120
skip-string-normalization = 1
[tool.ruff]
lint.select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"Q", # pydocstyle
"T", # mypy
"R", # pylint
"S", # flake8
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
lint.ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
"F401", # imported but unused
"S101", # use of assert detected
]
lint.fixable = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT"]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
line-length = 120
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
multiline-quotes = "single"
docstring-quotes = "double"
[[tool.mypy.overrides]]
# See https://github.com/HBNetwork/python-decouple/issues/122
module = "decouple"
ignore_missing_imports = true