Skip to content

Commit

Permalink
update flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
chanshing committed Nov 19, 2024
1 parent db151a4 commit a1b206d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[flake8]
[flake8] # Copied from PyTorch project
select = B,C,E,F,P,T4,W,B9
max-line-length = 120
# C408 ignored because we like the dict keyword argument syntax
Expand All @@ -12,7 +12,7 @@ ignore =
B007,B008,
# these ignores are from flake8-comprehensions; please fix!
C400,C401,C402,C403,C404,C405,C407,C411,C413,C414,C415
per-file-ignores = __init__.py: F401 torch/utils/cpp_extension.py: B950
per-file-ignores = __init__.py: F401
optional-ascii-coding = True
exclude =
./.git,
Expand All @@ -29,4 +29,5 @@ exclude =
./torch/include,
./torch/lib,
./venv,
*.pyi
*.pyi,
**/__pycache__

0 comments on commit a1b206d

Please sign in to comment.