-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
165 lines (145 loc) · 3.52 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
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
requires-python = ">=3.9"
name = "repo-man"
version = "0.0.11"
description = "Manage repositories of a variety of different types."
authors = [
{ name = "Dane Hillard", email = "[email protected]" }
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python",
"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",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"License :: OSI Approved :: MIT License",
]
dependencies = [
"typer>=0.12.5"
]
[project.urls]
Documentation = "https://repo-man.readthedocs.org"
Repository = "https://github.com/easy-as-python/repo-man"
Issues = "https://github.com/easy-as-python/repo-man/issues"
[tool.setuptools.packages.find]
where = ["src"]
exclude = ["test*"]
[project.scripts]
repo-man = "repo_man.cli:main"
[project.optional-dependencies]
docs = [
"furo",
"myst-parser",
"sphinx",
"sphinx-autobuild",
]
######################
# Tool configuration #
######################
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
]
[tool.mypy]
strict = true
python_version = "3.9"
warn_unused_configs = true
show_error_context = true
pretty = true
namespace_packages = true
check_untyped_defs = true
[tool.pytest.ini_options]
testpaths = ["test"]
addopts = ["--cov", "--strict-markers"]
xfail_strict = true
[tool.coverage.run]
source = ["repo_man"]
branch = true
[tool.coverage.report]
fail_under = 90.00
show_missing = true
skip_covered = true
[tool.coverage.paths]
source = [
"src/repo_man",
"*/site-packages/repo_man",
]
[tool.tox]
envlist = ["py39", "py310", "py311", "py312", "py313"]
isolated_build = true
[tool.tox.env_run_base]
package = "wheel"
wheel_build_env = ".pkg"
deps = [
"pytest",
"pytest-cov",
"pytest-randomly",
]
commands = [
["pytest", { replace = "posargs", default = [], extend = true }],
]
[tool.tox.env.typecheck]
extras = [
"docs",
]
deps = [
{ replace = "ref", of = ["tool", "tox", "env_run_base", "deps"], extend = true },
"mypy",
"types-termcolor",
]
commands = [
["mypy", { replace = "posargs", default = ["src", "test", "docs"], extend = true }],
]
[tool.tox.env.format]
skip_install = true
deps = [
"ruff",
]
commands = [
["ruff", "format", { replace = "posargs", default = ["--check", "--diff", "src", "test"], extend = true }],
]
[tool.tox.env.lint]
skip_install = true
deps = [
"ruff",
]
commands = [
["ruff", "check", { replace = "posargs", default = ["src", "test", "docs"], extend = true }],
]
[tool.tox.env.docs]
extras = [
"docs",
]
commands = [
["sphinx-apidoc", "--force", "--implicit-namespaces", "--module-first", "--separate", "-o", "docs/reference", "src/repo_man/"],
["sphinx-build", "-n", "-W", "--keep-going", "-b", "html", "docs/", "docs/_build/"],
]
[tool.tox.env.devdocs]
extras = [
"docs",
]
commands = [
["sphinx-apidoc", "--force", "--implicit-namespaces", "--module-first", "--separate", "-o", "docs/reference", "src/repo_man/"],
["sphinx-autobuild", "-n", "-W", "-b", "html", "docs/", "docs/_build/"],
]