Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,5 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install ".[dev]"
- name: Run ruff
run: ruff check .
- name: Run mypy
run: mypy starter_repo tests
- name: Run pre-commit
run: pre-commit run --all-files
10 changes: 6 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
repos:
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.1.6
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.4
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.7.1
rev: v1.10.0
hooks:
- id: mypy
- id: mypy
files: ^(starter_repo|tests)/
additional_dependencies: [pandas-stubs]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pre-commit install

GitHub Actions workflows are set up for:

- [Linting](.github/workflows/lint.yml): Runs Ruff and mypy
- [Linting](.github/workflows/lint.yml): Runs pre-commit hooks (Ruff and mypy)
- [Testing](.github/workflows/test.yml): Runs pytest on multiple Python versions


Expand Down