-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
56 lines (50 loc) · 1.48 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
[project]
name = 'get_version'
authors = [{ name = 'Philipp Angerer', email = '[email protected]' }]
urls.Homepage = 'https://github.com/flying-sheep/get_version'
classifiers = [
'Intended Audience :: Developers',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
]
readme = 'README.rst'
license = { file = 'LICENSE' } # 'GPL-3.0-or-later'
requires-python = '>=3.9'
dependencies = [
'dunamai>=1.19.0', # Version parsing
]
dynamic = ['version', 'description']
[project.optional-dependencies]
test = [
'pytest>=6.2.5',
'pytest-mypy',
'pygments', # for README highlighting check
]
[tool.hatch.envs.hatch-test]
features = ['test']
[tool.ruff.lint]
select = ['E', 'F', 'W', 'I', 'UP', 'TCH', 'ANN', 'RUF', 'PT']
ignore = ['ANN101']
allowed-confusables = ['’', '×']
[tool.ruff.lint.isort]
lines-after-imports = 2
known-first-party = ["get_version"]
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.flake8-type-checking]
strict = true
exempt-modules = []
[tool.pytest.ini_options]
addopts = ['-p', 'get_version.testing']
filterwarnings = ['error']
[tool.coverage.run]
source_pkgs = ["get_version"]
[tool.coverage.paths]
source = ["./src", "**/site-packages"]
[tool.coverage.report]
exclude_also = [
'if TYPE_CHECKING:',
]
[build-system]
requires = ['flit-core>=2,<4', 'dunamai']
build-backend = 'flit_core.buildapi'