-
-
Notifications
You must be signed in to change notification settings - Fork 118
Expand file tree
/
Copy pathpyproject.toml
More file actions
124 lines (113 loc) · 3 KB
/
pyproject.toml
File metadata and controls
124 lines (113 loc) · 3 KB
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 = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pipe"
description = "Module enabling a sh like infix syntax (using pipes)"
readme = "README.md"
license = { text = "MIT License" }
dynamic = ["version"]
authors = [{ name = "Julien Palard", email = "julien@palard.fr" }]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Development Status :: 5 - Production/Stable",
"Operating System :: OS Independent",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries :: Python Modules",
]
requires-python = ">= 3.8"
keywords = ["pipe"]
[project.urls]
repository = "https://github.com/JulienPalard/Pipe"
[dependency-groups]
ruff = ["ruff>=0.10.0"]
coverage = ["coverage[toml]", "covdefaults"]
dev = [{ include-group = "ruff" }, "pre-commit>=2.21.0", "tox>=4.23.2"]
test = [{ include-group = "coverage" }, "mock", "pytest", "pytest-cov"]
[tool.setuptools]
py-modules = ["pipe"]
include-package-data = false
dynamic.version.attr = "pipe.__version__"
[tool.ruff]
lint.pydocstyle.convention = "numpy"
lint.extend-select = ["C", "D", "FURB", "I", "N", "PL", "PTH", "SIM"]
lint.extend-ignore = [
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", #
"D103", # Missing docstring in public function
"D105",
]
[tool.coverage]
html.show_contexts = true
html.skip_covered = false
run.parallel = true
run.omit = [
"tests/*.py",
# add others
]
run.plugins = [
# all plugins
"covdefaults",
]
[tool.tox]
requires = ["tox>=4.23.2", "tox-uv>=1.13"]
isolated_build = true
env_list = ["ruff", "cov-report", "py38", "py39", "py311", "py312", "py313"]
[tool.tox.env_run_base]
commands = [
[
"coverage",
"run",
"--context",
"{env_name}",
"-m",
"pytest",
"--doctest-glob=README.md",
"--junit-xml=.build/tests/pytest_{env_name}_junit.xml",
],
]
set_env.COVERAGE_FILE = "{toxworkdir}/.coverage"
dependency_groups = ["test"]
package = "wheel"
wheel_build_env = ".pkg"
[tool.tox.env.ruff]
recreate = false
skip_install = true
dependency_groups = ["ruff"]
commands = [
# commands
["ruff", "format", "--check", "."],
["ruff", "check", "."],
]
[tool.tox.env.cov-report]
parallel_show_output = true
recreate = false
set_env.COVERAGE_FILE = "{toxworkdir}/.coverage"
skip_install = true
dependency_groups = ["coverage"]
depends = ["py38", "py39", "py311", "py312", "py313"]
commands = [
[
"coverage",
"combine",
],
[
"coverage",
"html",
"-d",
".build/coverage",
],
[
"coverage",
"report",
],
]