-
Notifications
You must be signed in to change notification settings - Fork 15
/
pyproject.toml
31 lines (27 loc) · 1.06 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
[build-system]
# Minimum requirements for the build system to execute.
requires = ["setuptools", "wheel"] # PEP 508 specifications.
[tool.ruff]
target-version = "py38"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
#"A002", # builtin-argument-shadowing
"ANN101", # Missing type annotation for `self` in method
"D203", # One blank line required before class docstring
"D213", # Multi-line docstring summary should start at the second line
#"D400", # First line should end with a period (duplicates D415)
]
[tool.ruff.lint.per-file-ignores]
"pgtricks/tests/*.py" = [
"ANN001", # Missing type annotation for function argument
"ANN201", # Missing return type annotation for public function
#"ANN204", # Missing return type annotation for special method `__init__`
#"C408", # Unnecessary `dict` call (rewrite as a literal)
"PLR2004", # Magic value used in comparison
"S101", # Use of `assert` detected
"SLF001", # Private member accessed
]
[tool.ruff.lint.isort]
known-first-party = ["pgtricks"]
known-third-party = ["pytest"]