-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
173 lines (148 loc) · 4.76 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
167
168
169
170
171
172
173
[build-system]
requires = ['hatchling']
build-backend = 'hatchling.build'
[tool.hatch.version]
path = 'developing_tools/__init__.py'
[tool.hatch.build.targets.sdist]
include = ['developing_tools/', 'tests/', 'requirements*.txt']
[project]
name = 'developing-tools'
description = 'The Developing Tools project is a Python package designed to enhance the development process by providing a collection of tools/utilities aimed at improving debugging, performance measurement, error handling, ...'
readme = './README.md'
authors = [{ name = 'Adria Montoto' }]
license = './LICENSE.md'
classifiers = [
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Typing :: Typed',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
]
keywords = ['python', 'development', 'tools', 'utilities', 'decorator']
requires-python = '>=3.11'
dynamic = ['version']
[project.optional-dependencies]
tests = [
'freezegun>=1.0.0,<2.0.0',
'pytest>=8.0.0,<9.0.0',
'pytest-asyncio>=0.0.0,<1.0.0',
'pytest-randomly>=3.0.0,<4.0.0',
'coverage[toml]>=7.0.0,<8.0.0',
'ruff>=0.0.0,<1.0.0',
'mypy[reports]>=1.0.0,<2.0.0',
'bandit>=1.0.0,<2.0.0',
'pre-commit>=3.0.0,<5.0.0',
]
[project.urls]
Homepage = 'https://github.com/adriamontoto/developing-tools'
Repository = 'https://github.com/adriamontoto/developing-tools'
Issues = 'https://github.com/adriamontoto/developing-tools/issues'
[tool.pytest.ini_options]
pythonpath = '.'
addopts = [
'--strict-config', # fail if an unregistered option is used
'--strict-markers', # fail if an unregistered marker is used
'--color=yes', # color the output
]
markers = [
'unit_testing: Check a unique funtionality',
'integration_testing: Check the integration between two or more functions',
]
xfail_strict = true
[tool.coverage.run]
source = ['developing_tools']
parallel = true
branch = true
relative_files = true
[tool.coverage.report]
show_missing = true
skip_covered = true
precision = 2
exclude_lines = [
'pragma: no cover',
'raise NotImplementedError',
'if TYPE_CHECKING:',
'if typing.TYPE_CHECKING:',
'@overload',
'@typing.overload',
'typing.assert_never',
'assert_never',
]
[tool.coverage.paths]
source = ['developing_tools']
[tool.ruff]
fix = true
indent-width = 4
line-length = 120
target-version = 'py313'
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = 120
indent-style = 'space'
quote-style = 'single'
skip-magic-trailing-comma = false
[tool.ruff.lint]
select = [
'F', # pyflakes
'E', # pycodestyle
'W', # pycodestyle
'D', # pydocstyle
'C90', # mccabe
'I', # isort
'N', # pep8-naming
'UP', # pyupgrade
'B', # flake8-bugbear
'C4', # flake8-comprehensions
'DTZ', # flake8-datetimez
'S', # flake8-bandit
'SIM', # flake8-simplify
'RUF', # ruff
]
ignore = [
'UP035', # Checks for uses of deprecated imports based on the minimum supported Python version.
'UP036', # Checks for conditional blocks gated on sys.version_info comparisons that are outdated for the minimum supported Python version.
'E111', # Checks for indentation with a non-multiple of 4 spaces.
'E114', # Checks for indentation of comments with a non-multiple of 4 spaces.
'E117', # Checks for over-indented code.
'W191', # Checks for indentation that uses tabs.
'D200', # Checks for single-line docstrings that are broken across multiple lines.
'D205', # 1 blank line required between summary line and description.
'D206', # Checks for docstrings that are indented with tabs.
'D212', # Checks for docstring summary lines that are not positioned on the first physical line of the docstring.
'D401', # First line of docstring should be in imperative mood.
'D300', # Checks for docstrings that use '''triple single quotes''' instead of 'triple double quotes'.
]
[tool.ruff.lint.per-file-ignores]
'__init__.py' = [
'F401', # Checks for unused imports.
'D104', # Checks for undocumented public package definitions.
]
'database.py' = [
'F401', # Checks for unused imports.
]
'**test**.py' = [
'S101', # Use of `assert` detected.
]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.pydocstyle]
convention = 'pep257'
[tool.ruff.lint.isort]
case-sensitive = true
extra-standard-library = ['typing_extensions']
known-first-party = ['developing_tools']
combine-as-imports = true
[tool.mypy]
strict = true
warn_unreachable = true
enable_error_code = [
'redundant-expr',
'possibly-undefined',
'truthy-bool',
'explicit-override',
]
[tool.bandit]