Skip to content

Commit

Permalink
use ruff for formatter (#691)
Browse files Browse the repository at this point in the history
  • Loading branch information
methane authored Feb 4, 2024
1 parent 720b804 commit 2570ad4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 40 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/codeql.yml

This file was deleted.

5 changes: 3 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable
- uses: chartboost/ruff-action@v1
- run: pipx install ruff
- run: ruff check src/
- run: ruff format src/
4 changes: 3 additions & 1 deletion src/MySQLdb/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ class object, used to create cursors (keyword only)
super().__init__(*args, **kwargs2)
self.cursorclass = cursorclass
self.encoders = {
k: v for k, v in conv.items() if type(k) is not int # noqa: E721
k: v
for k, v in conv.items()
if type(k) is not int # noqa: E721
}

self._server_version = tuple(
Expand Down

0 comments on commit 2570ad4

Please sign in to comment.