forked from determined-ai/determined
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.flake8
42 lines (35 loc) · 1.81 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
# Note: this should be kept in sync with ./harness/.flake8 minus the `exclude` line.
[flake8]
max-line-length = 100
# exclude =
# We ignore F401 in __init__.py because it is expected for there to be
# "unused imports" when defining a "regular" package. (This file is
# implicitly executed when the package is imported, and the imports would
# be used by the importer.)
per-file-ignores = __init__.py:F401
# Explanations for ignored error codes:
# - D1* (no missing docstrings): too much effort to start enforcing
# - D200 (short docstring must fit in one line with quotes): stylistic choice
# - D202 (no blank lines after function docstrings): stylistic choice
# - D203 (blank line before class docstring): stylistic choice
# - D205 (blank line between summary and description): not enforcing single-line summaries
# - D212 (docstring should start on first line): stylistic choice (prefer D213, docstrings start on second line)
# - D4* (docstring content warnings): too much effort to start enforcing
# - E203 (no space before colon): not PEP8-compliant; triggered by Black-formatted code
# - W503 (no line breaks before binary operator): not PEP8-compliant; triggered by Black-formatted code
# - C812-C816 (missing trailing comma): stylistic choice
# - A003 (class attribute is shadowing a python builtin): not a high risk of causing issues.
ignore = D1,D200,D202,D203,D205,D212,D4,E203,W503,C812,C813,C814,C815,C816,A003
# Disable flake8-import-restrictions
extend-ignore = I20
show_source = true
# flake8-colors
# format = ${cyan}%(path)s${reset}:${yellow_bold}%(row)d${reset}:${green_bold}%(col)d${reset}: ${red_bold}%(code)s${reset} %(text)s
# flake8-docstrings
docstring-convention = google
# flake8-import-order
application-import-names = determined
import-order-style = edited
# flake8-quotes
inline-quotes = "
multiline-quotes = """