fix: update error and logging messages to use format method for consi… #390
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: Lint | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Lint | |
runs-on: macos-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout code 📂 | |
uses: actions/checkout@v4 | |
- name: Setup Rye 🌾 | |
id: setup-rye | |
uses: eifinger/setup-rye@v4 | |
with: | |
enable-cache: true | |
version: "0.42.0" | |
- name: Pin python-version 3.10 📌 | |
run: rye pin 3.10 | |
- name: Cache dependencies 📦 | |
uses: actions/cache@v4 | |
with: | |
path: ./venv | |
key: venv-3.10-macos-latest-${{ hashFiles('requirements.lock') }}-${{ hashFiles('requirements-dev.lock') }} | |
- name: Install dependencies 🛠️ | |
run: | | |
rye sync | |
- name: Cache pre-commit 📦 | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pre-commit | |
key: pre-commit-${{ matrix.python-version }}-${{ hashFiles('.pre-commit-config.yaml') }} | |
- name: Run pre-commit 🚦 | |
run: | | |
rye run pre-commit run --all-files --show-diff-on-failure --color always |