Skip to content

add py.typed

add py.typed #3

Workflow file for this run

name: Linter
on:
push:
paths:
- "**.py"
- ".github/workflows/lint.yml"
pull_request:
branches: [main]
paths:
- "**.py"
- ".github/workflows/lint.yml"
workflow_dispatch:
inputs:
logLevel:
description: "Log level"
required: true
default: "warning"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v5
with:
cache: "pip"
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 colorama isort
- name: Lint using flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 ./src/ninjar --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings.
flake8 ./src/ninjar --count --max-complexity=10 --max-line-length=120 --statistics
- name: Lint using isort
run: |
isort --check-only --show-files --color --profile black src/ninjar