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-trusted-release.git


The following commit(s) were added to refs/heads/main by this push:
     new 65eb287  Add a lightweight linting configuration for frequent interim 
checking
65eb287 is described below

commit 65eb287d2c3f638d9957650b39fb056bd2f9d5f5
Author: Sean B. Palmer <[email protected]>
AuthorDate: Mon Jul 7 15:18:09 2025 +0100

    Add a lightweight linting configuration for frequent interim checking
---
 .gitignore             |  7 ++++---
 .pre-commit-light.yaml | 44 ++++++++++++++++++++++++++++++++++++++++++++
 Makefile               |  4 ++++
 3 files changed, 52 insertions(+), 3 deletions(-)

diff --git a/.gitignore b/.gitignore
index 339aa9a..e55fc1a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,4 @@
-*.pyc
+__pycache__/
 .DS_Store
 .env
 .mypy_cache/
@@ -7,10 +7,11 @@
 .venv-poetry/
 .venv-uv/
 .vscode/
-__pycache__/
+*.pyc
 apptoken.txt
+atr/_version.py
 bootstrap/build/
+dev/
 node_modules/
 package-lock.json
 state/
-atr/_version.py
diff --git a/.pre-commit-light.yaml b/.pre-commit-light.yaml
new file mode 100644
index 0000000..bb42991
--- /dev/null
+++ b/.pre-commit-light.yaml
@@ -0,0 +1,44 @@
+repos:
+- repo: local
+  hooks:
+    - id: ruff
+      name: Ruff Linter
+      entry: ruff check --fix
+      language: system
+      types: [python]
+      exclude: ^node_modules/
+
+    - id: ruff-format
+      name: Ruff Formatter
+      entry: ruff format --force-exclude
+      language: system
+      types: [python]
+      exclude: ^node_modules/
+
+    - id: pyright
+      name: Pyright Type Check
+      entry: pyright
+      language: system
+      require_serial: true
+      types: [python]
+      exclude: ^tests/
+
+    # The separate ATR client hooks are needed because of the uv shebang
+    - id: ruff-client
+      name: Ruff Linter (client)
+      entry: ruff check --fix client/atr
+      language: system
+      pass_filenames: false
+
+    - id: ruff-format-client
+      name: Ruff Formatter (client)
+      entry: ruff format --force-exclude client/atr
+      language: system
+      pass_filenames: false
+
+    - id: pyright-client
+      name: Pyright Type Check (client)
+      entry: pyright client/atr
+      language: system
+      require_serial: true
+      pass_filenames: false
diff --git a/Makefile b/Makefile
index f37ca93..9985f86 100644
--- a/Makefile
+++ b/Makefile
@@ -35,6 +35,10 @@ check-extra:
        @find atr -name '*.py' -exec python3 scripts/interface_order.py {} 
--quiet \;
        @find atr -name '*.py' -exec python3 scripts/interface_privacy.py {} 
--quiet \;
 
+check-light:
+       git add -A
+       $(SCRIPTS)/run pre-commit run --all-files --config 
.pre-commit-light.yaml
+
 docs:
        for fn in docs/*.md; \
        do \


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to