-
Notifications
You must be signed in to change notification settings - Fork 44
/
.flake8
27 lines (27 loc) · 1.35 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
[flake8]
# TODO: remove all of these ignores other than W503,W504,B008
# `black` will handle enforcement of styling, and we will have no opinionated
# ignore rules
# any cases in which we actually need to ignore a rule (e.g. E402) we will mark
# the relevant segment with noqa comments as necessary
#
# D203: 1 blank line required before class docstring
# E124: closing bracket does not match visual indentation
# E126: continuation line over-indented for hanging indent
# This one is bad. Sometimes ordering matters, conditional imports
# setting env vars necessary etc.
# E402: module level import not at top of file
# E129: Visual indent to not match indent as next line, counter eg here:
# https://github.com/PyCQA/pycodestyle/issues/386
#
# E203,W503,W504: conflict with black formatting sometimes
# B008: a flake8-bugbear rule which fails on idiomatic typer usage (consider
# re-enabling this once everything else is fixed and updating usage)
ignore = D203, E124, E126, E402, E129, W605, W503, W504, E203, F401, B008
# TODO: reduce this to 88 once `black` is applied to all code
max-line-length = 160
exclude = parsl/executors/serialize/, test_import_fail.py
# F632 is comparing constant literals with == instead of "is"
per-file-ignores = funcx_sdk/funcx/sdk/client.py:F632,
funcx_endpoint/funcx/endpoint/auth.py:F821,
funcx_endpoint/funcx/serialize/base.py:F821