deactivate conda linting #13
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: Lint with pip | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
run-linters: | |
name: Run linters | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ['3.10'] | |
include: | |
- environment-file: .github/environments/requirements-lint.txt | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Set up environment | |
run: | | |
python -m venv lint-env | |
source lint-env/bin/activate | |
python -m pip install --upgrade pip | |
pip install -r ${{ matrix.environment-file }} | |
shell: bash | |
- name: Run linters | |
shell: bash -l {0} | |
run: | | |
source lint-env/bin/activate | |
black . | |
flake8 . --max-line-length=160 --ignore=E203,F811,W503 --exclude=lint-env/lib/python3.10/site-packages |