aboutsummaryrefslogtreecommitdiffstats
path: root/pyproject.toml
blob: 8a559e537cfd3621d84cd548599dd5569ffb2958 (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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
[tool.poetry]
name        = "poetry-plugin-taskipy2"
version     = "1.1.0"
description = "Poetry plugin for taskipy2"
repository  = "https://git.sr.ht/~eugenetriguba/poetry-plugin-taskipy2"
authors     = ["Eugene Triguba <hello@eugenetriguba.com>"]
license     = "MIT"
readme      = "README.md"
keywords    = ["tasks", "task runner", "development", "poetry", "plugin"]
classifiers = [
  "Intended Audience :: Developers",
  "License :: OSI Approved :: MIT License",
  "Topic :: Software Development :: Build Tools",
  "Programming Language :: Python :: 3.7",
  "Programming Language :: Python :: 3.8",
  "Programming Language :: Python :: 3.9",
  "Programming Language :: Python :: 3.10",
  "Programming Language :: Python :: 3.11",
  "Programming Language :: Python :: 3.12",
  "Programming Language :: Python :: 3.13",
  "Programming Language :: Python :: 3.14",
]
packages    = [{ include = "poetry_plugin_taskipy" }]

[tool.poetry.dependencies]
python   = "^3.7"
poetry   = [
  { version = "^1.4.2", python = ">=3.7,<3.9" },
  { version = "^2.0.0", python = "^3.9" },
]
taskipy2 = "^1.15.1"

[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"