-
Notifications
You must be signed in to change notification settings - Fork 12
55 lines (44 loc) · 1.05 KB
/
formatting.yaml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Code style checks
on:
push:
branches:
- "master"
create:
tags:
- "*"
pull_request:
branches:
- "*"
jobs:
black:
name: Check black compliance.
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
- name: Black
uses: psf/black@stable
with:
options: "--config pyproject.toml --check"
src: "."
docstring:
name: Check docstring compliance.
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
- name: Install interrogate
run: python -m pip install interrogate
- name: Run interrogate
run: interrogate .
pre-commit:
name: Check pre-commit compliance.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected]