This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow-steward.git


The following commit(s) were added to refs/heads/main by this push:
     new b9678e74 fix(spec-validator): add dev dependency group and fix 
check-#9 comment (#560)
b9678e74 is described below

commit b9678e745f90edee304efb6ba391169074887388
Author: Justin Mclean <[email protected]>
AuthorDate: Sat Jun 27 06:15:27 2026 +1000

    fix(spec-validator): add dev dependency group and fix check-#9 comment 
(#560)
    
    Add [dependency-groups] dev = [pytest, ruff] to
    tools/spec-validator/pyproject.toml so that the standard
    monorepo invocation
      uv run --project tools/spec-validator --group dev pytest 
tools/spec-validator/tests/
    works from the repo root, matching the pattern established by
    tools/skill-and-tool-validator (asf-coupling-lint) and documented in
    the module docstring.
    
    Also fix a copy-paste comment mislabelling check #9 (validation-path
    existence as check #8 — SPDX header validation is check #8.
    
    Generated-by: Claude (Opus 4.7)
    EOF
    )
---
 tools/spec-validator/pyproject.toml                 |  6 ++++++
 tools/spec-validator/src/spec_validator/__init__.py |  4 ++--
 uv.lock                                             | 14 ++++++++++++++
 3 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/tools/spec-validator/pyproject.toml 
b/tools/spec-validator/pyproject.toml
index 911768d5..d8b3dc86 100644
--- a/tools/spec-validator/pyproject.toml
+++ b/tools/spec-validator/pyproject.toml
@@ -46,6 +46,12 @@ ignore = ["E501"]
 [tool.ruff.lint.per-file-ignores]
 "tests/**" = ["B", "SIM"]
 
+[dependency-groups]
+dev = [
+  "pytest>=8.0",
+  "ruff>=0.4",
+]
+
 [tool.pytest.ini_options]
 minversion = "8.0"
 addopts = "-ra -q"
diff --git a/tools/spec-validator/src/spec_validator/__init__.py 
b/tools/spec-validator/src/spec_validator/__init__.py
index dd3b8d64..ad37adcb 100644
--- a/tools/spec-validator/src/spec_validator/__init__.py
+++ b/tools/spec-validator/src/spec_validator/__init__.py
@@ -40,7 +40,7 @@ Files without frontmatter (README.md, overview.md) are 
skipped silently.
 
 Run from repo root::
 
-    uv run --project tools/spec-validator --group dev pytest
+    uv run --project tools/spec-validator --group dev pytest 
tools/spec-validator/tests/
     uv run --project tools/spec-validator spec-validate tools/spec-loop/specs/
 """
 
@@ -82,7 +82,7 @@ _FENCED_CODE_RE = re.compile(r"^ {0,3}```[\s\S]*?^ {0,3}```", 
re.MULTILINE)
 _YAML_BLOCK_SCALAR_HEADERS: frozenset[str] = frozenset({"|", ">", "|-", "|+", 
">-", ">+"})
 
 # ---------------------------------------------------------------------------
-# Validation-path check constants (check #8)
+# Validation-path check constants (check #9)
 # ---------------------------------------------------------------------------
 
 # Patterns that extract filesystem paths from shell validation commands.
diff --git a/uv.lock b/uv.lock
index 6dcdfe4b..9148330f 100644
--- a/uv.lock
+++ b/uv.lock
@@ -803,6 +803,20 @@ name = "spec-validator"
 version = "0.1.0"
 source = { editable = "tools/spec-validator" }
 
+[package.dev-dependencies]
+dev = [
+    { name = "pytest" },
+    { name = "ruff" },
+]
+
+[package.metadata]
+
+[package.metadata.requires-dev]
+dev = [
+    { name = "pytest", specifier = ">=8.0" },
+    { name = "ruff", specifier = ">=0.4" },
+]
+
 [[package]]
 name = "typing-extensions"
 version = "4.15.0"

Reply via email to