Skip to content

[py] Use ruff for linting and code formatting #15746

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 22 commits into from
May 17, 2025
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
bb64a90
[py] Add ruff linter/formatter and fix violations
cgoldberg May 5, 2025
119181e
Merge branch 'SeleniumHQ:trunk' into py-ruff
cgoldberg May 6, 2025
cd40251
Merge branch 'SeleniumHQ:trunk' into py-ruff
cgoldberg May 6, 2025
d5f6d35
Merge branch 'SeleniumHQ:trunk' into py-ruff
cgoldberg May 7, 2025
34286e9
Merge branch 'SeleniumHQ:trunk' into py-ruff
cgoldberg May 10, 2025
a61cadf
Merge branch 'SeleniumHQ:trunk' into py-ruff
cgoldberg May 11, 2025
80bd62f
Merge branch 'SeleniumHQ:trunk' into py-ruff
cgoldberg May 11, 2025
0207e95
Merge branch 'SeleniumHQ:trunk' into py-ruff
cgoldberg May 13, 2025
b502193
Merge branch 'SeleniumHQ:trunk' into py-ruff
cgoldberg May 14, 2025
4a6bf9e
Merge branch 'SeleniumHQ:trunk' into py-ruff
cgoldberg May 15, 2025
d54aacf
Merge branch 'SeleniumHQ:trunk' into py-ruff
cgoldberg May 15, 2025
e07e050
Merge branch 'SeleniumHQ:trunk' into py-ruff
cgoldberg May 15, 2025
04791a7
[py] Remove old linters and add ruff
cgoldberg May 16, 2025
24d0194
[py] Fix the rest of the linting errors
cgoldberg May 16, 2025
95b5594
[py] Remove docformatter and update README.md
cgoldberg May 16, 2025
9aa794f
[py] Fix docstring
cgoldberg May 16, 2025
780297e
[py] Remove comments
cgoldberg May 16, 2025
1797093
[py] Plug-in ruff into Bazel
p0deje May 16, 2025
1db60e9
[py] Update readme
p0deje May 16, 2025
b244b2c
Merge branch 'SeleniumHQ:trunk' into py-ruff
cgoldberg May 16, 2025
fb7f0f1
[py] Add import sorting
cgoldberg May 16, 2025
6ae2f4c
[py] Remove docformatter from tox
cgoldberg May 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[py] Remove comments
  • Loading branch information
cgoldberg committed May 16, 2025
commit 780297e68dbc48e45b9f208bc7fb4976ec8d687a
3 changes: 0 additions & 3 deletions py/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,11 @@ extend-exclude = [
"generate.py",
]
line-length = 120
indent-width = 4
respect-gitignore = true
target-version = "py39"

[tool.ruff.lint]
#extend-select = ["E4", "E7", "E9", "F"]
extend-select = ["E4", "E7", "E9", "F", "E501"]
#extend-ignore = ["E501"]
fixable = ["ALL"]

[tool.ruff.format]
Expand Down
Loading