This repository was archived by the owner on Nov 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
81 lines (78 loc) · 1.76 KB
/
pyproject.toml
File metadata and controls
81 lines (78 loc) · 1.76 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
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
[tool.mypy]
disallow_untyped_decorators = false
enable_error_code = [
"ignore-without-code",
"redundant-expr",
"truthy-bool",
]
explicit_package_bases = true
strict = true
warn_unreachable = true
[tool.pytest.ini_options]
addopts = [
"--strict-config",
"--strict-markers",
"-ra",
"-v",
]
filterwarnings = [
"ignore::DeprecationWarning",
]
log_cli_level = "DEBUG"
minversion = "6.0"
testpaths = [
"tests",
]
xfail_strict = true
[tool.ruff]
fix = true
force-exclude = true
show-fixes = true
lint.future-annotations = true
lint.ignore = [
"COM812", # missing-trailing-comma (ruff-format recommended)
"D203", # one-blank-line-before-class
"D212", # blank-line-before-class
"ISC001", # single-line-implicit-string-concatenation (ruff-format recommended)
]
lint.isort = {known-first-party = [
"glass",
], known-third-party = [
"jax",
], section-order = [
"future",
"standard-library",
"third-party",
"array-api",
"cosmo",
"first-party",
"local-folder",
], sections = {"array-api" = [
"array_api_compat",
"array_api_extra",
"array_api_strict",
], "cosmo" = [
"camb",
"cosmology",
]}}
lint.per-file-ignores = {"noxfile.py" = [
"T201", # print
], "tests*" = [
"D100", # undocumented-public-module
"INP001", # implicit-namespace-package
"PLR2004", # magic-value-comparison
"S101", # assert
]}
lint.select = [
"ALL",
]
lint.mccabe.max-complexity = 18
lint.pydocstyle.convention = "numpy"
[tool.tomlsort]
all = true
in_place = true
spaces_indent_inline_array = 4
trailing_comma_inline_array = true
overrides."project.classifiers".inline_arrays = false
overrides."tool.coverage.paths.source".inline_arrays = false
overrides."tool.ruff.lint.isort.section-order".inline_arrays = false