-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
109 lines (92 loc) · 2.51 KB
/
pyproject.toml
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
[tool.poetry]
name = "poetry-bumpversion"
version = "0.0.0"
description = "Poetry plugin to update __version__ in __init__ file and other files containing version strings"
authors = ["Munim Munna <[email protected]>"]
readme = "README.rst"
packages = [{ include = "poetry_bumpversion", from = "src" }]
repository = "https://github.com/monim67/poetry-bumpversion"
license = "MIT"
keywords = ["poetry", "bump", "version", "plugin"]
classifiers = ["Typing :: Typed"]
[tool.poetry.dependencies]
python = "^3.8"
poetry = "^1.2.0"
typing-extensions = "*"
pydantic = "*"
[tool.poetry.group.build.dependencies]
black = "^22.3.0"
isort = "^5.10.1"
mypy = "^1.7.1"
pydocstyle = {extras = ["toml"], version = "^6.1.1"}
pytest = "^7.1.3"
rstcheck = "^6.0.0.post1"
poethepoet = "^0.16.3"
coverage = { extras = ["toml"], version = "^6.4.4" }
pre-commit = "^2.20.0"
[tool.poetry.group.dev.dependencies]
tox = "^3.24.5"
docutils = "^0.18.1" # RST Preview
Pygments = "^2.12.0" # RST Preview
[tool.poetry.plugins."poetry.application.plugin"]
poetry_bumpversion = "poetry_bumpversion.plugin:BumpVersionPlugin"
[tool.poetry_bumpversion.file."src/poetry_bumpversion/__init__.py"]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
target_version = ["py38", "py39", "py310", "py311"]
[tool.isort]
py_version = "38"
profile = "black"
[tool.mypy]
python_version = "3.8"
namespace_packages = true
strict = true
[[tool.mypy.overrides]]
module = "cleo.*"
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.pydocstyle]
convention = "google"
add_select = "D401,D404"
[tool.coverage.run]
command_line = "-m pytest"
source = ["poetry_bumpversion"]
parallel = true
[tool.coverage.paths]
source = [
"src/poetry_bumpversion",
"**/site-packages/poetry_bumpversion",
]
[tool.tox]
legacy_tox_ini = """
[tox]
isolated_build = True
envlist = py{312,311,310,39,38}
[testenv]
allowlist_externals =
poetry
poe
skip_install = true
commands =
poetry install --no-root --only build
pip install -c tests/pip-constraints.txt .
poe lint
pytest
"""
[tool.poe.tasks]
lint = [
{ cmd = "python -m black --check src tests" },
{ cmd = "python -m isort --check-only src tests" },
{ cmd = "mypy src tests" },
{ cmd = "pydocstyle src" },
{ cmd = "rstcheck --report-level warning *.rst" },
]
test-cov = [
{ cmd = "coverage run" },
{ cmd = "coverage combine" },
{ cmd = "coverage lcov -o coverage/lcov.info" },
{ cmd = "coverage report" },
]