-
Notifications
You must be signed in to change notification settings - Fork 7
40 lines (32 loc) · 1.05 KB
/
autopep8.yml
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
name: Check code formatting with autopep8
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
permissions:
contents: read
jobs:
python-code-format:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit
- name: Checkout code
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Setup python
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: "3.10"
architecture: "x64"
- name: Display Python Version
run: python --version
- name: Install packages
run: pip install autopep8
- name: Check code formatting style
run: |
autopep8 --exit-code --recursive --in-place --aggressive --aggressive . --verbose --max-line-length 200