Skip to content

Pyre Configurationless migration for] [batch:14/244] #952

Pyre Configurationless migration for] [batch:14/244]

Pyre Configurationless migration for] [batch:14/244] #952

Workflow file for this run

name: lint_python
on:
pull_request:
branches: main
push:
branches: main
jobs:
lint_python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: pip install bandit click==8.0.4 black==22.3.0 codespell flake8 isort pyre-check pytest pyupgrade safety
- run: bandit --recursive --skip B101,B301,B303,B311,B324,B403 .
- run: black --check .
- run: codespell --ignore-words-list="tha" --skip="*/text_tests,*assets/text/*,*examples/*,*/text/augmenters/utils.py"
- run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- run: flake8 . --count --exit-zero --max-complexity=15 --max-line-length=90 --show-source --statistics
- run: isort --check-only --profile black . || true
- run: shopt -s globstar && pyupgrade --py36-plus **/*.py || true
- run: safety check