diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2023-04-08 01:33:19 -0400 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2023-04-08 01:33:19 -0400 |
| commit | 596143799a21309db01619be52057ed1a696e6d5 (patch) | |
| tree | ca5caf6482ee5ca692dfcda0d47349627a99b7c0 /pyproject.toml | |
| parent | Add pyproject.toml and poetry lockfile (diff) | |
| download | poetry-plugin-taskipy2-596143799a21309db01619be52057ed1a696e6d5.zip | |
Add start of poetry plugin
Diffstat (limited to 'pyproject.toml')
| -rw-r--r-- | pyproject.toml | 47 |
1 files changed, 45 insertions, 2 deletions
diff --git a/pyproject.toml b/pyproject.toml index cb18cb5..23a7897 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,8 +8,51 @@ readme = "README.md" packages = [{ include = "poetry_plugin_taskipy" }] [tool.poetry.dependencies] -python = "^3.7" -poetry = "1.4.2" +python = "^3.7" +poetry = "1.4.2" +taskipy = "^1.10.4" + +[tool.poetry.group.lint.dependencies] +black = "^23.3.0" +isort = { version = "^5.12", python = "^3.8" } +flake8 = { version = "^6", python = "^3.8.1" } +flake8-pyproject = "^1.2.3" +autoflake = "^2.0.2" +mypy = "^1.2.0" + +[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} \ +&& autoflake --recursive --in-place --remove-all-unused-imports \ + --remove-unused-variables {module_dir} {tests_dir} +""" +lint_analyze = "flake8 {module_dir} {tests_dir}" +lint_types = "mypy {module_dir} {tests_dir}" + +[tool.taskipy.settings] +use_vars = true + +[tool.taskipy.variables] +module_dir = "poetry_plugin_taskipy" +tests_dir = "tests" + +[tool.isort] +profile = "black" + +[tool.flake8] +max-line-length = 88 + +[tool.poetry.extras] +plugin = ["poetry"] + +[tool.poetry.plugins."poetry.application.plugin"] +taskipy = "poetry_plugin_taskipy.plugin:TaskipyPlugin" [build-system] requires = ["poetry-core"] |