Skip to content

Fixed: Lexer can't build error when running test_library_of_congress_query #51

Fixed: Lexer can't build error when running test_library_of_congress_query

Fixed: Lexer can't build error when running test_library_of_congress_query #51

Workflow file for this run

name: lint_python
on: [pull_request, push]
jobs:
lint_python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: pip install bandit black codespell flake8 isort mypy pytest pyupgrade safety
- run: bandit --recursive --skip B101,B110,B307,B311,B318,B406,B408 .
- run: black --check . || true
- run: codespell --ignore-words-list="authetication,ba,directry,hist,langauge,permissable,te,teh"
--skip="*.asn,*.dtd,*.htm,*.html,*.l,*.pdf,*.txt,*v,*.y"
- run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- run: flake8 . --count --exit-zero --max-complexity=203 --max-line-length=545 --show-source --statistics
- run: isort --check-only --profile black . || true
- run: pip install -r requirements.txt
- run: pip install -e .
- run: mypy --install-types --non-interactive . || true
- run: pytest .
- run: shopt -s globstar && pyupgrade --py36-plus **/*.py || true
- run: safety check
pytest_legacy_python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '2.7'
- run: pip install pytest -r requirements.txt
- run: pip install -e .
- run: pytest .