-
Notifications
You must be signed in to change notification settings - Fork 679
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix lint error & remove black (#621)
* Fix lint error & remove black Related to #620 Update the lint script and configuration files to fix the lint error. And remove black because ruff replace it. * **scripts/lint.sh** - Update the `ruff` command to use `ruff check` instead of `ruff`. - Remove the `black` command. * **.github/workflows/lint.yml** - Remove `black` from the `Install dependencies` step. * **.pre-commit-config.yaml** - Remove the `black` dependency.
- Loading branch information
1 parent
b933500
commit 3397d39
Showing
6 changed files
with
9 additions
and
12 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
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
[tool.ruff] | ||
ignore = [ | ||
"E501", # Line too long, handled by black | ||
lint.ignore = [ | ||
"F403", # from module import *' used, It should be removed afterwad | ||
"F405", # same to F403 | ||
] | ||
|
||
[tool.ruff.per-file-ignores] | ||
[tool.ruff.lint.per-file-ignores] | ||
"__init__.py" = ["F401"] |
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 |
---|---|---|
|
@@ -3,5 +3,4 @@ | |
set -e | ||
set -x | ||
|
||
ruff pymysqlreplication | ||
black pymysqlreplication --check | ||
ruff check pymysqlreplication |