Change default branch name to main #138
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint python | |
on: | |
push: | |
branches: | |
- stable | |
- develop | |
pull_request: | |
jobs: | |
code-style: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.11"] | |
name: Python ${{ matrix.python-version }} on ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: x64 | |
- name: Install dependencies | |
run: | | |
python -m pip install black ruff | |
- name: Ruff | |
run: ruff . --no-fix | |
continue-on-error: true | |
- name: Black | |
run: | | |
black . --diff --check |