-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added python linting workflow for quality code; issue #264
Signed-off-by: Morgan Rockett <morgan.rockett@tufts.edu>
- Loading branch information
Showing
2 changed files
with
672 additions
and
0 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,27 @@ | ||
name: Pylint | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
lint: | ||
runs-on: [macos-latest, ubuntu-latest] | ||
strategy: | ||
matrix: | ||
python-version: ["3.10"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
# conda activate opencbdc_env | ||
python -m pip install --upgrade pip | ||
if [ -f requirements_py.txt ]; then pip install -r requirements_py.txt; fi | ||
pip install pylint | ||
- name: Lint with Pylint | ||
run: | | ||
# conda activate opencbdc_env | ||
pylint $(git ls-files '*.py') | ||
Oops, something went wrong.