Skip to content

Commit 73827a2

Browse files
committed
changed formatter
1 parent ced973f commit 73827a2

2 files changed

Lines changed: 25 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
test:
1111
strategy:
1212
matrix:
13-
python-version: ['3.11', '3.12'] # Specify the Python versions you want to test against
13+
python-version: ['3.10', '3.11', '3.12'] # Specify the Python versions you want to test against
1414
os: [ubuntu-latest, windows-latest]
1515
name: Python ${{ matrix.python-version }} - ${{ matrix.os }}
1616
runs-on: ${{ matrix.os }}

.github/workflows/format.yml

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,28 @@
1-
name: Format
2-
3-
on:
4-
push:
5-
branches: [main]
6-
tags: [v*]
7-
pull_request:
8-
1+
name: Format Python Code
2+
on: push
93
jobs:
10-
linter_name:
11-
name: runner / black formatter
4+
python-code-format:
125
runs-on: ubuntu-latest
136
steps:
14-
- uses: actions/checkout@v4
15-
- uses: rickstaa/action-black@v1
7+
- uses: actions/checkout@v2
8+
- uses: actions/setup-python@v4
169
with:
17-
black_args: ". --check"
10+
python-version: "3.12"
11+
architecture: "x64"
12+
- name: Display Python version
13+
run: python --version
14+
- name: Install packages
15+
run: pip install black autopep8 isort
16+
- name: Formatter
17+
run: |
18+
black .
19+
autopep8 --recursive --in-place --aggressive --aggressive .
20+
isort .
21+
- name: Create Pull Request
22+
uses: peter-evans/create-pull-request@v3
23+
with:
24+
commit-message: Auto code format
25+
title: Fixes by format action
26+
body: This is an auto-generated PR with fixes.
27+
labels: automated pr
28+
branch: python-code-format-patches

0 commit comments

Comments
 (0)