refactor: updating code with recommended ruff practices #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Feature Branch CI | |
on: | |
push: | |
branches: | |
- 'feature/*' | |
- 'bugfix/*' | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4.1.0 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.8" | |
cache: "pip" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install hatch | |
- name: lint and format | |
run: hatch fmt --check | |
- name: check types | |
run: hatch run types:check | |
- name: run tests | |
run: hatch run testing:metrics:all_tests |