Skip to content

Weighted-scoring

Weighted-scoring #41

Workflow file for this run

name: Run pre-commit hooks
on:
# Building on pull-requests, manual dispatch, and pushes to main; but restricting
# publishing only to main pushes and manual dispatch with `if`s in specific steps.
pull_request:
push:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
cache-dependency-path: requirements*.txt
- name: Install packages
run: pip install .[test]
- name: Install pre-commit hooks
run: pre-commit install --install-hooks
- name: Run pre-commit
run: pre-commit run --all-files