xref: /petsc/lib/petsc/bin/maint/petsclinter/pyproject.toml (revision 4c7cc9c8e01791debde927bc0816c9a347055c8f)
1[project]
2name            = "petsclinter"
3version         = "1.2.0"
4requires-python = ">=3.8"
5dependencies    = [
6  "clang",
7  "colorama",
8  "tomli; python_version < '3.11'",
9]
10
11[tool.mypy]
12python_version = "3.8"
13pretty = true
14# For all of these I don't know which one of these actually does the job...
15allow_untyped_globals = false
16disallow_untyped_globals = true
17allow_redefinition = false
18disallow_redefinition = true
19allow_any_generics = false
20disallow_any_generics = true
21allow_subclassing_any = false
22disallow_subclassing_any = true
23allow_untyped_calls = false
24disallow_untyped_calls = true
25strict_equality = true
26warn_unused_ignores = true
27warn_unused_configs = true
28warn_redundant_casts = true
29warn_no_return = true
30warn_return_any = true
31warn_unreachable = true
32enable_error_code = [
33  "redundant-expr",
34  "redundant-self",
35  "truthy-bool",
36  "truthy-iterable",
37  "ignore-without-code"
38]
39
40[[tool.mypy.overrides]]
41module = [
42  "petsclinter.__version__",
43  "petsclinter.pkg_consistency_checks"
44]
45warn_unused_ignores = false
46
47[vermin]
48verbose = 3
49only_show_violations = true
50targets = 3.8
51