Resolve #535 #1695
Workflow file for this run
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
# Run isort and black on pushes to main and any pull requests | |
name: lint | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Black code formatter | |
uses: psf/black@stable | |
with: | |
version: ">=24.3.0" | |
- name: Isort import sorter | |
uses: isort/isort-action@v1 | |
- name: Pylint code analysis | |
run: | | |
pip install pylint | |
pylint --disable=all --enable=missing-docstring,broad-exception-raised scico |