forked from SciTools/cf-units
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
104 lines (94 loc) · 2.16 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
103
104
[build-system]
# Defined by PEP 518
requires = [
"setuptools>=45",
"setuptools_scm[toml]>=7.0",
"wheel",
"oldest-supported-numpy",
"Cython>=3.0"
]
# Defined by PEP 517
build-backend = "setuptools.build_meta"
[tool.coverage.run]
branch = true
plugins = [
"Cython.Coverage"
]
include = [
"cf_units/*"
]
omit = [
"setup.py",
"cf_units/_version.py",
"cf_units/etc/*",
"cf_units/tests/*",
"cf_units/_udunits2_parser/parser/*",
"cf_units/_udunits2_parser/compile.py",
".eggs"
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if __name__ == .__main__.:"
]
[tool.pytest.ini_options]
addopts = "-ra -v --doctest-modules"
doctest_optionflags = "NORMALIZE_WHITESPACE ELLIPSIS NUMBER"
minversion = "6.0"
testpaths = "cf_units"
[tool.setuptools_scm]
write_to = "cf_units/_version.py"
local_scheme = "dirty-tag"
[tool.ruff]
# Ignore generated code.
exclude = [
"cf_units/_udunits2_parser/parser",
]
line-length = 79
target-version = "py310"
[tool.ruff.lint]
select = [
# pyflakes
"F",
# pycodestyle
"E",
"W",
# flake8-bugbear
"B",
# flake8-comprehensions
"C4",
# isort
"I",
# pyupgrade
"UP",
]
ignore = ["B904", "F403", "F405"]
[tool.ruff.lint.isort]
known-first-party = ["cf_units"]
[tool.ruff.lint.mccabe]
max-complexity = 22
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.repo-review]
# These are a list of the currently failing tests:
ignore = [
"PY005", # Has tests folder
"PP003", # Does not list wheel as a build-dep
"PP304", # Sets the log level in pytest
"PP305", # Specifies xfail_strict
"PP306", # Specifies strict config
"PP307", # Specifies strict markers
"PP309", # Filter warnings specified
"GH104", # Use unique names for upload-artifact
"GH212", # Require GHA update grouping
"PC110", # Uses black or ruff-format
"PC140", # Uses a type checker
"PC160", # Uses a spell checker
"PC170", # Uses PyGrep hooks (only needed if rST present)
"PC180", # Uses a markdown formatter
"PC190", # Uses Ruff
"PC901", # Custom pre-commit CI message
"MY100", # Uses MyPy (pyproject config)
"RF001", # Uses RUFF
]