-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
164 lines (147 loc) · 3.12 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
[build-system]
requires = ["setuptools>=64.0", "setuptools_scm"]
build-backend = "setuptools.build_meta"
[project]
name = "foobar"
version = "0.1.0"
authors = [
{name = "foobar author"},
{email = "foobar@foobar.com"},
]
description = "Foobar example package."
readme = "README.md"
requires-python = ">=3.9"
license = {text = "MIT"}
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
]
dependencies = [
"requests",
]
[project.urls]
homepage = "https://github.com/foobar-author/foobar"
documentation = "https://foobar.readthedocs.io"
repository = "https://github.com/foobar-author/foobar"
[project.optional-dependencies]
dev = [
"covdefaults>=2.2",
"coverage",
"mypy",
"pre-commit",
"pytest",
"pytest-cov",
"ruff>=0.2.0",
"tox",
"virtualenv",
]
docs = [
"black==24.4.2",
"mkdocs-click==0.8.1",
"mkdocs-gen-files==0.5.0",
"mkdocs-literate-nav==0.6.1",
"mkdocs-material==9.5.32",
"mkdocs-section-index==0.3.9",
"mkdocstrings==0.25.2",
"mkdocstrings-python==1.10.8",
"mike==2.1.3",
]
[tool.codespell]
skip = """
.git,
.github,
__pycache__,
build,
dist,
.*egg-info
"""
[tool.coverage.run]
plugins = ["covdefaults"]
omit = ["examples"]
[tool.mypy]
python_version = "3.12"
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = "testing.*"
allow_incomplete_defs = true
allow_untyped_defs = true
[[tool.mypy.overrides]]
module = "tests.*"
allow_incomplete_defs = true
allow_untyped_defs = true
[tool.ruff]
line-length = 79
target-version = "py39"
[tool.ruff.format]
indent-style = "space"
quote-style = "single"
[tool.ruff.lint]
# See all rules here: https://beta.ruff.rs/docs/rules
select = [
# pyflakes
"F",
# pycodestyle
"E",
# mccabe
"C90",
# isort
"I",
# pep8-naming
"N",
# pydocstyle
"D",
# pyupgrade
"UP",
# flake8-2020
"YTT",
# flake8-bugbear
"B",
# flake8-builtins
"A",
# flake8-commas
"COM",
# flake8-comprehensions
"C4",
# flake8-implicit-str-concat
"ISC",
# flake8-pytest-style
"PT",
# flake8-quotes
"Q",
# flake8-debugger
"T10",
# flake8-simplify
"SIM",
# PyLint
"PL",
# ruff-specific
"RUF",
]
extend-ignore = []
[tool.ruff.lint.flake8-pytest-style]
parametrize-values-type = "tuple"
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
multiline-quotes = "single"
[tool.ruff.lint.isort]
force-single-line = true
known-first-party = ["foobar", "test", "testing"]
order-by-type = false
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.per-file-ignores]
"*/__init__.py" = ["F401"]
"*/*_test.py" = ["D10"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.setuptools.packages.find]
exclude = ["tests*", "testing*"]
namespaces = false