-
Notifications
You must be signed in to change notification settings - Fork 433
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Description This PR proposes to enable the [`RUF`](https://docs.astral.sh/ruff/rules/#ruff-specific-rules-ruf) ruleset. ``` ruff check . ``` returned: ``` warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in `pyproject.toml`: - 'ignore' -> 'lint.ignore' - 'select' -> 'lint.select' - 'isort' -> 'lint.isort' deltalake/table.py:52:26: RUF100 [*] Unused `noqa` directive (unused: `F811`) deltalake/writer.py:63:26: RUF100 [*] Unused `noqa` directive (unused: `F811`) tests/pyspark_integration/test_write_to_pyspark.py:109:37: RUF010 [*] Use explicit conversion flag Found 3 errors. [*] 3 fixable with the `--fix` option. ``` So these were simply fixed with `ruff check . --fix`. #2673 handles the fixing of the outdated config. --------- Co-authored-by: R. Tyler Croy <[email protected]>
- Loading branch information
Showing
4 changed files
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,7 +83,9 @@ select = [ | |
# pyflakes | ||
"F", | ||
# isort | ||
"I" | ||
"I", | ||
# ruff-specific rules | ||
"RUF" | ||
] | ||
ignore = ["E501"] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters