-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
161 lines (141 loc) · 3.45 KB
/
pyproject.toml
File metadata and controls
161 lines (141 loc) · 3.45 KB
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
151
152
153
154
155
156
157
158
159
160
161
[tool.poetry]
name = "issx"
version = "0.6.0"
description = "Tool for synchronizing issues between different services"
authors = [
"nekeal <szymon.sc.cader@gmail.com>",
]
license = "MIT"
readme = "README.md"
documentation = "https://nekeal.github.io/issx"
homepage = "https://nekeal.github.io/issx"
repository = "https://github.com/nekeal/issx"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
packages = [
{ include = "issx", from = "src" }
]
[tool.poetry.scripts]
issx = "issx.cli:app"
[tool.poetry.dependencies]
python = ">=3.11, <4.0"
python-gitlab = "^4.4.0"
attrs = "^23.2.0"
typer = "^0.12.0"
python-redmine = "^2.5.0"
[tool.poetry.group.dev.dependencies]
mypy = "*"
pre-commit = "*"
pytest = "*"
pytest-github-actions-annotate-failures = "*"
pytest-cov = "*"
python-kacl = "*"
ruff = "*"
pytest-asyncio = "^0.23.6"
import-linter = "^2.0"
[tool.poetry.group.docs.dependencies]
mkdocstrings = {version = ">=0.23", extras = ["python"]}
mkdocs-material = "*"
pymdown-extensions = "*"
black = "^24.4.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
target-version = "py311"
exclude = [
".git",
"__pycache__",
"build",
"dist",
".venv",
".eggs",
".tox",
]
[tool.ruff.lint]
ignore = [
# flake8-builtins
# the likelihood of running into an issue when shadowing a buildin
# with a class attribute is very low
"A003",
# flake8-bugbear
# fastapi recommends to use `Depend()` as an argument default.
# Unfortunately, exceptions are hardcoded in bugbear.
# https://github.com/PyCQA/flake8-bugbear/issues/62
"B008",
]
select = [
"A", # flake8 builtins
"E", # pycodestyle error
"W", # pycodestyle warning
"F", # pyflakes
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"I", # isort
"C4", # flake8-comprehensions
"T10", # flake8-debugger
"ERA", # flake8-eradicate
"G", # flake8-logging-format
"C9", # mccabe
]
[tool.ruff.lint.per-file-ignores]
"*/__init__.py" = ["F401"]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.pep8-naming]
classmethod-decorators = [
"classmethod",
"pydantic.validator",
"pydantic.root_validator",
]
[tool.pytest.ini_options]
addopts = """\
--cov issx \
--cov tests \
--cov-report term-missing \
--no-cov-on-fail \
"""
[tool.coverage.report]
#fail_under = 100 # uncomment after reaching 100% coverage
exclude_lines = [
'if TYPE_CHECKING:',
'pragma: no cover',
'@abc.abstractmethod',
]
[tool.mypy]
disallow_any_unimported = true
disallow_untyped_defs = true
no_implicit_optional = true
strict_equality = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_return_any = true
check_untyped_defs = true
show_error_codes = true
[[tool.mypy.overrides]]
module = "redminelib.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
[tool.importlinter]
root_package = "issx"
[[tool.importlinter.contracts]]
name = "Layered Architecture"
type = "layers"
layers = [
"issx.cli",
"issx.services | issx.instance_managers",
"issx.clients",
"issx.domain",
]