Skip to content

Commit 39f974c

Browse files
committed
[py] Update autoflake configuration
1 parent ae64d0d commit 39f974c

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

py/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,4 +154,5 @@ remove-unused-variables = true
154154

155155
[tool.docformatter]
156156
exclude = 'selenium/webdriver/common/devtools'
157+
in-place = true
157158
recursive = true

py/tox.ini

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ deps =
4040
black==24.1.1
4141
flake8==6.1.0
4242
flake8-typing-imports==1.14.0
43-
autoflake==2.3.1
4443
docformatter==1.7.5
4544
commands =
4645
; execute isort in check only mode with diff
@@ -49,10 +48,8 @@ commands =
4948
black --check --diff selenium/ test/ conftest.py -l 120
5049
; execute flake8
5150
flake8 selenium/ test/ --min-python-version=3.9
52-
; execute autoflake in check only mode with diff
53-
autoflake --check-diff --quiet selenium/ test/ conftest.py
5451
; execute docformatter in check only mode with diff
55-
docformatter --check --diff --recursive selenium/
52+
docformatter --check --diff selenium/
5653

5754
[testenv:linting]
5855
; A consolidated linting based recipe, responsible for executing linting tools across the code base.
@@ -68,16 +65,16 @@ skip_install = true
6865
deps =
6966
isort==5.13.2
7067
black==24.1.1
68+
autoflake==2.3.1
7169
flake8==6.1.0
7270
flake8-typing-imports==1.14.0
73-
autoflake==2.3.1
7471
docformatter==1.7.5
7572
commands =
7673
isort selenium/ test/ conftest.py
7774
black selenium/ test/ conftest.py -l 120
78-
flake8 selenium/ test/ --min-python-version=3.9
7975
autoflake selenium/ test/ conftest.py
80-
docformatter --in-place --recursive selenium/
76+
flake8 selenium/ test/ --min-python-version=3.9
77+
docformatter selenium/
8178

8279
[flake8]
8380
exclude = .tox,selenium/webdriver/common/devtools,docs/source/conf.py,*venv

0 commit comments

Comments
 (0)