Skip to content

Commit 0dff3e5

Browse files
committed
Remove Flake8 and Pylint matchers; update pre-commit configuration to use Ruff for linting
1 parent 75a97d5 commit 0dff3e5

4 files changed

Lines changed: 8 additions & 89 deletions

File tree

.github/workflows/main.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ jobs:
4747

4848
- name: Register problems matchers
4949
run: |
50-
echo "::add-matcher::.github/workflows/matchers/pylint.json"
51-
echo "::add-matcher::.github/workflows/matchers/flake8.json"
5250
echo "::add-matcher::.github/workflows/matchers/mypy.json"
5351
echo "::add-matcher::.github/workflows/matchers/python.json"
5452

.github/workflows/matchers/flake8.json

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/matchers/pylint.json

Lines changed: 0 additions & 32 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,36 +7,19 @@ repos:
77
- id: check-yaml
88
- id: trailing-whitespace
99
- id: end-of-file-fixer
10-
- repo: local
10+
- repo: https://github.com/astral-sh/ruff-pre-commit
11+
rev: v0.9.5
1112
hooks:
12-
- id: black
13-
name: black
14-
entry: black
15-
language: system
16-
types: [ python ]
17-
- id: flake8
18-
name: flake8
19-
entry: flake8
20-
language: system
13+
- id: ruff
14+
name: ruff check
2115
types: [ python ]
22-
- id: isort
23-
name: isort
24-
entry: isort
25-
language: system
26-
types: [ python ]
27-
- id: pyupgrade
28-
name: pyupgrade
29-
entry: pyupgrade
30-
args: ["--py37-plus"]
31-
language: system
16+
- id: ruff-format
17+
name: ruff format
3218
types: [ python ]
19+
- repo: local
20+
hooks:
3321
- id: mypy
3422
name: mypy
3523
entry: mypy
3624
language: system
3725
types: [ python ]
38-
- id: pylint
39-
name: pylint
40-
entry: pylint
41-
language: system
42-
types: [ python ]

0 commit comments

Comments
 (0)