Skip to content

Commit

Permalink
Set up flake8 and black for package and docs notebooks (remove pylint)
Browse files Browse the repository at this point in the history
  • Loading branch information
dominiquesydow committed Feb 20, 2021
1 parent 1b4ef85 commit 3c7d1df
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 556 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,18 +103,29 @@ jobs:
- name: Install linter and formatter
shell: bash -l {0}
run: |
conda install -y pylint black
conda install -y flake8 flake8-nb black black-nb
- name: Run pylint
- name: Run black check
shell: bash -l {0}
if: always()
run: |
pylint $PACKAGE/
black --check -l 99 $PACKAGE/
- name: Run black check
- name: Run flake8
shell: bash -l {0}
run: |
flake8 --config setup.cfg $PACKAGE/
- name: Run black-nb check
shell: bash -l {0}
if: always()
run: |
black --check -l 99 $PACKAGE/
black-nb --check -l 99 docs/*.ipynb
- name: Run flake8-nb
shell: bash -l {0}
run: |
flake8-nb --config setup.cfg docs/*.ipynb
#############
docs:
Expand Down
Loading

0 comments on commit 3c7d1df

Please sign in to comment.