-
Notifications
You must be signed in to change notification settings - Fork 14
/
pyproject.toml
94 lines (82 loc) · 2.84 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
[build-system]
requires = ["setuptools>=61.2", "setuptools_scm[toml]>=7.1"]
build-backend = "setuptools.build_meta"
[project]
name = "validate-pyproject"
description = "Validation library and CLI tool for checking on 'pyproject.toml' files using JSON Schema"
authors = [{name = "Anderson Bravalheri", email = "andersonbravalheri@gmail.com"}]
readme ="README.rst"
license = {text = "MPL-2.0 and MIT and BSD-3-Clause"}
requires-python = ">=3.8"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Software Development :: Quality Assurance",
"Typing :: Typed",
]
dependencies = ["fastjsonschema>=2.16.2,<=3"]
dynamic = ["version"]
[project.urls]
Homepage = "https://github.com/abravalheri/validate-pyproject/"
Documentation = "https://validate-pyproject.readthedocs.io/"
Source = "https://github.com/abravalheri/validate-pyproject"
Tracker = "https://github.com/abravalheri/validate-pyproject/issues"
Changelog = "https://validate-pyproject.readthedocs.io/en/latest/changelog.html"
Download = "https://pypi.org/project/validate-pyproject/#files"
[project.optional-dependencies]
all = [
"packaging>=24.2",
"tomli>=1.2.1; python_version<'3.11'",
"trove-classifiers>=2021.10.20",
]
store = ["validate-pyproject-schema-store"]
test = [
"setuptools",
"pytest>=8.3.3",
"pytest-cov",
"pytest-xdist",
"pytest-randomly",
"repo-review; python_version>='3.10'",
"tomli>=1.2.1; python_version<'3.11'",
]
typecheck = [
"mypy",
"importlib-resources",
]
[project.scripts]
validate-pyproject = "validate_pyproject.cli:main"
[project.entry-points."validate_pyproject.tool_schema"]
setuptools = "validate_pyproject.api:load_builtin_plugin"
distutils = "validate_pyproject.api:load_builtin_plugin"
[project.entry-points."repo_review.checks"]
validate_pyproject = "validate_pyproject.repo_review:repo_review_checks"
[project.entry-points."repo_review.families"]
validate_pyproject = "validate_pyproject.repo_review:repo_review_families"
[tool.setuptools_scm]
version_scheme = "no-guess-dev"
[tool.pytest.ini_options]
addopts = """
--import-mode importlib
--cov validate_pyproject
--cov-report term-missing
--doctest-modules
--strict-markers
--verbose
"""
norecursedirs = ["dist", "build", ".*"]
testpaths = ["src", "tests"]
[tool.mypy]
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
show_traceback = true
warn_unreachable = true
strict = true
# Scaling back on some of the strictness for now
disallow_any_generics = false
disallow_subclassing_any = false
[[tool.mypy.overrides]]
module = ["fastjsonschema", "setuptools._vendor.packaging"]
ignore_missing_imports = true
[tool.repo-review]
ignore = ["PP302", "PP304", "PP305", "PP306", "PP308", "PP309", "PC140", "PC180", "PC901"]