You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by sb...@apache.org on 2025/08/13 15:07:31 UTC
(tooling-asf-example) branch main updated (a5fc516 -> 9e94bd1)
This is an automated email from the ASF dual-hosted git repository.
sbp pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-asf-example.git
from a5fc516 Clarify the wording about dev versions
new d23dbb4 Add a .gitignore
new 9e94bd1 Add lints
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.gitignore | 14 ++++++++++++
.pre-commit-config.yaml | 55 +++++++++++++++++++++++++++++++++++++++++++++
share/apache-2.0_header.txt | 16 +++++++++++++
3 files changed, 85 insertions(+)
create mode 100644 .gitignore
create mode 100644 .pre-commit-config.yaml
create mode 100644 share/apache-2.0_header.txt
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org
(tooling-asf-example) 02/02: Add lints
Posted by sb...@apache.org.
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-asf-example.git
commit 9e94bd12dc52e80ca9278322dc9302c397bbbbf1
Author: Sean B. Palmer <se...@miscoranda.com>
AuthorDate: Wed Aug 13 16:06:55 2025 +0100
Add lints
---
.pre-commit-config.yaml | 55 +++++++++++++++++++++++++++++++++++++++++++++
share/apache-2.0_header.txt | 16 +++++++++++++
2 files changed, 71 insertions(+)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
new file mode 100644
index 0000000..a006151
--- /dev/null
+++ b/.pre-commit-config.yaml
@@ -0,0 +1,55 @@
+repos:
+- repo: https://github.com/pre-commit/pre-commit-hooks
+ rev: v5.0.0
+ hooks:
+ - id: check-ast
+ - id: check-case-conflict
+ - id: check-executables-have-shebangs
+ - id: check-illegal-windows-names
+ - id: check-merge-conflict
+ - id: check-shebang-scripts-are-executable
+ - id: check-toml
+ - id: check-vcs-permalinks
+ - id: check-yaml
+ - id: detect-private-key
+ - id: end-of-file-fixer
+ - id: fix-byte-order-marker
+ - id: forbid-submodules
+ - id: mixed-line-ending
+ - id: trailing-whitespace
+- repo: https://github.com/Lucas-C/pre-commit-hooks
+ rev: v1.5.5
+ hooks:
+ - id: insert-license
+ name: Add license for all Python files
+ files: ^src/(.*\.py$|.*\.pyi)$
+ args:
+ - --comment-style
+ - "|#|"
+ - --license-filepath
+ - share/apache-2.0_header.txt
+ - --fuzzy-match-generates-todo
+- repo: https://github.com/shellcheck-py/shellcheck-py
+ rev: v0.10.0.1
+ hooks:
+ - id: shellcheck
+- repo: local
+ hooks:
+ - id: ruff
+ name: Ruff Linter
+ entry: uv run ruff check --fix
+ language: system
+ types: [python]
+
+ - id: ruff-format
+ name: Ruff Formatter
+ entry: uv run ruff format --force-exclude
+ language: system
+ types: [python]
+
+ - id: pyright
+ name: Pyright Type Check
+ entry: uv run pyright
+ language: system
+ require_serial: true
+ types: [python]
diff --git a/share/apache-2.0_header.txt b/share/apache-2.0_header.txt
new file mode 100644
index 0000000..60b675e
--- /dev/null
+++ b/share/apache-2.0_header.txt
@@ -0,0 +1,16 @@
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org
(tooling-asf-example) 01/02: Add a .gitignore
Posted by sb...@apache.org.
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-asf-example.git
commit d23dbb41aea6c5c3ecfe8fcda81779b4c46ff6f1
Author: Sean B. Palmer <se...@miscoranda.com>
AuthorDate: Wed Aug 13 16:06:22 2025 +0100
Add a .gitignore
---
.gitignore | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..7d0f678
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,14 @@
+__pycache__/
+.DS_Store
+.env
+.mypy_cache/
+.pytest_cache/
+.ruff_cache/
+.venv/
+.vscode/
+*.egg-info/
+*.pyc
+dev/
+dist/
+node_modules/
+package-lock.json
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org