-
-
Notifications
You must be signed in to change notification settings - Fork 278
/
Copy pathpyproject.toml
120 lines (109 loc) · 2.53 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
[tool.commitizen]
version = "2.20.5"
tag_format = "v$version"
version_files = [
"pyproject.toml:version",
"commitizen/__version__.py"
]
[tool.black]
line-length = 88
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
# The following are specific to Black, you probably don't want those.
| blib2to3
| tests/data
| profiling
)/
'''
[tool.poetry]
name = "commitizen"
version = "2.20.6"
description = "Python commitizen client tool"
authors = ["Santiago Fraire <[email protected]>"]
license = "MIT"
keywords = ["commitizen", "conventional", "commits", "git"]
readme = "docs/README.md"
homepage = "https://github.com/commitizen-tools/commitizen"
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: Implementation :: CPython",
]
[tool.poetry.dependencies]
python = "^3.6.2"
questionary = "^1.4.0"
decli = "^0.5.2"
colorama = "^0.4.1"
termcolor = "^1.1"
packaging = ">=19,<22"
tomlkit = ">=0.5.3,<1.0.0"
jinja2 = ">=2.10.3"
pyyaml = ">=3.08"
argcomplete = "^1.12.1"
typing-extensions = "^4.0.1"
[tool.poetry.dev-dependencies]
ipython = "^7.2"
# test
pytest = "^6.2.5"
pytest-cov = "^2.6"
pytest-mock = "^2.0"
codecov = "^2.0"
freezegun = "^0.3.15"
pytest-regressions = "^2.2.0"
pytest-freezegun = "^0.4.2"
# code formatter
black = "^21.12b0"
isort = "^5.7.0"
# linter
flake8 = "^3.6"
pre-commit = "^2.6.0"
mypy = "0.910"
types-PyYAML = "^5.4.3"
types-termcolor = "^0.1.1"
# documentation
mkdocs = "^1.0"
mkdocs-material = "^4.1"
pydocstyle = "^5.0.2"
[tool.poetry.scripts]
cz = "commitizen.cli:main"
git-cz = "commitizen.cli:main"
[tool.isort]
profile = "black"
known_first_party = ["commitizen", "tests"]
[tool.coverage]
[tool.coverage.report]
show_missing = true
exclude_lines = [
# Have to re-enable the standard pragma
'pragma: no cover',
# Don't complain about missing debug-only code:
'def __repr__',
'if self\.debug',
# Don't complain if tests don't hit defensive assertion code:
'raise AssertionError',
'raise NotImplementedError',
# Don't complain if non-runnable code isn't run:
'if 0:',
'if __name__ == .__main__.:'
]
omit = [
'env/*',
'venv/*',
'*/virtualenv/*',
'*/virtualenvs/*',
'*/tests/*'
]
[build-system]
requires = ["poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"