diff --git a/.gitea/workflows/format.yml b/.gitea/workflows/format.yml new file mode 100644 index 0000000..f712fa4 --- /dev/null +++ b/.gitea/workflows/format.yml @@ -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/