-
Notifications
You must be signed in to change notification settings - Fork 13
/
tox.ini
98 lines (85 loc) · 2.56 KB
/
tox.ini
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# LICENCE: This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
[tox]
skip_missing_interpreters = true
skipsdist = true
envlist =
safety,py37,py38,py39,py310
geany_modules = geany latest_version news nightlybuilds pastebin static_docs
[testenv]
deps =
flake8
isort
pylint
pylint-django
-r{toxinidir}/requirements.txt
commands =
{envbindir}/flake8 {[tox]geany_modules}
{envbindir}/isort --check-only --diff {[tox]geany_modules}
{envbindir}/pylint --rcfile=tox.ini --django-settings-module=geany.settings {[tox]geany_modules}
[testenv:safety]
deps =
safety
-r{toxinidir}/requirements.txt
commands =
# ignore CVE-2020-19002 as it does not affect us (we don't use the blog app)
{envbindir}/safety check --ignore 54309
[flake8]
exclude = build,.git,docs,migrations,local_settings.py,local_settings.docker.py
ignore = E127,E128,
max-line-length = 100
[isort]
line_length = 100
indent = 4
multi_line_output = 3
length_sort = false
force_alphabetical_sort_within_sections = true
sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
lines_after_imports = 2
from_first = true
include_trailing_comma = true
skip = local_settings.py,local_settings.docker.py
# the following sections are for pylint
[pylint.main]
ignore=.git
ignore-patterns=local_settings.py,local_settings.docker.py
persistent=no
load-plugins=
pylint_django,
pylint.extensions.bad_builtin,
pylint.extensions.check_elif,
pylint.extensions.comparetozero,
pylint.extensions.emptystring,
pylint.extensions.mccabe,
pylint.extensions.overlapping_exceptions,
pylint.extensions.redefined_variable_type
[pylint]
disable=
empty-docstring,
logging-format-interpolation,
missing-docstring,
no-else-return
[pylint.reports]
output-format=parseable
reports=no
[pylint.format]
max-line-length=100
[pylint.variables]
dummy-variables-rgx=_|dummy
[pylint.design]
min-public-methods=0
max-attributes=10
max-args=7
max-parents=9
[pylint.exceptions]
overgeneral-exceptions=