-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.flake8
50 lines (42 loc) · 1.54 KB
/
.flake8
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
# Copyright (C) 2020-2024 Serghei Iakovlev <gnu@serghei.pl>
#
# This file is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3
# of the License, or (at your option) any later version.
#
# This file 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this file. If not, see <https://www.gnu.org/licenses/>.
[flake8]
# Set the maximum allowed length for a line of code
max-line-length = 79
# Set the maximum allowed cyclomatic complexity for a function or method
max-complexity = 10
# When set to True, this option instructs Flake8 to display a summary of
# warnings and errors grouped by type at the end of its output.
statistics = True
# When set to True, this option causes Flake8 to display the offending line
# of code for each warning or error, providing better context for understanding
# and fixing the issues.
show-source = True
# List of files and directories to exclude from linting
exclude =
.git,
.pytest_cache,
.venv,
__pycache__,
dist
# List of modules to be considered as local
application-import-names =
gstore,
tests
# Set the import order style to follow Smarkets' style
import-order-style = smarkets
# Local Variables:
# mode: conf-toml
# End: