This repository has been archived by the owner on Jun 6, 2024. It is now read-only.
Separate Specimen Finalization thread #131
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: pylint | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
branches: | |
- "main" | |
- "develop" | |
jobs: | |
linter: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pylint | |
pip install pipenv | |
pipenv --python '3.10' install --dev | |
- name: Analysing the code with pylint | |
run: | | |
pipenv run pylint --rcfile=.pylintrc src/*.py | |
- name: Analysing the code with pycodestyle | |
run: | | |
pip install pycodestyle==2.10.0 | |
pipenv run pycodestyle src/*.py | |
# - name: Analysing the code with black | |
# run: | | |
# pipenv install --skip-lock "black==22.3.0" | |
# pipenv run black --check core/views.py core/views_platform.py | |
# # $(git ls-files '*.py') |