-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
59 lines (43 loc) · 1.26 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
[project]
name = "filter-pre-commit-hooks"
version = "1.1.2"
requires-python = ">=3.9"
[dependency-groups]
dev = [
"mypy>=1.14.1",
"pytest>=8.3.4",
"ruff>=0.8.4",
]
[tool.uv]
package = false
[tool.ruff]
exclude = [
"scripts/filter_pre_commit_hooks.py",
"scripts/exec_cmds_defer_errors.py",
]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"COM812", # Redundant rule. Ruff recommends disabling it.
"D100", # Missing docstring in public module is fine.
"D104", # Missing docstring in public package is fine.
"D200", # One-line docstring on seperate line is fine.
"D202", # Blank line after docstring is preferred.
"D203", # Blank line before docstring not required.
"D205", # Blank line between summary and desc not required.
"D212", # First line in doc string must not be used.
"INP001", # Implicit namespace packages are fine.
"ISC001", # Redundant rule. Ruff recommends disabling it.
"T201", # Print statements are fine.
]
[tool.ruff.lint.extend-per-file-ignores]
"tests/**/*.py" = [
"ARG", # Unused function args are fine.
"S101", # Asserts are fine.
]
[tool.mypy]
disallow_untyped_defs = true
disallow_any_unimported = true
no_implicit_optional = true
check_untyped_defs = true
warn_unused_ignores = true