Skip to content

Commit 86d0332

Browse files
committed
Add project scripts and update build system dependencies
1 parent 6c6c265 commit 86d0332

1 file changed

Lines changed: 26 additions & 8 deletions

File tree

pyproject.toml

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,28 @@ Repository = "https://github.com/data-science-extensions/toolbox-python"
3838
Changelog = "https://github.com/data-science-extensions/toolbox-python/releases"
3939
Issues = "https://github.com/data-science-extensions/toolbox-python/issues"
4040

41+
[project.scripts]
42+
lint = "cli.scripts:lint"
43+
check = "cli.scripts:check"
44+
lint-check = "cli.scripts:lint_check"
45+
sync = "cli.scripts:uv_sync"
46+
run-black = "cli.scripts:run_black"
47+
run-blacken_docs = "cli.scripts:run_blacken_docs"
48+
run-isort = "cli.scripts:run_isort"
49+
run-pycln = "cli.scripts:run_pycln"
50+
run-pyupgrade = "cli.scripts:run_pyupgrade"
51+
check-black = "cli.scripts:check_black"
52+
check-blacken_docs = "cli.scripts:check_blacken_docs"
53+
check-mypy = "cli.scripts:check_mypy"
54+
check-isort = "cli.scripts:check_isort"
55+
check-codespell = "cli.scripts:check_codespell"
56+
check-pylint = "cli.scripts:check_pylint"
57+
check-pycln = "cli.scripts:check_pycln"
58+
check-build = "cli.scripts:check_build"
59+
check-mkdocs = "cli.scripts:check_mkdocs"
60+
check-pytest = "cli.scripts:check_pytest"
61+
check-docstrings = "cli.scripts:check_docstrings_cli"
62+
4163
[dependency-groups]
4264
dev = [
4365
"black==25.*",
@@ -50,6 +72,7 @@ dev = [
5072
"pylint==3.*",
5173
"pyupgrade==3.*",
5274
# "ruff==0.*",
75+
"uv==0.*",
5376
]
5477
docs = [
5578
"black==25.*",
@@ -112,11 +135,11 @@ testpaths = [
112135

113136
[tool.mypy]
114137
ignore_missing_imports = true
115-
allow_redefinition = true
116138
pretty = true
117139
disable_error_code = [
118140
"valid-type",
119141
"attr-defined",
142+
"no-redef",
120143
]
121144

122145
[tool.isort]
@@ -181,10 +204,5 @@ files = [
181204
]
182205

183206
[build-system]
184-
requires = ["hatchling"]
185-
build-backend = "hatchling.build"
186-
187-
[tool.hatch.build.targets.wheel]
188-
packages = [
189-
"src/toolbox_python",
190-
]
207+
requires = ["uv_build>=0.7.19,<0.8.0"]
208+
build-backend = "uv_build"

0 commit comments

Comments
 (0)