@@ -59,20 +59,19 @@ typing = [
5959 " types-requests" ,
6060]
6161
62- [tool .hatch . version ]
63- source = " vcs"
62+ [tool .hatch ]
63+ version. source = " vcs"
6464
6565[tool .uv ]
66- preview = true
6766required-version = " >=0.5.19"
67+ preview = true
6868
6969[tool .ruff ]
7070line-length = 88
7171src = [
7272 " tap_shortcut" ,
7373 " tests" ,
7474]
75-
7675lint.select = [
7776 " ALL" ,
7877]
@@ -81,7 +80,6 @@ lint.ignore = [
8180 " DJ" , # flake8-django
8281 " ISC001" , # single-line-implicit-string-concatenation
8382]
84-
8583lint.per-file-ignores."noxfile.py" = [
8684 " ANN" ,
8785]
@@ -101,10 +99,10 @@ lint.isort.required-imports = [
10199]
102100lint.pydocstyle.convention = " google"
103101
104- [tool .deptry . package_module_name_map ]
105- mypy = " mypy"
106- ty = " ty"
107- types-requests = " requests"
102+ [tool .deptry ]
103+ package_module_name_map. mypy = " mypy"
104+ package_module_name_map. ty = " ty"
105+ package_module_name_map. types-requests = " requests"
108106
109107[tool .pyproject-fmt ]
110108max_supported_python = " 3.14"
@@ -126,26 +124,18 @@ env_list = [
126124 " 3.13" ,
127125 " 3.12" ,
128126]
129-
130- [tool .tox .env .dependencies ]
131- dependency_groups = [ " testing" ]
132- commands = [ [ " deptry" , " ." ] ]
133-
134- [tool .tox .env .sync ]
135- commands = [ [ " tap-shortcut" , { replace = " posargs" , default = [ " --config=ENV" ], extend = true } ] ]
136-
137- [tool .tox .env .typing ]
138- dependency_groups = [ " testing" , " typing" ]
139- commands = [
127+ env.dependencies.dependency_groups = [ " testing" ]
128+ env.dependencies.commands = [ [ " deptry" , " ." ] ]
129+ env.sync.commands = [ [ " tap-shortcut" , { replace = " posargs" , default = [ " --config=ENV" ], extend = true } ] ]
130+ env.typing.dependency_groups = [ " testing" , " typing" ]
131+ env.typing.commands = [
140132 [ " mypy" , " --strict" , { replace = " posargs" , default = [ " tap_shortcut" , " tests" ], extend = true } ],
141133 [ " ty" , " check" , { replace = " posargs" , default = [ " tap_shortcut" , " tests" ], extend = true } ],
142134]
143-
144- [tool .tox .env_run_base ]
145- runner = " uv-venv-lock-runner"
146- pass_env = [ " TAP_SHORTCUT_*" ]
147- dependency_groups = [ " testing" ]
148- commands = [ [ " pytest" , { replace = " posargs" , default = [ " tests" ], extend = true } ] ]
135+ env_run_base.runner = " uv-venv-lock-runner"
136+ env_run_base.pass_env = [ " TAP_SHORTCUT_*" ]
137+ env_run_base.dependency_groups = [ " testing" ]
138+ env_run_base.commands = [ [ " pytest" , { replace = " posargs" , default = [ " tests" ], extend = true } ] ]
149139
150140[tool .mypy ]
151141warn_redundant_casts = true
@@ -154,9 +144,8 @@ warn_no_return = true
154144warn_unreachable = true
155145warn_unused_configs = true
156146warn_unused_ignores = true
157-
158- [[tool .mypy .overrides ]]
159- ignore_missing_imports = true
160- module = [
161- " toolz.*" , # https://github.com/pytoolz/toolz/issues/496
147+ overrides = [
148+ { ignore_missing_imports = true , module = [
149+ " toolz.*" , # https://github.com/pytoolz/toolz/issues/496
150+ ] },
162151]
0 commit comments