-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
147 lines (129 loc) · 3.71 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
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools >= 65.3.0", # required by pyproject+setuptools_scm integration and editable installs
"setuptools_scm[toml] >= 7.0.5" # required for "no-local-version" scheme
]
[project]
authors = [
{"email" = "[email protected]", "name" = "Sorin Sbarnea"}
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Framework :: tox",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Testing"
]
dependencies = [
"bindep>2.8.1",
"gitpython",
"packaging",
"tox",
"tox-uv>=1.16.0"
]
description = "Performs extra checks before or after running"
dynamic = ["version"]
keywords = ["git", "tox", "tox-plugin"]
license = {text = "MIT"}
maintainers = [
{"email" = "[email protected]", "name" = "Sorin Sbarnea"}
]
name = "tox-extra"
readme = "README.md"
# https://peps.python.org/pep-0621/#readme
requires-python = ">=3.9"
[project.entry-points.tox]
extra = "tox_extra.hooks"
[project.optional-dependencies]
test = [
"coverage[toml]>=6.5.0",
"pytest-mock>=3.10.0",
"pytest>=7.2.0",
"testfixtures>=7.0.3"
]
[project.urls]
changelog = "https://github.com/tox-dev/tox-extra/releases"
homepage = "https://github.com/tox-dev/tox-extra"
issues = "https://github.com/tox-dev/tox-extra/issues"
repository = "https://github.com/tox-dev/tox-extra"
[tool.coverage.paths]
source = ["src"]
[tool.coverage.report]
fail_under = 92.0
include = ["src/*"]
omit = [".tox/*/lib/python*/site-packages/*", "src/*/_version.py"]
show_missing = true
skip_covered = true
skip_empty = true
[tool.coverage.run]
concurrency = ["multiprocessing", "thread"]
# Do not use branch until bug is fixes:
# https://github.com/nedbat/coveragepy/issues/605
# branch = true
parallel = true
source = ["src"]
[tool.mypy]
color_output = true
disallow_any_generics = true
disallow_untyped_calls = true
disallow_untyped_defs = true
error_summary = true
python_version = "3.9"
[tool.pytest.ini_options]
# do not add options here as this will likely break either console runs or IDE
# integration like vscode or pycharm
addopts = "-ra --showlocals"
[tool.ruff]
cache-dir = "./.cache/.ruff"
fix = true
# Same as Black.
line-length = 88
[tool.ruff.lint]
ignore = [
"COM812", # conflicts with ISC001 on format
"D203", # incompatible with D211
"D213", # incompatible with D212
"E501", # we use black
"ERA001", # auto-removal of commented out code affects development and vscode integration
"INP001", # "is part of an implicit namespace package", all false positives
"ISC001", # conflicts with COM812 on format
"PLW2901", # PLW2901: Redefined loop variable
"RET504" # Unnecessary variable assignment before `return` statement
]
select = ["ALL"]
[tool.ruff.lint.flake8-builtins]
builtins-ignorelist = ["id"]
[tool.ruff.lint.flake8-pytest-style]
parametrize-values-type = "tuple"
[tool.ruff.lint.isort]
known-first-party = ["src"]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["S"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.setuptools_scm]
# To prevent accidental pick of mobile version tags such 'v6'
git_describe_command = [
"git",
"describe",
"--dirty",
"--long",
"--tags",
"--match",
"v*.*"
]
local_scheme = "no-local-version"
tag_regex = "^(?P<prefix>v)?(?P<version>[0-9.]+)(?P<suffix>.*)?$"
write_to = "src/tox_extra/_version.py"
[tool.tomlsort]
in_place = true
sort_inline_tables = true
sort_table_keys = true