File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -66,11 +66,14 @@ repos:
66
66
.*/tests/.*|
67
67
.*/migrations/.*
68
68
)$
69
+ # Because of an issue with pylint's Django utils and PATH environment, we add PYTHONPATH.
70
+ # This was used as a hack when running on Circle CI as well
71
+ # Once we upgrade to prospector >=1.9, we can remove it again.
72
+ entry : env PYTHONPATH=readthedocs prospector
69
73
# We have to install the dependencies from an URL since we don't have access to this file easily from pre-commit
70
74
additional_dependencies :
71
75
- -r
72
76
- https://raw.githubusercontent.com/readthedocs/readthedocs.org/main/requirements/pip.txt
73
- - flake8==3.8.4
74
77
75
78
- repo : https://github.com/akaihola/darker
76
79
rev : 1.3.2
Original file line number Diff line number Diff line change 1
- strictness : medium
1
+ strictness : low
2
2
3
3
test-warnings : false
4
4
doc-warnings : true
5
5
6
6
uses :
7
+ # We have issues with FKs as strings and failure with astroid
8
+ # However, leaving out Django causes other linting issues
7
9
- django
8
10
- celery
9
11
@@ -26,11 +28,14 @@ pep8:
26
28
27
29
pylint :
28
30
options :
31
+ # Required for the Django plugin
32
+ django-settings-module : readthedocs.settings.test
29
33
docstring-min-length : 20
30
34
dummy-variables-rgx : ' _$|__$|dummy'
31
35
max-line-length : 100
32
36
disable :
33
37
# We do this for circular imports
38
+ - cyclic-import
34
39
- import-outside-toplevel
35
40
- inconsistent-return-statements
36
41
# We need to adapt our isort config
You can’t perform that action at this time.
0 commit comments