-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.flake8
More file actions
33 lines (29 loc) · 1.33 KB
/
.flake8
File metadata and controls
33 lines (29 loc) · 1.33 KB
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
# Package uses Flake8 for Code Linting, Check Workflow for information
# docs: https://flake8.pycqa.org/en/latest/user/configuration.html
[flake8]
# Exclude the directory to reduce .flake8 traverse
exclude =
# .git is for version control, no need to traverse
.git,
# docs can also be safely ignored, check config.py for sphinx
# Typically for a package, per-files ignore is very useful
per-file-ignores =
# F401 module imported but unused, useful for init time
# F403 '... import *' used; unable to detect undefined names
pkg-name/__init__.py: F401, F403
# Recommended to restrict in 70 lines, but sometimes violoated,
# due to long URLs which can be ignored by setting line length.
max-line-length = 88
# Ignore the following error/violation codes, for complete list
# https://flake8.pycqa.org/en/latest/user/error-codes.html
# https://pycodestyle.pycqa.org/en/latest/intro.html#error-codes
ignore =
# E203 : White Spaces before symbols, ignored personal preference
# E203 is also violated by black: https://github.com/psf/black
E203,
# 221 multiple spaces before operator
E221,
# E251 unexpected spaces around keyword / parameter equals
E251,
# E261 at least two spaces before inline comment
E261