Skip to content

Commit cecec4a

Browse files
authored
Merge pull request #110 from psqlpy-python/feature/changed_lints
Changed lints
2 parents a7734cd + 5571f84 commit cecec4a

33 files changed

+540
-842
lines changed

.github/workflows/test.yaml

-19
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,6 @@ on:
44
pull_request:
55

66
jobs:
7-
py-lint:
8-
strategy:
9-
matrix:
10-
cmd:
11-
- black
12-
- isort
13-
- ruff
14-
- mypy
15-
runs-on: ubuntu-latest
16-
steps:
17-
- uses: actions/checkout@v2
18-
- name: Set up Python
19-
uses: actions/setup-python@v4
20-
with:
21-
python-version: "3.12"
22-
- name: Run lint check
23-
uses: pre-commit/[email protected]
24-
with:
25-
extra_args: -a ${{ matrix.cmd }}
267
fmt:
278
runs-on: ubuntu-latest
289
steps:

.pre-commit-config.yaml

+10-18
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,11 @@
1+
ci:
2+
skip: [fmt, clippy, check]
3+
14
repos:
25
- repo: https://github.com/pre-commit/pre-commit-hooks
36
rev: v2.1.0
47
hooks:
58
- id: trailing-whitespace
6-
- repo: https://github.com/pycqa/isort
7-
rev: 5.12.0
8-
hooks:
9-
- id: isort
10-
name: python isort
11-
pass_filenames: false
12-
always_run: true
13-
args: ["python"]
14-
- repo: https://github.com/psf/black
15-
rev: 23.9.1
16-
hooks:
17-
- id: black
18-
name: python black
19-
pass_filenames: false
20-
always_run: true
21-
args: ["python"]
229
- repo: https://github.com/pre-commit/mirrors-mypy
2310
rev: v1.5.1
2411
hooks:
@@ -28,13 +15,18 @@ repos:
2815
pass_filenames: false
2916
args: ["python"]
3017
- repo: https://github.com/astral-sh/ruff-pre-commit
31-
rev: v0.0.291
18+
rev: v0.8.1
3219
hooks:
3320
- id: ruff
3421
name: ruff
3522
pass_filenames: false
3623
always_run: true
3724
args: ["python", "--fix"]
25+
- id: ruff-format
26+
name: ruff
27+
pass_filenames: false
28+
always_run: true
29+
args: ["python"]
3830
- repo: local
3931
hooks:
4032
- id: fmt
@@ -77,4 +69,4 @@ repos:
7769
entry: cargo
7870
pass_filenames: false
7971
args:
80-
- check
72+
- check

0 commit comments

Comments
 (0)