forked from hetznercloud/hcloud-python
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 726 Bytes
/
lint.yml
File metadata and controls
39 lines (30 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Lint
on:
push:
branches: [main]
pull_request:
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup python
uses: actions/setup-python@v6
with:
python-version: 3.x
- name: Install dependencies
run: pip install pre-commit
- name: Run pre-commit
run: pre-commit run --all-files --show-diff-on-failure
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup python
uses: actions/setup-python@v6
with:
python-version: 3.x
- name: Install dependencies
run: make venv
- name: Run lint
run: make lint