-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
140 lines (119 loc) · 3.23 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
[tool.poetry]
name = "twyn"
version = "2.8.9"
description = ""
authors = [
"Daniel Sanz",
"Sergio Castillo <[email protected]>",
"Ludo van Orden",
"Dmitrii Fedotov",
]
maintainers = ["Daniel Sanz", "Sergio Castillo <[email protected]>"]
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.9,<4"
requests = "^2.32.3"
dparse = "^0.6.4"
click = "^8.1.8"
rich = "^13.9.4"
rapidfuzz = ">=2.13.7,<4.0.0"
pyparsing = "^3.2.0"
tomlkit = ">=0.11.6,<0.14.0"
tomli = { version = "^2.2.1", python = "<3.11" }
[tool.poetry.scripts]
twyn = "twyn.cli:entry_point"
[tool.poetry.group.dev.dependencies]
pytest = ">=7.1.3,<9.0.0"
mypy = ">=0.982,<1.15"
pytest-cov = ">=4,<7"
ipdb = "^0.13.9"
commitizen = ">=2.38,<5.0"
pdbpp = "^0.10.3"
ruff = ">=0.5.1,<0.8.5"
types-requests = "^2.32.0.20241016"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
target-version = "py310"
line-length = 120
src = ["twyn", "tests"]
[tool.ruff.lint]
select = [
"C9", # mccabe
"E", # pycodestyle error
"W", # pycodestyle warning
"F", # pyflakes
"B", # bugbear
"D", # pydocstyle
"I", # isort
"C4", # comprehensions
"SIM", # simplify
"N", # pep8-naming
"TRY", # tryceratops
]
ignore = [
'D1', # pydocstyle enforcement of docstrings everywhere
'TRY003', # tryceratops too noisy
"E501", # line length (black handles it)
]
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.mypy]
python_version = "3.11"
ignore_missing_imports = true
namespace_packages = true
explicit_package_bases = true
warn_no_return = false
warn_unused_ignores = true
disallow_any_generics = true
[tool.pytest.ini_options]
addopts = """
-s
--cov
--cov-report term-missing
--cov-report=xml:./tests/coverage.xml
--junitxml=./tests/junit.xml
"""
[tool.coverage.run]
omit = ["tests/*"]
[tool.coverage.report]
fail_under = 95
exclude_lines = ["if TYPE_CHECKING:", "pragma: no cover"]
[tool.commitizen]
version_files = ["pyproject.toml:version"]
version = "2.8.9"
tag_format = "v$version"
name = "cz_customize"
[tool.commitizen.customize]
bump_pattern = "^(break|feat|fix|refactor|perf|ci|docs|style|test|chore|revert|build)(\\(.+\\))?(!)?"
change_type_order = [
"Breaking",
"Feat",
"Fix",
"Refactor",
"Perf",
"CI",
"Docs",
"Technical",
"Tests",
]
bump_message = "bump: version $current_version → $new_version"
schema = "<type>(<scope>): <subject>\n<BLANK LINE>\n<body>\n<BLANK LINE>\n(BREAKING CHANGE: )<footer>"
schema_pattern = "(?s)(build|ci|docs|feat|fix|perf|refactor|style|test|chore|revert|bump)(\\(\\S+\\))?!?:( [^\\n\\r]+)((\\n\\n.*)|(\\s*))?$"
commit_parser = "^(?P<change_type>feat|fix|refactor|perf|break|ci|docs|style|test|chore|revert|build)(?:\\((?P<scope>[^()\\r\\n]*)\\)|\\()?(?P<breaking>!)?:\\s(?P<message>.*)?"
version_parser = "(?P<version>([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*))?(?:\\+[0-9A-Za-z-]+)?(\\w+)?)"
[tool.commitizen.customize.bump_map]
"^.+!$" = "MAJOR"
"^break" = "MAJOR"
"^feat" = "MINOR"
"^fix" = "PATCH"
"^refactor" = "PATCH"
"^perf" = "PATCH"
"^ci" = "PATCH"
"^docs" = "PATCH"
"^style" = "PATCH"
"^test" = "PATCH"
"^chore" = "PATCH"
"^revert" = "PATCH"
"^build" = "PATCH"