Skip to content

Commit

Permalink
update ruff to v0.0.289; update black to 23.9.1; flake8 split ignore …
Browse files Browse the repository at this point in the history
…python/paddle/base
  • Loading branch information
gouzil committed Sep 13, 2023
1 parent 6039c35 commit dbf9812
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
13 changes: 11 additions & 2 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
select = C,E,W
exclude =
./build,
# Exclude fluid directory
./python/paddle/base/**,
# Exclude third-party libraries
./third_party/**,
./python/paddle/utils/gast/**,
Expand All @@ -27,3 +25,14 @@ ignore =
per-file-ignores =
# These files need tabs for testing.
test/dygraph_to_static/test_error.py:E101,W191

# tmp ignore
python/paddle/base/backward.py:E713,E712
python/paddle/base/device_worker.py:E712
python/paddle/base/dygraph/base.py:E712
python/paddle/base/executor.py:E266,E712,E714,E266
python/paddle/base/framework.py:E712
python/paddle/base/reader.py:E266
python/paddle/base/trainer_desc.py:E266
python/paddle/base/trainer_factory.py:E712
python/paddle/base/variable_index.py:E712
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ repos:
)$
# For Python files
- repo: https://github.com/psf/black.git
rev: 23.3.0
rev: 23.9.1
hooks:
- id: black
files: (.*\.(py|pyi|bzl)|BUILD|.*\.BUILD|WORKSPACE)$
Expand All @@ -66,7 +66,7 @@ repos:
- id: flake8
args: ["--config=.flake8"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.288
rev: v0.0.289
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --no-cache]
Expand Down

0 comments on commit dbf9812

Please sign in to comment.