Merge documentation branch #271
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 | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
# Check all PR | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install flake8 black isort | |
# - name: Lint with flake8 | |
# run: | | |
# # ignore formatting, it will be checked by black | |
# export FORMATTING_RULES="E101,E111,E114,E115,E116,E117,E12,E13,E2,E3,E401,E5,E70,W1,W2,W3,W5" | |
# flake8 --ignore=$FORMATTING_RULES . | |
- name: Lint with black | |
run: | | |
black --check . | |
black --diff . | |
- name: Check imports | |
run: | | |
isort anisoap/*/*py -m 3 --tc --fgw --up -e -l 88 --check | |
isort anisoap/*py -m 3 --tc --fgw --up -e -l 88 --check |