forked from pypa/pyproject-metadata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
102 lines (90 loc) · 2.66 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
[build-system]
requires = ["flit-core"]
build-backend = "flit_core.buildapi"
[project]
name = "pyproject-metadata"
dynamic = ["version"]
description = "PEP 621 metadata parsing"
readme = "README.md"
requires-python = ">=3.7"
authors = [
{ name = "Filipe Laíns", email = "[email protected]" },
]
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dependencies = [
"packaging>=19.0",
]
[project.optional-dependencies]
docs = [
"furo>=2020.11.19b18",
"Jinja2<3.1", # https://github.com/readthedocs/readthedocs.org/issues/9038
"sphinx-autodoc-typehints>=1.10.0",
"sphinx~=3.0",
]
test = [
"pytest-cov[toml]>=2",
"pytest>=6.2.4",
'tomli>=1.0.0;python_version<"3.11"',
]
[project.urls]
changelog = "https://pyproject-metadata.readthedocs.io/en/stable/changelog.html"
homepage = "https://github.com/FFY00/python-pyproject-metadata"
[tool.flit.sdist]
include = ["LICENSE", "tests/**", "docs/**", "CHANGELOG.rst"]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"]
xfail_strict = true
filterwarnings = ["error"]
log_cli_level = "info"
testpaths = ["tests"]
[tool.mypy]
ignore_missing_imports = true
strict = true
[tool.ruff]
select = [
"E", "F", "W", # flake8
"C90", # mccabe
"B", # flake8-bugbear
"I", # isort
"ARG", # flake8-unused-arguments
"C4", # flake8-comprehensions
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
"G", # flake8-logging-format
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"RET", # flake8-return
"RUF", # Ruff-specific
"SIM", # flake8-simplify
"T20", # flake8-print
"UP", # pyupgrade
"YTT", # flake8-2020
"EXE", # flake8-executable
"NPY", # NumPy specific rules
"PD", # pandas-vet
]
extend-ignore = [
"PLR", # Design related pylint codes
"E501", # Line too long
"PT004", # Use underscore for non-returning fixture (use usefixture instead)
]
isort.known-first-party = ["pyproject-metadata"]
isort.lines-after-imports = 2
isort.lines-between-types = 1
line-length = 129
mccabe.max-complexity = 10
target-version = "py37"
[tool.coverage]
html.show_contexts = true