/
setup.cfg
35 lines (31 loc) · 1.17 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
[bdist_wheel]
universal = 1
[nosetests]
with-doctest = 1
doctest-tests = 1
# hey actually bug: nose picks up 'test_suite' as a test (it isn't!) and misses
# two doctests in restview.restviewhttp
[tool:pytest]
norecursedirs = .* *.egg-info dist tmp build temp man lib include bin
python_files = tests.py
python_functions = !test_suite
addopts = --doctest-modules --ignore=setup.py
[zest.releaser]
python-file-with-version = src/restview/restviewhttp.py
[flake8]
doctests = yes
ignore = E121,E123,E126,E133,E226,E241,E242,E704,E261,W503,E501
# https://pep8.readthedocs.org/en/latest/intro.html#error-codes
# these are ignored by default:
# E121: continuation line under-indented for hanging indent
# E123: closing bracket does not match indentation of opening bracket’s line
# E226: missing whitespace around arithmetic operator
# E241: multiple spaces after ‘,’
# E242: tab after ‘,’
# these were added:
# E126: continuation line over-indented for hanging indent
# E133: closing bracket does not match visual indentation
# E704: multiple statements on one line (def)
# E261: at least two spaces before inline comment
# W503: line break before binary operator
# E501: line too long