Skip to content

Commit 2b49b22

Browse files
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. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/julien-duponchelle/python-mysql-replication/issues/620?shareId=XXXX-XXXX-XXXX-XXXX).
1 parent b933500 commit 2b49b22

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Install dependencies
1919
run: |
2020
python -m pip install --upgrade pip
21-
pip install ruff black
21+
pip install ruff
2222
2323
- name: Run lint script
2424
run: bash scripts/lint.sh

.pre-commit-config.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,3 @@ repos:
1212
hooks:
1313
- id: ruff
1414
args: [ --fix, --exit-non-zero-on-fix ]
15-
16-
- repo: https://github.com/psf/black
17-
rev: 23.7.0
18-
hooks:
19-
- id: black

scripts/lint.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@
33
set -e
44
set -x
55

6-
ruff pymysqlreplication
7-
black pymysqlreplication --check
6+
ruff check pymysqlreplication

0 commit comments

Comments
 (0)