-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Miki Verma
committed
Sep 24, 2024
1 parent
8773353
commit c09fd40
Showing
17 changed files
with
1,752 additions
and
1,109 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Run various link checks, like flake8 and black, to make sure | ||
# our code remains in good shape, avoids common bugs, and follows | ||
# common coding conventions. | ||
name: lint | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- main | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
linting: | ||
runs-on: ubuntu-latest | ||
steps: | ||
#---------------------------------------------- | ||
# check-out repo and set-up python | ||
#---------------------------------------------- | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12 | ||
#---------------------------------------------- | ||
# load pip cache if cache exists | ||
#---------------------------------------------- | ||
- uses: actions/cache@v4 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip | ||
restore-keys: ${{ runner.os }}-pip | ||
#---------------------------------------------- | ||
# run isort | ||
#---------------------------------------------- | ||
- run: python -m pip install isort | ||
- run: | | ||
isort --profile black ./src ./tests | ||
#---------------------------------------------- | ||
# run black | ||
#---------------------------------------------- | ||
- run: python -m pip install black[jupyter] | ||
- run: | | ||
black ./src ./tests --diff | ||
black ./src ./tests --check | ||
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
Oops, something went wrong.