forked from SciTools/cf-units
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
74 lines (68 loc) · 1.29 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
[build-system]
# Defined by PEP 518
requires = [
"setuptools>=42",
"setuptools_scm[toml]>=6.0",
"wheel",
"numpy",
"Cython"
]
# 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"
[tool.black]
line-length = 79
target-version = ['py37', 'py38', 'py39']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
| _version.py
)
'''
[tool.isort]
known_first_party = "cf_units"
line_length = 79
profile = "black"
skip_gitignore = "True"
verbose = "False"