This repository has been archived by the owner on Jan 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.cfg
47 lines (41 loc) · 1.56 KB
/
setup.cfg
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
# coverage.py
[coverage:run]
branch = true
source = foreshadow
omit =
foreshadow/tests/*
foreshadow/smart/intent_resolving/core/*
[coverage:report]
exclude_lines =
pragma: no cover
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.:
# Migrate to pyproject.toml when: https://github.com/nedbat/coveragepy/issues/664
# flake8
[flake8]
exclude = .git,__pycache__,doc/*,build,dist,.tox
ignore =
W503 # Line break occurred after a binary operator (opposite of W504)
D107 # Missing docstring in __init__
D301 # Use r""" if any backslashes in a docstring
max-complexity = 12
per-file-ignores =
foreshadow/transformers/concrete/__init__.py:F401 F403
foreshadow/transformers/concrete/externals.py:F401
foreshadow/transformers/concrete/internals/__init__.py:F401
foreshadow/smart/intent_resolving/core/*.py:I D E S F
foreshadow/tests/*:D I S
examples/*:D I S
# Ignore darglint and pydocstyle errors for tests and examples
# Migrate to pyproject.toml when: https://gitlab.com/pycqa/flake8/issues/428
# pytest
[tool:pytest]
addopts = -v -x --xdoc --cov=foreshadow --cov-config=setup.cfg --cov-report=term --cov-report=html -n=8
# addopts = -s -vv --xdoc
# above is good for pycharm environments.
filterwarnings =
ignore:the matrix subclass:PendingDeprecationWarning
# Remove filterwarning when this: https://github.com/scipy/scipy/issues/9734
# --and-- this have solutions: https://github.com/scikit-learn/scikit-learn/issues/12327
# Migrate to pyproject.toml after https://github.com/pytest-dev/pytest/pull/3686