Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 2 additions & 24 deletions .github/workflows/scheduled-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,21 +52,7 @@ jobs:

- name: Run pre-commit checks
id: precommit
run: |
uv run pre-commit run --all-files > precommit_output.txt 2>&1
EXIT_CODE=$?

OUTPUT=$(cat precommit_output.txt)
echo "output<<EOF" >> $GITHUB_OUTPUT
echo "$OUTPUT" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT

if [ $EXIT_CODE -eq 0 ]; then
echo "status=success" >> $GITHUB_OUTPUT
else
echo "status=failed" >> $GITHUB_OUTPUT
exit 1
fi
run: uv run pre-commit run --all-files

- name: Notify Success on Slack Channel
uses: rennf93/good-comms@master
Expand All @@ -83,10 +69,6 @@ jobs:
MESSAGE: |
.
**All checks passed!**

```
${{ steps.precommit.outputs.output }}
```
.
COLOR: good
SLACK_THREAD_TS: ${{ steps.send_initial_slack_lint.outputs.SLACK_THREAD_TS }}
Expand All @@ -108,10 +90,6 @@ jobs:
.
**MYPY AND RUFF ARE OUTDATED!**

```
${{ steps.precommit.outputs.output }}
```

Run `make fix` | `make lint` to try, check and resolve.
.
COLOR: danger
Expand Down Expand Up @@ -220,4 +198,4 @@ jobs:
Run `make fix-docs` | `make lint-docs` to resolve.
.
COLOR: danger
SLACK_THREAD_TS: ${{ steps.send_initial_slack_docs_lint.outputs.SLACK_THREAD_TS }}
SLACK_THREAD_TS: ${{ steps.send_initial_slack_docs_lint.outputs.SLACK_THREAD_TS }}
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ repos:
require_serial: true
language: system
pass_filenames: false
- id: semgrep
name: semgrep
entry: uv run semgrep --config=auto --error guard
require_serial: true
language: system
types: [python]
pass_filenames: false
# - id: semgrep
# name: semgrep
# entry: uv run semgrep --config=auto --error guard
# require_serial: true
# language: system
# types: [python]
# pass_filenames: false
Loading