Skip to content

add lint and format in CI and fix some stuff #1

add lint and format in CI and fix some stuff

add lint and format in CI and fix some stuff #1

Workflow file for this run

# This workflow should work but will fail
# as the code has no types, will add types to the
# code and then uncomment it 👍
# name: Type Check
# on:
# - push
# - pull_request
# jobs:
# check-type:
# runs-on: ubuntu-latest
# steps:
# # Check out repository
# - name: Check out repository
# uses: actions/checkout@v3
# # Set up python
# - name: Set up python
# id: setup-python
# uses: actions/setup-python@v3
# with:
# python-version: '3.11'
# # Install Poetry
# - name: Install Poetry
# uses: snok/install-poetry@v1
# with:
# virtualenvs-create: true
# virtualenvs-in-project: true
# installer-parallel: true
# # Load cached if it exists
# - name: Load cached venv
# id: cached-poetry-dependencies
# uses: actions/cache@v2
# with:
# path: .venv
# key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
# # Install dependencies if cache does not exist
# - name: Install dependencies
# if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
# run: poetry install --no-interaction --no-root
# # Run type checking suite
# - name: Check types
# run: poetry run mypy tesk/