Resolve #468 (#470) #1476
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@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.9" | |
- name: Black code formatter | |
uses: psf/black@stable | |
with: | |
version: "22.3" | |
- 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 |