Skip to content

Commit 2570ad4

Browse files
authored
use ruff for formatter (#691)
1 parent 720b804 commit 2570ad4

File tree

3 files changed

+6
-40
lines changed

3 files changed

+6
-40
lines changed

Diff for: .github/workflows/codeql.yml

-37
This file was deleted.

Diff for: .github/workflows/lint.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13-
- uses: psf/black@stable
14-
- uses: chartboost/ruff-action@v1
13+
- run: pipx install ruff
14+
- run: ruff check src/
15+
- run: ruff format src/

Diff for: src/MySQLdb/connections.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,9 @@ class object, used to create cursors (keyword only)
193193
super().__init__(*args, **kwargs2)
194194
self.cursorclass = cursorclass
195195
self.encoders = {
196-
k: v for k, v in conv.items() if type(k) is not int # noqa: E721
196+
k: v
197+
for k, v in conv.items()
198+
if type(k) is not int # noqa: E721
197199
}
198200

199201
self._server_version = tuple(

0 commit comments

Comments
 (0)