Skip to content

Commit

Permalink
ci: optimize workflow and update dependencies
Browse files Browse the repository at this point in the history
- Update ruff-pre-commit to v0.9.2
- Remove mypy from pre-commit hooks
- Exclude additional files and directories from MANIFEST.in
- Optimize GitHub Actions workflow for specific file changes
  • Loading branch information
tanbro committed Jan 21, 2025
1 parent a1eb790 commit 7ff0254
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
push:
branches: [main, master]
tags: ["v*"]
paths:
- .github/**
- src/**
- mkdocs.yml
- pyproject.toml
pull_request:
branches: [main, master]

Expand Down
8 changes: 1 addition & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repos:
- id: check-docstring-first

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.1
rev: v0.9.2
hooks:
- id: ruff
types_or: [python, pyi, jupyter]
Expand All @@ -32,12 +32,6 @@ repos:
hooks:
- id: nbstripout

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.14.1
hooks:
- id: mypy
args: [--config-file, .mypy.ini, --ignore-missing-imports]

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: "0.31.0"
hooks:
Expand Down
3 changes: 1 addition & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
exclude .*
exclude mkdocs.yml
exclude requirements.txt
exclude *.requirements.txt
exclude codecov.yml

prune .*
prune docs
prune notebooks
prune site
prune static

0 comments on commit 7ff0254

Please sign in to comment.