-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
120 lines (101 loc) · 2.15 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "adventofcode"
version = "0.1.0"
description = "Advent of Code solutions"
readme = "README.md"
requires-python = ">=3.8"
dependencies = [
"parse>=1.20.2",
"pillow>=10.4.0",
]
[tool.setuptools]
package-dir = { "" = "src" }
[dependency-groups]
dev = [
"mypy>=1.13.0",
"pre-commit>=3.5.0",
"ruff>=0.8.1",
"types-editdistance>=0.8.0.20240421",
"types-pillow>=10.2.0.20240822",
]
[tool.ruff]
line-length = 79
exclude = [
".git",
"__pycache__",
"*/static/CACHE/*",
"media",
"venv",
"ampli/*",
]
[tool.ruff.lint]
select = ["ALL"]
preview = true
ignore = [
"T201",
"ERA001",
"D",
"FA",
"DOC",
"COM812",
"CPY001",
"ISC",
"Q001",
"PLR",
"A001",
"C901",
"ANN",
"FBT",
"SLF001",
"PLC",
"PTH123",
"PLW",
"N806",
"N803",
"DTZ007",
"S",
]
allowed-confusables = ["’", " "]
[tool.ruff.format]
quote-style = "single"
preview = true
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
multiline-quotes = "single"
[tool.ruff.lint.flake8-annotations]
ignore-fully-untyped = true
[tool.ruff.lint.flake8-builtins]
builtins-ignorelist = ["list", "filter"]
builtins-allowed-modules = ["email", "statistics", "logging", "keyword"]
[tool.mypy]
warn_unused_configs = true
no_implicit_reexport = true
disallow_subclassing_any = true
# Disallow dynamic typing
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
# Require explicit types
no_implicit_optional = true
strict_optional = true
warn_return_any = true
# Disallow unused "type: ignore" comments
warn_unused_ignores = true
# Require type hints for variables
disallow_any_generics = true
disallow_any_explicit = true
disallow_any_expr = true
# Enforce strict equality checks
strict_equality = true
# Enable warnings for unreachable code and redundant casts
warn_unreachable = true
warn_redundant_casts = true
# Miscellaneous settings
check_untyped_defs = true
implicit_reexport = false
show_error_codes = true
exclude = [".venv"]