Skip to content

Commit

Permalink
Fix lint error & remove black
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
julien-duponchelle committed Jul 27, 2024
1 parent b933500 commit 2b49b22
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff black
pip install ruff
- name: Run lint script
run: bash scripts/lint.sh
5 changes: 0 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,3 @@ repos:
hooks:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]

- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
3 changes: 1 addition & 2 deletions scripts/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
set -e
set -x

ruff pymysqlreplication
black pymysqlreplication --check
ruff check pymysqlreplication

0 comments on commit 2b49b22

Please sign in to comment.