lightning/setup.cfg

75 lines
1.4 KiB
INI
Raw Normal View History

2019-04-03 17:17:55 +00:00
[tool:pytest]
norecursedirs =
.git
dist
build
python_files =
test_*.py
doctest_plus = disabled
addopts = --strict
markers =
slow
remote_data
filterwarnings
gpus_param_tests
2019-04-03 17:17:55 +00:00
[pycodestyle]
ignore = E731,W504
max-line-length = 120
2019-07-24 20:04:36 +00:00
[coverage:report]
# TODO: this looks suspicion, it should be reviewed
2019-07-24 19:57:18 +00:00
exclude_lines =
pragma: no cover
def __repr__
if self.debug:
if settings.DEBUG
raise AssertionError
raise NotImplementedError
if 0:
if __name__ == .__main__.:
2019-07-24 21:30:16 +00:00
except Exception as e
2019-07-24 21:34:08 +00:00
print(e)
print(traceback.print_exc())
return *
2019-07-24 22:30:08 +00:00
raise Exception
2019-08-07 16:42:36 +00:00
raise *
2019-08-07 16:51:52 +00:00
except *
2019-07-24 22:30:35 +00:00
warnings
2019-07-24 22:30:47 +00:00
print
2019-07-24 23:29:51 +00:00
raise RuntimeError
2019-07-24 23:35:31 +00:00
break
pass
2019-07-24 23:36:35 +00:00
os.makedirs
# TODO: to be reviewed, this should not be skipped
2019-07-24 20:08:35 +00:00
omit =
2019-07-24 20:09:24 +00:00
pytorch_lightning/callbacks/pt_callbacks.py
2019-07-24 21:27:33 +00:00
tests/test_models.py
2019-07-24 21:28:23 +00:00
pytorch_lightning/testing_models/lm_test_module.py
2019-08-07 16:42:36 +00:00
pytorch_lightning/utilities/arg_parse.py
pl_examples/templates
2019-07-24 20:08:35 +00:00
2019-07-24 20:04:18 +00:00
[flake8]
# TODO: this should be 88 or 100 according PEP8
2019-07-24 20:04:18 +00:00
max-line-length = 120
exclude = .tox,*.egg,build,temp
select = E,W,F
doctests = True
verbose = 2
# https://pep8.readthedocs.io/en/latest/intro.html#error-codes
format = pylint
ignore = E731,W504,F401,F841
# setup.cfg or tox.ini
[check-manifest]
ignore =
.travis.yml
tox.ini
.github
.github/*
[metadata]
license_file = LICENSE
# long_description = file:README.md
# long_description_content_type = text/markdown