diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2026-03-19 23:18:32 -0400 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2026-03-19 23:30:32 -0400 |
| commit | f570a865379fe62fbb07bb8dc70b2528fa735248 (patch) | |
| tree | afdf37f88b973f43cc992a25862b933ece334b6b /pyproject.toml | |
| parent | Add type ignore for tomllib import (diff) | |
| download | taskipy2-f570a865379fe62fbb07bb8dc70b2528fa735248.zip | |
Replace github actions CI with sourcehut builds
Diffstat (limited to 'pyproject.toml')
| -rw-r--r-- | pyproject.toml | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/pyproject.toml b/pyproject.toml index e3c9911..4907875 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,23 +51,33 @@ dev = [ "parameterized>=0.9.0; python_version >= '3.7'", ] -[tool.taskipy.tasks] -post_test = "./task lint" -lint_pylint = "pylint tests taskipy" -lint_mypy = "mypy tests taskipy" +[tool.taskipy.settings] +use_vars = true + +[tool.taskipy.variables] +tests_dir = "tests" +src_dir = "taskipy" + +[tool.taskipy.tasks.lint] +cmd = "./task lint_pylint && ./task lint_mypy" +help = "lint project with pylint for style and mypy for typings" + +[tool.taskipy.tasks.lint_pylint] +cmd = "pylint {src_dir} {tests_dir}" +help = "run python linter" + +[tool.taskipy.tasks.lint_mypy] +cmd = "mypy {src_dir} {tests_dir}" +help = "run static type checking" [tool.taskipy.tasks.test] -cmd = "python -m unittest -v tests/test_*.py" +cmd = "python -m unittest -v {tests_dir}/test_*.py" help = "runs all tests" [tool.taskipy.tasks.test_windows] -cmd = "python -m unittest -v tests\\test_windows.py" +cmd = "python -m unittest -v {tests_dir}\\test_windows.py" help = "this is a command that is run by our Windows CI on Github" -[tool.taskipy.tasks.lint] -cmd = "./task lint_pylint && ./task lint_mypy" -help = "lint project with pylint for style and mypy for typings" - [build-system] requires = ["hatchling"] build-backend = "hatchling.build" |