Merge pull request #5142 from openstates/or-2025-mock-session #4103
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 Python | |
on: | |
push: | |
branches: | |
- "*" | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: setup Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.9" | |
- name: install poetry | |
run: pip install poetry wheel | |
- name: install dependencies | |
run: poetry install --only=dev | |
- name: flake8 check | |
run: poetry run flake8 scrapers scrapers_next | |
- name: black check | |
run: poetry run black --check --diff scrapers scrapers_next |