-
Notifications
You must be signed in to change notification settings - Fork 97
/
Copy path.flake8
43 lines (30 loc) · 1.41 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
[flake8]
# As defined at https://google.github.io/styleguide/pyguide.html#38-comments-and-docstrings
docstring-convention=google
# D212 and D213 are mutually exclusive, so we're only allowing D213.
# D205 and D415 don't like multi-line summary statements, which is annoying.
# E203 and W503 don't interact well with black
ignore = D205,D212,D415,E203,W503
# This is the line length that black uses
# https://black.readthedocs.io/en/stable/the_black_code_style.html#line-length
max-line-length = 88
# This is for pydocstyle - to allow docstrings in __init__ functions
# This rule was used for easier migration from darglint
# TODO: remove this rule
allow-init-docstring=True
per-file-ignores =
# For tests, disable type annotation and docstring linting.
tests/*: ANN D DOC
# Select other tools to enable.
# ABS enables absolute import checks.
# ANN enables linting for type annotations.
# BLK enables using black --check from within flake8.
# D enables docstrings warnings from pydocstyle.
# DOC enables docstring style linting via pydoclint.
# F are errors reported by pyflakes, a tool which parses source files
# and finds invalid Python code.
# I is linting errors related to isort, which is the source of truth
# for how imports should be ordered.
# W and E are warnings and errors reported by pycodestyle, which checks
# your Python code against some of the style conventions in PEP 8.
select = ABS,ANN,DOC,BLK,D,E,F,I,W