Skip to content

Commit 1919fa1

Browse files
chore: bump deps, split ruff config
1 parent 0d21bd4 commit 1919fa1

File tree

4 files changed

+94
-249
lines changed

4 files changed

+94
-249
lines changed

.tool-versions

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
nodejs 24.2.0
1+
nodejs 24.5.0
22
python 3.11.13
3-
ruby 3.4.4
4-
uv 0.7.3
3+
ruby 3.4.5
4+
uv 0.8.8

pyproject.toml

Lines changed: 1 addition & 130 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ authors = [
88
readme = "README.md"
99
license = "Unlicense"
1010

11-
requires-python = ">=3.11,<3.13"
11+
requires-python = ">=3.11,<3.12"
1212

1313
dependencies = [
1414
"arrow>=1.3.0,<2",
@@ -77,132 +77,3 @@ DEP002 = [
7777
"ruff",
7878
"uvicorn"
7979
]
80-
81-
[tool.mypy]
82-
python_version = "3.11"
83-
warn_return_any = true
84-
warn_unused_configs = true
85-
disallow_untyped_defs = true
86-
check_untyped_defs = true
87-
88-
[tool.pytest.ini_options]
89-
testpaths = ["tests"]
90-
python_files = "test_*.py"
91-
python_functions = "test_*"
92-
python_classes = "Test*"
93-
asyncio_mode = "auto"
94-
markers = [
95-
"unit: marks tests as unit tests",
96-
"integration: marks tests as integration tests",
97-
"e2e: marks tests as end-to-end tests",
98-
"benchmark: marks performance benchmark tests"
99-
]
100-
101-
[tool.coverage.run]
102-
source = ["{{ cookiecutter.python_package_import_name }}"]
103-
omit = [
104-
"*/tests/*",
105-
"*/migrations/*",
106-
"*/alembic/*"
107-
]
108-
109-
[tool.coverage.report]
110-
exclude_lines = [
111-
"pragma: no cover",
112-
"def __repr__",
113-
"raise NotImplementedError",
114-
"if TYPE_CHECKING:",
115-
"pass",
116-
"..."
117-
]
118-
119-
[tool.ruff]
120-
# Fix without reporting on leftover violations
121-
fix-only = true
122-
123-
# Enumerate all fixed violations
124-
show-fixes = true
125-
126-
# Indent width (default: 4)
127-
indent-width = 4
128-
129-
# Black (default: 88)
130-
line-length = 130
131-
132-
# Exclude a variety of commonly ignored directories.
133-
exclude = [
134-
".bzr",
135-
".direnv",
136-
"dist",
137-
".eggs",
138-
".git",
139-
".git-rewrite",
140-
".hg",
141-
".mypy_cache",
142-
".nox",
143-
".pants.d",
144-
"__pycache__",
145-
".pytype",
146-
".ruff_cache",
147-
".svn",
148-
".tox",
149-
".venv",
150-
"__pypackages__",
151-
"_build",
152-
"buck-out",
153-
"build",
154-
"dist",
155-
"node_modules",
156-
"venv",
157-
]
158-
159-
# Assume Python 3.11
160-
target-version = "py311"
161-
162-
[tool.ruff.format]
163-
# Use spaces instead of tabs
164-
indent-style = "space"
165-
166-
# Use `\n` line endings for all files
167-
line-ending = "lf"
168-
169-
# Set quote style for strings
170-
quote-style = "preserve"
171-
172-
[tool.ruff.lint]
173-
select = [
174-
# pycodestyle
175-
"E",
176-
# Pyflakes
177-
"F",
178-
# pyupgrade
179-
"UP",
180-
# flake8-bugbear
181-
"B",
182-
# flake8-simplify
183-
"SIM",
184-
# isort
185-
"I",
186-
]
187-
ignore = ["D203", "E203", "E251", "E266", "E401", "E402", "E501", "F401", "F403", "F841"]
188-
189-
# Allow unused variables when underscore-prefixed.
190-
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
191-
192-
# Allow autofix for all enabled rules (when `--fix`) is provided.
193-
fixable = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TID", "TRY", "UP", "YTT"]
194-
195-
# unfixable = []
196-
197-
[tool.ruff.lint.isort]
198-
combine-as-imports = true
199-
from-first = false
200-
no-sections = true
201-
order-by-type = true
202-
203-
[tool.ruff.lint.flake8-quotes]
204-
docstring-quotes = "double"
205-
206-
[tool.ruff.lint.mccabe]
207-
# Unlike Flake8, default to a complexity level of 10.
208-
max-complexity = 10

ruff.toml

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# Fix without reporting on leftover violations
2+
fix-only = true
3+
4+
# Enumerate all fixed violations
5+
show-fixes = true
6+
7+
# Indent width (default: 4)
8+
indent-width = 4
9+
10+
# Black (default: 88)
11+
line-length = 130
12+
13+
# Exclude a variety of commonly ignored directories.
14+
exclude = [
15+
".bzr",
16+
".direnv",
17+
"dist",
18+
".eggs",
19+
".git",
20+
".git-rewrite",
21+
".hg",
22+
".mypy_cache",
23+
".nox",
24+
".pants.d",
25+
"__pycache__",
26+
".pytype",
27+
".ruff_cache",
28+
".svn",
29+
".tox",
30+
".venv",
31+
"__pypackages__",
32+
"_build",
33+
"buck-out",
34+
"build",
35+
"dist",
36+
"node_modules",
37+
"venv",
38+
]
39+
40+
# Assume Python 3.13
41+
target-version = "py313"
42+
43+
[format]
44+
# Use spaces instead of tabs
45+
indent-style = "space"
46+
47+
# Use `\n` line endings for all files
48+
line-ending = "lf"
49+
50+
# Set quote style for strings
51+
quote-style = "preserve"
52+
53+
[lint]
54+
select = [
55+
# pycodestyle
56+
"E",
57+
# Pyflakes
58+
"F",
59+
# pyupgrade
60+
"UP",
61+
# flake8-bugbear
62+
"B",
63+
# flake8-simplify
64+
"SIM",
65+
# isort
66+
"I",
67+
]
68+
ignore = ["D203", "E203", "E251", "E266", "E401", "E402", "E501", "F401", "F403", "F841"]
69+
70+
# Allow unused variables when underscore-prefixed.
71+
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
72+
73+
# Allow autofix for all enabled rules (when `--fix`) is provided.
74+
fixable = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TID", "TRY", "UP", "YTT"]
75+
76+
[lint.isort]
77+
combine-as-imports = true
78+
from-first = false
79+
no-sections = true
80+
order-by-type = true
81+
82+
[lint.flake8-quotes]
83+
docstring-quotes = "double"
84+
85+
[lint.mccabe]
86+
# Unlike Flake8, default to a complexity level of 10.
87+
max-complexity = 10

0 commit comments

Comments
 (0)