Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Cm3 integration

Cm3 integration #1855

Workflow file for this run

name: lint_tests
on:
# Trigger the workflow on push to master or any pull request
push:
branches:
- main
pull_request:
jobs:
build:
strategy:
max-parallel: 1
matrix:
platform: [ubuntu-latest]
python-version: [3.8]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Lint with flake8
run: |
pip install flake8
flake8 --per-file-ignores="__init__.py:F401" . --count --exit-zero --statistics
# stop the build if there are Python syntax errors or undefined names
flake8 --per-file-ignores="__init__.py:F401" . --count --select=E9,F63,F7,F82 --show-source --statistics
# complain about lints
flake8 --per-file-ignores="__init__.py:F401" .
- name: Lint with black
run: |
pip install black
python -m black --check --diff .
- name: Type Checking with MyPy
run: |
pip install mypy
mypy || true