Skip to content

Commit 95b5594

Browse files
committed
[py] Remove docformatter and update README.md
1 parent 24d0194 commit 95b5594

4 files changed

Lines changed: 4 additions & 15 deletions

File tree

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -217,16 +217,12 @@ To automatically update and pin new dependencies, run:
217217

218218
### Python
219219

220-
#### Linting
220+
#### Linting and Formatting
221221

222222
We follow the [PEP8 Style Guide for Python Code](https://peps.python.org/pep-0008) (except we use a 120 character line length).
223-
This is checked and enforced with several linting tools, including
224-
[black](https://pypi.org/project/black),
225-
[docformatter](https://pypi.org/project/docformatter),
226-
[flake8](https://flake8.pycqa.org),
227-
and [isort](https://pycqa.github.io/isort).
223+
This is checked and enforced with [ruff](https://docs.astral.sh/ruff/), a linting/formatting tool.
228224

229-
To run all of the linting tools:
225+
To run linting and formatting:
230226
```shell
231227
./go py:lint
232228
```

py/pyproject.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,9 @@ ignore_missing_imports = true
131131
# suppress error messages about imports that cannot be resolved.
132132
ignore_missing_imports = true
133133

134-
[tool.docformatter]
135-
exclude = "selenium/webdriver/common/devtools"
136-
in-place = true
137-
recursive = true
138-
139134
[tool.ruff]
140135
extend-exclude = [
141136
"selenium/webdriver/common/devtools/",
142-
"private/",
143137
"generate.py",
144138
]
145139
line-length = 120

py/tox.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,5 @@ deps =
3838
ruff==0.11.10
3939
docformatter==1.7.5
4040
commands =
41-
docformatter selenium/ test/ conftest.py
4241
ruff check --fix --show-fixes --exit-non-zero-on-fix selenium/ test/ conftest.py
4342
ruff format --exit-non-zero-on-format selenium/ test/ conftest.py

scripts/format.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ bazel run @rules_rust//:rustfmt
3333

3434
# TODO: use bazel target when rules_python supports formatting
3535
section "Python"
36-
echo " python - isort, black, autoflake, flake8, docformatter" >&2
36+
echo " python - ruff" >&2
3737
pip install tox
3838
export TOXENV=linting
3939
tox -c py/tox.ini

0 commit comments

Comments
 (0)