forked from jgomezdans/pyrealm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.cfg
More file actions
57 lines (51 loc) · 1.16 KB
/
Copy pathsetup.cfg
File metadata and controls
57 lines (51 loc) · 1.16 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
[flake8]
ignore =
E226,
E302,
E41,
D202,
# Blank line after docstring is good
D107,
# Location of __init__ docstring in class not __init__
W503,
# Line break before binary operators is ok
D105
# Magic methods do not need docstrings.
E203
# Whitespace before ':' is ok
per-file-ignores =
pyrealm/pmodel/__init__.py: F401
pyrealm/constants/__init__.py: F401
# Flattening namespace of submodules
max-line-length = 88
# exclude = tests/*
max-complexity = 10
docstring-convention = google
[isort]
profile = black
multi_line_output = 3
[tool:pytest]
addopts =
-v --flake8
--mypy -p no:warnings
--cov=pyrealm --cov-report=html:reports/coverage
--doctest-modules
--ignore=pyrealm/__main__.py
--ignore=tests/pmodel/generate_test_inputs.py
-m "not profiling"
testpaths = tests pyrealm
python_files = test_*.py
[mypy]
ignore_missing_imports = False
strict_optional = True
no_implicit_optional = True
disallow_untyped_calls = True
disallow_untyped_defs = True
disallow_incomplete_defs = True
plugins = numpy.typing.mypy_plugin
[mypy-setup]
ignore_errors = True
[mypy-tests.*]
disallow_untyped_calls = False
disallow_untyped_defs = False
disallow_incomplete_defs = False