Skip to content

Commit 346b384

Browse files
committed
actions/pre-commit: move back all lining into pre-commit
Update deprecated actions Signed-off-by: Claudio Usai <[email protected]>
1 parent 5ce14ac commit 346b384

File tree

3 files changed

+24
-51
lines changed

3 files changed

+24
-51
lines changed

.github/workflows/linting.yml

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

.github/workflows/pre-commit.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,21 @@ on:
1515
jobs:
1616
pre-commit:
1717
runs-on: ubuntu-latest
18-
1918
steps:
20-
- uses: actions/checkout@v2
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- name: Install poetry
23+
run: pipx install poetry==1.*
2124

2225
- name: Set up Python 3.8
23-
uses: actions/setup-python@v2
26+
uses: actions/setup-python@v5
2427
with:
2528
python-version: '3.8'
26-
architecture: 'x64'
29+
cache: 'poetry'
30+
31+
- name: Install dependencies and library
32+
run: poetry install --no-interaction
2733

2834
- name: Install pre-commit
2935
run: pip install pre-commit

.pre-commit-config.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,17 @@ repos:
88
hooks:
99
- id: end-of-file-fixer
1010
- id: mixed-line-ending
11+
- repo: local
12+
hooks:
13+
- id: system
14+
name: Pylint
15+
entry: poetry run pylint -j 0 suzieq
16+
pass_filenames: false
17+
language: system
18+
- repo: local
19+
hooks:
20+
- id: system
21+
name: Flake8
22+
entry: poetry run flake8 suzieq
23+
pass_filenames: false
24+
language: system

0 commit comments

Comments
 (0)