-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
57 lines (51 loc) · 1.32 KB
/
pyproject.toml
File metadata and controls
57 lines (51 loc) · 1.32 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
[project]
name = "tools"
version = "0.1.0"
description = "Collection of command-line tools"
requires-python = ">=3.12"
dependencies = []
[tool.mypy]
# Strict mode
strict = true
warn_return_any = true
warn_unused_configs = true
disallow_any_generics = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_equality = true
strict_concatenate = true
# Explicitly ban Any
disallow_any_unimported = true
disallow_any_expr = false # Too strict, would break typer Annotated types
disallow_any_decorated = false # Too strict for typer
disallow_any_explicit = true # Ban explicit Any usage
# Additional strictness
no_implicit_optional = true
show_error_codes = true
show_column_numbers = true
[tool.ruff]
target-version = "py312"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"RUF", # ruff-specific
]
ignore = ["E501"]
[tool.ruff.lint.isort]
known-first-party = ["tools"]