diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2026-03-20 21:45:44 -0400 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2026-03-21 13:37:31 -0400 |
| commit | 7440cb1df506b6bd79c088fb30fe1d7d47b8bf87 (patch) | |
| tree | c716e298e3362cbea44bd0755001b5b4c93551a6 /pyproject.toml | |
| parent | Remove poetry lockfile (diff) | |
| download | taskipy2-7440cb1df506b6bd79c088fb30fe1d7d47b8bf87.zip | |
Replace pylint with black, isort, and ruff
Diffstat (limited to 'pyproject.toml')
| -rw-r--r-- | pyproject.toml | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/pyproject.toml b/pyproject.toml index 2de2d3c..8b7536a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,41 +42,41 @@ Repository = "https://sr.ht/~eugenetriguba/taskipy" task = "taskipy.cli:main" [dependency-groups] -dev = [ - "pylint>=2.12.0; python_version >= '3.6' and python_version < '3.11'", - "pylint>=3.0.0; python_version >= '3.11'", - "mypy==0.971; python_version >= '3.6' and python_version < '3.9'", - "mypy>=1.19; python_version >= '3.9'", - "parameterized>=0.8.1; python_version == '3.6'", - "parameterized>=0.9.0; python_version >= '3.7'", +test = [ + "parameterized==0.8.1,<0.9.0; python_version == '3.6'", + "parameterized==0.9.0; python_version >= '3.7'", +] +lint = [ + "mypy==1.19.1; python_version >= '3.9'", + "ruff==0.15.7; python_version >= '3.7'", + "black==26.3.1; python_version >= '3.10'", + "isort==8.0.1; python_version >= '3.10'", ] [tool.taskipy.settings] use_vars = true [tool.taskipy.variables] +module_dir = "taskipy" 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_dir}/test_*.py" -help = "runs all tests" +[tool.taskipy.tasks] +lint = """ +task lint_format \ +&& task lint_analyze \ +&& task lint_types +""" +lint_format = """ +black {module_dir} {tests_dir} \ +&& isort {module_dir} {tests_dir} +""" +lint_analyze = "ruff check {module_dir} {tests_dir} --exclude {tests_dir}/fixtures" +lint_types = "mypy {module_dir} {tests_dir}" +test = "python -m unittest -v {tests_dir}/test_*.py" +test_windows = "python -m unittest -v {tests_dir}\\test_windows.py" -[tool.taskipy.tasks.test_windows] -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.isort] +profile = "black" [build-system] requires = ["hatchling"] |