forked from jakirkham/splauncher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.landscape.yml
68 lines (68 loc) · 2.44 KB
/
.landscape.yml
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
autodetect: yes
# Documentation coverage provided by PEP257. Quite good.
doc-warnings: yes
# Ignore the tests directory. Seems to complain about docstrings mostly.
# May change in the future as docstrings can provide a simple explanation.
test-warnings: no
strictness: veryhigh
# Line length to conform with PEP8.
max-line-length: 79
# Use some standard linting tools.
pep8:
full: true
disable:
# PEP8 says we shouldn't have any global variables before imports.
# Generally, this sounds like a good idea. However, it is nice to
# have our `__author__` and `__date__` lines near our module or
# package docstring, which technically are global variables.
# Hence, we ignore PEP8 here. To quote PEP8, "Consistency with
# this style guide is important. Consistency within a project is
# more important. Consistency within one module or function is
# most important."
- E402
# Check docstring coverage and style.
pep257:
run: true
disable:
# Ignore constraint disallowing newlines to follow docstrings.
# We find having a newline there makes it easier to read on a
# quick pass.
- D202
# Ignore constraint about having a newline between class
# definition and docstrings.
- D203
# PEP257 expects the documentation to be indented the same as
# the code. We have preferred to indent it one time further as it
# makes it easier on the eye to note documentation from code on
# a quick pass. So, we suppress this constraint.
- D208
# Ignore suggestion about handling backslashes in docstrings.
- D301
pyflakes:
run: true
pylint:
run: true
disable:
# Skip complaint about invalid name. More often than not the names
# are clear and if anything follow this guideline; so, it is ignored.
- C0103
# Ignore complaint about superfluous parentheses after keywords.
- C0325
# Skip complaint about using start args as they have a very clear
# and frequent use in our codebase when forwarding arguments to
# nested callables.
- W0142
# Skip complaint about using backslash literals in multiline strings.
- W1401
# Analyze our `setup.py`.
pyroma:
run: true
# Analyze our code complexity.
mccabe:
run: true
ignore-paths:
- docs
- examples
- tests
- splauncher/_version.py
- versioneer.py