Skip to content
Merged
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
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ repos:
rev: v2.1.0
hooks:
- id: mypy
# With pass_filenames: false, we must provide an explicit target for mypy.
# Otherwise mypy exits with: "Missing target module, package, files, or command."
args: [--config-file=pyproject.toml, src, tutorials]
# Pass only the staged files pre-commit selects (via the files regex);
# do not scan whole src/ and tutorials/ trees, which would include
# untracked files.
args: [--config-file=pyproject.toml]
additional_dependencies:
- types-setuptools
- scipy-stubs
- types-requests
pass_filenames: false
files: ^(src/|tutorials/)

# Regenerate docs/API_MAP.md whenever Python source files change
Expand Down
Loading