-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.cfg
70 lines (61 loc) · 1.79 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
[flake8]
exclude = .git,__pycache__,simulation,notes,docs
max-line-length = 99
# Enable flake8-logging-format:
enable-extensions = G
# Configuration of flake8-tabs:
use-flake8-tabs = True
blank-lines-indent = never
indent-tabs-def = 1
indent-style = tab
ignore =
E117, # over-indented (set when using tabs)
E127, # continuation line over-indented for visual indent
E128, # continuation line under-indented for visual indent
E201, # whitespace after '('
E202, # whitespace before ')'
E265, # block comment should start with '# '
E231, # missing whitespace after ','
E226, # missing whitespace around arithmetic operator
E261, # at least two spaces before inline comment
E302, # expected 2 blank lines, found 1
E305, # expected 2 blank lines after class or function definition, found 1
E501, # line too long
E701, # multiple statements on one line (colon)
W503, # Line break occurred before a binary operator
ET128, # (flake8-tabs) unexpected number of tabs and spaces at start of XXX
[tool:pytest]
addopts = --mpl --strict-markers --durations=10
testpaths = tests
xfail_strict = True
log_cli = True
log_cli_level = WARNING
markers =
mpi: Test requires MPI
ffmpeg: Test requires FFMPEG
web: Test requires internet access
slow: Test is slow
[coverage:run]
source = ./
omit =
photometry/version.py
tests/*
notes/*
docs/*
simulation/*
run_simulateFITS.py
run_todo_merge.py
run_make_catalog.py
[coverage:report]
precision = 2
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain about missing debug-only code:
def __repr__
# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
# Don't complain if non-runnable code isn't run:
if __name__ == .__main__.: