Skip to content

Commit 6366315

Browse files
committed
Added python linting workflow for quality code; issue mit-dci#264
Signed-off-by: Morgan Rockett <[email protected]>
1 parent 541f006 commit 6366315

File tree

2 files changed

+672
-0
lines changed

2 files changed

+672
-0
lines changed

.github/workflows/pylint.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Pylint
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
lint:
7+
runs-on: [macos-latest, ubuntu-latest]
8+
strategy:
9+
matrix:
10+
python-version: ["3.10"]
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Set up Python ${{ matrix.python-version }}
14+
uses: actions/setup-python@v4
15+
with:
16+
python-version: ${{ matrix.python-version }}
17+
- name: Install dependencies
18+
run: |
19+
# conda activate opencbdc_env
20+
python -m pip install --upgrade pip
21+
if [ -f requirements_py.txt ]; then pip install -r requirements_py.txt; fi
22+
pip install pylint
23+
- name: Lint with Pylint
24+
run: |
25+
# conda activate opencbdc_env
26+
pylint $(git ls-files '*.py')
27+

0 commit comments

Comments
 (0)