Skip to content

Merge pull request #34 from knrdl/dependabot/pip/httpx-approx-eq-0.25.1 #59

Merge pull request #34 from knrdl/dependabot/pip/httpx-approx-eq-0.25.1

Merge pull request #34 from knrdl/dependabot/pip/httpx-approx-eq-0.25.1 #59

Workflow file for this run

name: Code Format
on:
push:
branches:
- main
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
pip install flake8 flake8-bandit flake8-bugbear flake8-builtins flake8-comprehensions flake8-deprecated flake8-isort flake8-print flake8-quotes flake8-todo
pip install semgrep
- name: Check linting
run: |
# ignore list:
# F722: https://stackoverflow.com/questions/64909849/syntax-error-with-flake8-and-pydantic-constrained-types-constrregex
# B008: FastAPI uses by design function calls in arguments for dependency injection
echo -e "[settings]\nline_length=179" > .isort.cfg
python -m flake8 --max-line-length 179 --ignore=F722,B008,I001,I004,I005 .
semgrep scan --config=auto .