From 2f2f924fb1598d63e29d51d606f52d95f1249c96 Mon Sep 17 00:00:00 2001 From: Patrick Dougherty Date: Thu, 27 Feb 2025 14:30:10 -0600 Subject: [PATCH] [CI] Validating post merge --- .github/workflows/test_pre_commit.yml | 2 +- .pre-commit-config.yaml | 6 +++--- mojo/stdlib/src/builtin/bool.mojo | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test_pre_commit.yml b/.github/workflows/test_pre_commit.yml index 99a2ddf73d..8e65864e5a 100644 --- a/.github/workflows/test_pre_commit.yml +++ b/.github/workflows/test_pre_commit.yml @@ -48,5 +48,5 @@ jobs: pre-commit install - name: Run pre-commit - run: magic run pre-commit run --all-files + run: magic run --manifest-path mojo pre-commit run --all-files diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b04addfbb6..59ab737652 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,9 +3,9 @@ repos: hooks: - id: mojo-format name: mojo-format - entry: mojo format mojo + entry: mojo format language: system - files: '\.(mojo|🔥|py)$' + files: '^(mojo|examples/mojo).*\.(mojo|🔥|py)$' stages: [commit] - id: check-docstrings name: check-docstrings @@ -17,7 +17,7 @@ repos: name: check-license entry: mojo mojo/stdlib/scripts/check_licenses.mojo language: system - files: '\.(mojo|🔥|py)$' + files: '^(mojo|examples/mojo).*\.(mojo|🔥|py)$' stages: [commit] - repo: https://github.com/igorshubovych/markdownlint-cli rev: v0.40.0 diff --git a/mojo/stdlib/src/builtin/bool.mojo b/mojo/stdlib/src/builtin/bool.mojo index e9169b7863..81a7eb5152 100644 --- a/mojo/stdlib/src/builtin/bool.mojo +++ b/mojo/stdlib/src/builtin/bool.mojo @@ -25,7 +25,6 @@ from utils._visualizers import lldb_formatter_wrapping_type # Boolable # ===----------------------------------------------------------------------=== # - trait Boolable: """The `Boolable` trait describes a type that can be explicitly converted to a `Bool` or evaluated as a boolean expression in `if` or `while` conditions.