-
Notifications
You must be signed in to change notification settings - Fork 6
/
pyproject.toml
74 lines (64 loc) · 1.8 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.black]
line-length = 120
skip-string-normalization = 1
[tool.ruff]
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
]
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
"S608", # TODO: Appropriate SQL injection counter measures should be discussed
]
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.per-file-ignores]
"__init__.py" = ["F401"]
[tool.ruff.flake8-quotes]
inline-quotes = "single"
multiline-quotes = "single"
docstring-quotes = "double"
[[tool.mypy.overrides]]
# See https://github.com/HBNetwork/python-decouple/issues/122
module = ["dagster_docker", "geopandas", "geopandas.array", "osgeo", "osgeo_utils.samples", "defusedxml", "defusedxml.ElementTree"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
# See https://github.com/HBNetwork/python-decouple/issues/122
module = ["geopandas"]