Skip to content

Commit 811c95c

Browse files
author
Gonzalo Diaz
committed
[CONFIG] autopep8 tool added as source code style check
1 parent e4caf9f commit 811c95c

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/python.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@ name: Python CI Tests
33

44
on: # yamllint disable-line rule:truthy
55
push:
6-
branches: ["main"]
6+
branches: ['main']
77
pull_request:
88
# The branches below must be a subset of the branches above
9-
branches: ["main"]
9+
branches: ['main']
1010
workflow_dispatch:
1111

1212
env:
1313
LOG_LEVEL: INFO
1414

1515
jobs:
1616
build:
17-
name: "Run CI"
17+
name: 'Run CI'
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
os: ["ubuntu-24.04", "macos-14", "windows-2022"]
22-
python: ["3.10", "3.11", "3.12"]
21+
os: ['ubuntu-24.04', 'macos-14', 'windows-2022']
22+
python: ['3.10', '3.11', '3.12']
2323
runs-on: ${{ matrix.os }}
2424
steps:
2525
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
@@ -49,6 +49,9 @@ jobs:
4949
run: |
5050
python3 -m pycodestyle --statistics src/
5151
52+
- name: Styling (autopep8)
53+
run: |
54+
python3 -m autopep8 --diff --recursive --exit-code --verbose .
5255
- name: Test
5356
run: >
5457
coverage run -m pytest --verbose

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ test/styling/json: dependencies
8585

8686
test/styling/sources: dependencies
8787
${RUNTIME_TOOL} -m pycodestyle --statistics src/
88+
${RUNTIME_TOOL} -m autopep8 --diff --recursive --exit-code --verbose .
8889

8990
test/styling: dependencies test/styling/sources test/styling/json
9091

0 commit comments

Comments
 (0)