-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
166 lines (148 loc) · 4.63 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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
[tool.poetry]
name="delfino-core"
version="8.1.1"
authors = ["Radek Lát <radek.lat@gmail.com>"]
description="Delfino core plugin"
license = "MIT License"
readme = "README.md"
homepage = "https://github.com/radeklat/delfino-core"
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development",
"Topic :: Utilities",
]
[tool.poetry.dependencies]
python = "^3.8.1"
delfino = ">=3.1.2"
black = {version = "*", optional = true}
isort = {version = "*", optional = true}
pyupgrade = {version = "*", optional = true}
pre-commit = {version = "*", optional = true}
pytest = {version = "*", optional = true}
coverage = {version = "*", optional = true}
pytest-cov = {version = "*", optional = true}
mypy = {version = "*", optional = true}
pylint = {version = "*", optional = true}
pycodestyle = {version = "*", optional = true}
pydocstyle = {version = "*", optional = true}
gitpython = {version = "*", optional = true}
shellingham = {version = "*", optional = true}
psutil = {version = "*", optional = true}
PyYAML = {version = "*", optional = true}
ruff = {version = ">=0.5.0", optional = true}
httpx = {version = "*", optional = true}
# https://python-poetry.org/docs/pyproject/#plugins
[tool.poetry.plugins]
[tool.poetry.plugins."delfino.plugin"]
"delfino-core" = "delfino_core.commands"
[tool.poetry.group.dev.dependencies]
black = "^24.4"
isort = "^5.9"
coverage = "^7.0"
pylint = "^3.0"
mypy = "^1.4"
pytest = "^8.2"
pytest-cov = "^5.0"
pytest-mock = "^3.6"
pre-commit = "^3.3"
pycodestyle = "^2.8"
pydocstyle = "^6.1"
shellingham = "^1.4"
psutil = "^6.0"
gitpython = "^3.1"
pyupgrade = "^3.7"
ruff = "^0.5.2"
httpx = "^0.27.2"
types-termcolor = "*"
types-toml = "*"
types-psutil = "*"
types-pyyaml = "*"
[tool.poetry.extras]
all = ["black", "isort", "pyupgrade", "pre-commit", "pytest", "coverage", "pytest-cov", "mypy", "pylint", "pycodestyle", "pydocstyle", "psutil", "gitpython", "PyYAML", "ruff", "httpx"]
verify = ["black", "isort", "pyupgrade", "pre-commit", "pytest", "coverage", "pytest-cov", "mypy", "pylint", "pycodestyle", "pydocstyle", "psutil", "ruff"]
format = ["black", "isort", "pyupgrade", "pre-commit"]
test = ["pytest", "coverage", "pytest-cov"]
mypy = ["mypy"]
lint = ["pylint", "pycodestyle", "pydocstyle", "psutil", "ruff"]
dependencies_update = ["gitpython"]
vcs = ["httpx"]
pre_commit = ["PyYAML"]
[tool.isort]
# Setting compatible with black. See https://black.readthedocs.io/en/stable/compatible_configs.html
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 120
[tool.black]
line-length = 120
target-version = ['py38']
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.pytest.ini_options]
testpaths = "tests/unit tests/integration"
python_functions = "should_*"
junit_family = "xunit2"
# Structure: https://docs.pytest.org/en/stable/warnings.html
# Values: https://docs.python.org/3/library/warnings.html#describing-warning-filters
# action:message:category:module:line
filterwarnings = [
]
markers = [
]
[tool.mypy]
show_column_numbers = true
show_error_codes = true
color_output = true
warn_unused_configs = true
warn_unused_ignores = true
check_untyped_defs = true
follow_imports = "silent"
[[tool.mypy.overrides]]
# Source code dependencies
module = [
"delfino.*",
]
ignore_missing_imports = true
[tool.pydocstyle]
convention = "pep257"
match = "^(?!test_)(.*)(?<!config_parser)\\.py$"
add-ignore = [
# See http://www.pydocstyle.org/en/stable/error_codes.html
"D1", # Missing docstrings. We rely on code reviews. Names are often descriptive enough and don't need additional docstring.
"D202", # "No blank lines allowed after function docstring" is false positive caused by black formatter.
"D204", # "1 blank line required after class docstring"
"D401", # "First line should be in imperative mood"
"D413", # "Missing blank line after last section"
]
[tool.ruff]
line-length = 120
[tool.delfino.plugins.local.vcs]
#branch_prefix = ""
[tool.delfino.plugins.local.issue_tracking]
issue_prefix = "PCAT-"
tracker_url = "https://heurekagroup.atlassian.net"