-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.flake8
More file actions
28 lines (23 loc) · 788 Bytes
/
.flake8
File metadata and controls
28 lines (23 loc) · 788 Bytes
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
# This configuration is adapted from:
# - https://github.com/allenai/allennlp/blob/main/.flake8
# - https://github.com/huggingface/transformers/blob/main/pyproject.toml
[flake8]
max-line-length = 119
ignore =
# these rules don't play well with black
E203 # whitespace before :
W503 # line break before binary operator
exclude =
build/**
doc/**
tutorials/tagger/**
per-file-ignores =
# __init__.py files are allowed to have unused imports and lines-too-long
*/__init__.py:F401
*/**/**/__init__.py:F401,E501
# tests don't have to respect
# E731: do not assign a lambda expression, use a def
tests/**:E731
# scripts don't have to respect
# E402: imports not at top of file (because we mess with sys.path)
scripts/**:E402