aboutsummaryrefslogtreecommitdiffstats
path: root/pyproject.toml
blob: 1672368dad9d8a0dd60c4653accd08f299236dd3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[tool.poetry]
name        = "poetry-plugin-taskipy"
version     = "0.1.0"
description = "Poetry plugin for taskipy"
authors     = ["Taskipy Team"]
license     = "MIT"
readme      = "README.md"
packages    = [{ include = "poetry_plugin_taskipy" }]

[tool.poetry.dependencies]
python  = "^3.7"
poetry  = "^1.4.2"
taskipy = { git = "https://github.com/taskipy/taskipy.git", branch = "feature/gh-32/add-poetry-plugin" }

[tool.poetry.group.test.dependencies]
pytest     = "^7.3.1"
pytest-cov = "^4.0.0"

[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]
test = "pytest --cov={module_dir} --cov-report=term-missing {tests_dir}"
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.plugins."poetry.application.plugin"]
taskipy = "poetry_plugin_taskipy.plugin:TaskipyPlugin"

[build-system]
requires      = ["poetry-core"]
build-backend = "poetry.core.masonry.api"