Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
46 lines (36 loc) · 1.57 KB
/
Copy pathpyproject.toml
File metadata and controls
46 lines (36 loc) · 1.57 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
# Packages the checks under hooks/ so pre-commit can install them as
# hooks. pre-commit requires this file at the repository root.
[build-system]
requires = ["setuptools>=61"]
build-backend = "setuptools.build_meta"
[project]
name = "solid-ai-checks"
# Never bumped. A consumer pins the hooks by the repository's tag, and the
# release is the tag, so this package version carries no release meaning.
version = "0.0.0"
description = "The checks the solid-ai templates prescribe, as pre-commit hooks"
# No license field: the package is never published, so LICENSE at the root
# is the licence. The table form is deprecated in setuptools, and the
# string form needs setuptools 77, which drops Python 3.8.
requires-python = ">=3.8"
[project.scripts]
solid-ai-checks = "solid_ai_checks.__main__:main"
[tool.setuptools]
package-dir = { "" = "hooks" }
packages = ["solid_ai_checks", "solid_ai_checks.support"]
# The static checks core/quality.md asks for, as this repository runs them:
# mypy at its strictest over all the Python, and the ruff formatter at the
# width .editorconfig declares.
[tool.mypy]
strict = true
files = ["tools", "tests", "hooks"]
# The runners write gitignored reports under tests/reports, some holding a
# copy of the tree, whose duplicate modules stop mypy before it checks any.
exclude = ["^tests/reports/"]
# The fork modules exist only in a fork, which the tooling imports when
# present; there mypy finds them and checks them.
[[tool.mypy.overrides]]
module = ["fork_checks", "fork_dispositions", "fork_examples"]
ignore_missing_imports = true
[tool.ruff]
line-length = 88