Skip to content

Commit 422ff6a

Browse files
RishabhJain2018deshraj
authored andcommitted
Coda Quality: Added pylint configuration and modified landscape config. (#398)
* Added pylint configuration file and modified setup and landscape files. * Added Comments in pylintrc file.
1 parent 6cd4a5f commit 422ff6a

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

.landscape.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
doc-warnings: true
1+
doc-warnings: false
22
test-warnings: false
33
strictness: high
44
max-line-length: 120
55
uses:
66
- django
77
autodetect: true
88
requirements:
9+
- requirements/common.txt
910
- requirements/dev.txt
1011
- requirements/prod.txt
1112
ignore-paths:
@@ -15,3 +16,7 @@ ignore-patterns:
1516
- (^|/)docs(/|$)
1617
python-targets:
1718
- 2
19+
pep8:
20+
full: true
21+
pylint:
22+
run: true

.pylintrc

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[MESSAGES CONTROL]
2+
# Disable Messages
3+
# C0103: Invalid %s name "%s".
4+
# C0111: Missing %s docstring.
5+
# C0330: Regarding hanging indentation.
6+
# C1001: Old-style class defined.
7+
# D100: Missing docstring in public module.
8+
# E1101: %s %r has no %r member.
9+
# R0201: Method could be a function.
10+
# R0903: Too few public methods.
11+
# W0223: Method %r is abstract in class %r but is not overridden.
12+
# W0232: Class has no __init__ method.
13+
# W0613: Unused argument.
14+
# W0702: No exception type(s) specified.
15+
disable=C0103,C0111,C0330,C1001,D100,E1101,R0201,R0903,W0223,W0232,W0613,W0702
16+
17+
[FORMAT]
18+
max-line-length=120
19+
20+
[DESIGN]
21+
22+
# Maximum number of return / yield for function / method body
23+
max-returns=10

setup.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[flake8]
22
max-line-length = 120
33
exclude = .git,*/migrations/*,*/static/CACHE/*,docs/,env/,fabfile/
4-
ignore=F401
54

65
[pytest]
76
DJANGO_SETTINGS_MODULE = settings.test

0 commit comments

Comments
 (0)