Add CI linting using MyPy #1

Manually merged
MichaelBradley merged 3 commits from actions into main 2025-02-23 07:23:48 -05:00
Showing only changes of commit a4e68e34b0 - Show all commits

View file

@ -6,20 +6,16 @@ name: Lint
jobs: jobs:
lint: lint:
name: MyPy name: MyPy
runs-on: docker runs-on: ubuntu-22.04
steps: steps:
- name: Checkout - name: Checkout the code
uses: actions/checkout@v4 uses: actions/checkout@v4
# TODO: Replace with working action - name: Set up the Python toolchain
- name: Set up Python environment uses: actions/setup-python@v5
run: | with:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python-version: "3.13"
python3 get-pip.py cache: pip
python3 -m pip install virtualenv - name: Set up the Python environment
python3 -m virtualenv venv run: pip install -r requirements.txt
source venv/bin/activate - name: Type-check the code
pip install -r requirements.txt run: mypy *.py
- name: Type-check
run: |
source venv/bin/activate
mypy *.py