Skip to content

fixed pypi

fixed pypi #19

Workflow file for this run

name: Lint
on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Lint with ruff
run: |
# Run ruff but don't fail the build yet (exit-zero)
ruff check . --exit-zero
- name: Type check with mypy
run: |
# Run mypy but don't fail the build yet
# Use --ignore-missing-imports to ignore missing stubs for third-party libraries
mypy datafog/ --ignore-missing-imports || true