-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
150 lines (133 loc) · 3.48 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line_length = 79
target_version = ["py37"]
[tool.coverage.run]
branch = true
source = ["badabump"]
[tool.coverage.paths]
source = ["src/"]
[tool.coverage.report]
exclude_lines = [
"if TYPE_CHECKING:",
"@overload",
]
omit = [
"src/*/__main__.py",
"src/*/annotations.py",
]
fail_under = 95
skip_covered = true
show_missing = true
[tool.isort]
profile = "attrs"
combine_as_imports = true
force_alphabetical_sort_within_sections = true
lines_between_types = 0
src_paths = ["src/"]
virtual_env = ".venv/"
[tool.mypy]
allow_untyped_globals = true
check_untyped_defs = true
disallow_any_decorated = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
exclude = ["docs/", "migrations/", "tests/"]
follow_imports = "normal"
follow_imports_for_stubs = true
ignore_missing_imports = false
mypy_path = "src/"
namespace_packages = true
no_implicit_optional = true
python_executable = ".venv/bin/python3"
show_column_numbers = true
show_error_codes = true
warn_redundant_casts = true
warn_return_any = true
warn_unused_ignores = true
[tool.poetry]
name = "badabump"
version = "22.1.0"
description = "Manage changelog and bump project version number using conventional commits from latest git tag. Support Python & JavaScript projects and CalVer & SemVer schemas. Designed to run at GitHub Actions."
authors = ["Igor Davydenko <iam@igordavydenko.com>"]
license = "BSD-3-Clause"
readme = "README.md"
homepage = "https://igordavydenko.com/projects/#badabump"
repository = "https://github.com/playpauseandstop/badabump"
packages = [
{include = "badabump", from = "src/"},
]
keywords = ["changelog", "conventional commit", "bump", "version", "calver", "semver", "pre release"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Environment :: Console",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development",
"Topic :: Utilities",
"Typing :: Typed",
]
[tool.poetry.dependencies]
python = "^3.7"
attrs = "^22.1.0"
tomli = {python = "<=3.11.0a6", version = ">=1.2.0,<3"}
[tool.poetry.group.dev.dependencies]
mypy = "^1.0.1"
[tool.poetry.group.test.dependencies]
coverage = "^6.5.0"
coveralls = "^3.3.1"
pytest = "^7.2.1"
pytest-cov = "^4.0.0"
time-machine = "^2.9.0"
tomli-w = "^1.0.0"
[tool.poetry.scripts]
badabump = "badabump.cli.app:main"
badabump-ci = "badabump.cli.ci_app:main"
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/playpauseandstop/badabump/issues"
[tool.pytest.ini_options]
minversion = "7.2.0"
testpaths = ["tests/"]
addopts = "--cov --no-cov-on-fail"
log_level = "info"
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py37,py38,py39,py310,py310-minimum-requirements,py311
skipsdist = True
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
[testenv]
passenv =
HOME
PYTEST_ADDOPTS
PYTHONUNBUFFERED
skip_install = True
allowlist_externals =
git
poetry
commands_pre =
poetry install --only main,test
commands =
git config init.defaultBranch
git config user.name
git config user.email
python3 -m pytest
[testenv:py310-minimum-requirements]
commands_pre =
poetry install --only main,test
python3 -m pip install attrs==22.1.0 tomli==1.2.0
"""