Skip to content

Commit

Permalink
AVRO-3807: Implement Autoflake in Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kojiromike committed Jul 20, 2023
1 parent 7a37592 commit 76e7fef
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lang/py/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,11 @@ line-length = 150

[tool.isort]
profile = 'black'

[tool.autoflake]
check-diff = true
expand-star-imports = true
remove-all-unused-imports = true
remove-duplicate-keys = true
remove-unused-variables = true
recursive = true
2 changes: 2 additions & 0 deletions lang/py/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,12 @@ commands_post =

[testenv:lint]
deps =
autoflake
black
isort
commands_pre =
commands =
autoflake .
black --check .
isort --check-only .
commands_post =
Expand Down

0 comments on commit 76e7fef

Please sign in to comment.