-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
62 lines (50 loc) · 1.63 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
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "src/dags/_version.py"
[tool.nbqa.config]
isort = "setup.cfg"
black = "pyproject.toml"
[tool.nbqa.mutate]
isort = 1
black = 1
pyupgrade = 1
[tool.nbqa.addopts]
isort = ["--treat-comment-as-code", "# %%", "--profile=black"]
pyupgrade = ["--py37-plus"]
[tool.ruff]
target-version = "py37"
select = ["ALL"]
fix = true
extend-ignore = [
"TRY", # ignore tryceratops.
"TCH", # ignore non-guarded type imports.
"D407", # Missing dashed underline after section.
# Others.
"RET504", # unnecessary variable assignment before return.
"S101", # raise errors for asserts.
"B905", # strict parameter for zip that was implemented in py310.
"I", # ignore isort
"ANN", # type annotating self
"FBT", # flake8-boolean-trap
"EM", # flake8-errmsg
"ANN401", # flake8-annotate typing.Any
"COM812", # trailing comma missing, but black takes care of that
"D401", # imperative mood for first line. too many false-positives.
"SLF001", # access private members.
"RET505", # unnecessary else after return.
"PLR2004", # macgic value used in comparison.
"INP001", # implicit namespace packages.
"PLR0913", # too many arguments to function call
# Temporary
"D100", # missing docstring in public module
"D103", # missing docstring in public function
"D104", # missing docstring in public package
"D202",
"D205",
"D400",
"D415",
]
[tool.ruff.per-file-ignores]
"docs/source/conf.py" = ["INP001", "ERA001", "RUF100"]