@@ -8,7 +8,7 @@ authors = [
88readme = " README.md"
99license = " Unlicense"
1010
11- requires-python = " >=3.11,<3.13 "
11+ requires-python = " >=3.11,<3.12 "
1212
1313dependencies = [
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
0 commit comments