-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
124 lines (108 loc) · 2.74 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "manifestoo_core"
description = "A library to reason about Odoo addons manifests"
authors = [
{name = "Stéphane Bidoul", email = "[email protected]"}
]
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: Odoo",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
]
readme = "README.md"
dependencies = [
"dataclasses ; python_version<'3.7'",
"importlib_resources ; python_version<'3.9'",
"packaging",
"typing-extensions ; python_version < '3.8'",
]
requires-python = ">=3.6"
dynamic = ["version"]
[project.optional-dependencies]
metadata = []
test = [
"pytest",
"coverage[toml]",
"pkg-metadata",
]
doc = [
"sphinx",
"furo",
"myst-parser",
# towncrier pinned because of
# https://github.com/sphinx-contrib/sphinxcontrib-towncrier/issues/60
"towncrier<22.8",
"sphinxcontrib-towncrier",
]
[project.urls]
Homepage = "https://github.com/acsone/manifestoo-core"
Documentation = "https://manifestoo-core.readthedocs.io/en/stable/"
Changelog = "https://manifestoo-core.readthedocs.io/en/stable/changelog.html"
Source = "https://github.com/acsone/manifestoo-core"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build]
exclude = [
"/.github",
]
[tool.ruff]
target-version = "py37"
fix = true
[tool.ruff.lint]
extend-select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"C90", # mccabe
"E",
"F",
"I", # isort
"N", # pep8 naming
"PL", # pylint
"UP", # pyupgrade
"PERF",
"RUF",
"S", # flake8-bandit
"T100", # flake8-debugger
"TRY",
"W",
]
ignore = [
# "C408", # Unnecessary `dict` call (rewrite as a literal)
]
exclude = [
"docs/conf.py",
"mk_core_addons",
]
[tool.ruff.lint.per-file-ignores]
"tests/*.py" = [
"S101", # use of assert detected
"S603", # `subprocess` call: check for execution of untrusted input
"S607", # Starting a process with a partial executable path
]
[tool.ruff.lint.isort]
known-first-party = ["manifestoo_core"]
[tool.coverage.run]
branch = true
source_pkgs = ["manifestoo_core"]
[tool.coverage.paths]
source = ["src", ".tox/*/site-packages"]
[tool.coverage.report]
show_missing = true
exclude_lines = [
"pragma: no cover",
]
[tool.towncrier]
package = "manifestoo_core"
package_dir = "src"
filename = "HISTORY.rst"
directory = "news"
issue_format = "`#{issue} <https://github.com/acsone/manifestoo-core/issues/{issue}>`_"
title_format = "{version} ({project_date})"