Issue/#482 Add TypedDict definition for protocol messages #400
Workflow file for this run
This file contains hidden or 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
# Run static analysis | |
name: Lint | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
pull_request: | |
jobs: | |
isort: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: pip install isort | |
- run: isort . --check --diff | |
flake8: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- uses: TrueBrain/actions-flake8@v2 | |
with: | |
flake8_version: 6.0.0 | |
plugins: flake8-quotes~=3.3 | |
mypy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Create requirements file | |
run: | | |
pip install pipenv==2024.4.1 | |
pipenv requirements --dev > requirements.txt | |
# Mypy-check runs inside its own docker image | |
- uses: jpetrucciani/mypy-check@master | |
with: | |
python_version: '3.10' | |
requirements: | | |
types-PyYAML | |
types-PyMySQL | |
types-cachetools | |
requirements_file: requirements.txt | |
mypy_flags: | | |
--disable-error-code=annotation-unchecked | |
--follow-untyped-imports | |
--strict-equality | |
--warn-redundant-casts | |
--warn-unused-ignores | |
path: server/ main.py | |
pipenv-verify: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: pip install pipenv | |
- run: pipenv verify |