Initial upload with CI/CD workflow
Some checks failed
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
Format / format (push) Has been cancelled
Lint / lint (push) Has been cancelled
Security / security (push) Has been cancelled
Test / test (3.10) (push) Has been cancelled
Test / test (3.11) (push) Has been cancelled
Test / test (3.12) (push) Has been cancelled
Test / test (3.8) (push) Has been cancelled
Test / test (3.9) (push) Has been cancelled
Some checks failed
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
Format / format (push) Has been cancelled
Lint / lint (push) Has been cancelled
Security / security (push) Has been cancelled
Test / test (3.10) (push) Has been cancelled
Test / test (3.11) (push) Has been cancelled
Test / test (3.12) (push) Has been cancelled
Test / test (3.8) (push) Has been cancelled
Test / test (3.9) (push) Has been cancelled
This commit is contained in:
24
.gitea/workflows/format.yml
Normal file
24
.gitea/workflows/format.yml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
name: Format
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
format:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: '3.11'
|
||||||
|
- name: Install formatters
|
||||||
|
run: |
|
||||||
|
pip install black isort
|
||||||
|
- name: Run black
|
||||||
|
run: |
|
||||||
|
black --check shellgen/ tests/
|
||||||
|
- name: Run isort
|
||||||
|
run: |
|
||||||
|
isort --check-only shellgen/ tests/
|
||||||
Reference in New Issue
Block a user