This is an automated email from the ASF dual-hosted git repository.
sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-atr-experiments.git
The following commit(s) were added to refs/heads/main by this push:
new 7cd917b Use remote repositories for pre-commit and add mypy
7cd917b is described below
commit 7cd917bdb21a295dfdc8fa9eb144662979c1e1c5
Author: Sean B. Palmer <[email protected]>
AuthorDate: Wed Feb 12 18:43:49 2025 +0200
Use remote repositories for pre-commit and add mypy
---
.pre-commit-config.yaml | 31 ++++++++++++++++---------------
1 file changed, 16 insertions(+), 15 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index bf872ec..c0de914 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -20,22 +20,23 @@ repos:
- --license-filepath
- LICENSE-template.txt
- --fuzzy-match-generates-todo
- - repo: local
+ - repo: https://github.com/astral-sh/ruff-pre-commit
+ rev: v0.9.6
hooks:
- id: ruff
- name: Ruff Linter
- entry: ruff check --fix
- language: system
- types: [python]
-
+ args: [check, --fix]
- id: ruff-format
- name: Ruff Formatter
- entry: ruff format --force-exclude
- language: system
- types: [python]
-
+ args: [--force-exclude]
+ - repo: https://github.com/RobertCraigie/pyright-python
+ rev: v1.1.394
+ hooks:
- id: pyright
- name: Pyright Type Check
- entry: pyright
- language: system
- types: [python]
+ - repo: https://github.com/pre-commit/mirrors-mypy
+ rev: v1.15.0
+ hooks:
+ - id: mypy
+ additional_dependencies:
+ - types-PyYAML
+ - types-setuptools
+ - types-toml
+ - types-requests
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]