-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
feat: add CI/CD enhancements, test infrastructure, and tooling #255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,46 @@ | ||||||||||||||||||||||||||||||||
| # See https://pre-commit.com for more information | ||||||||||||||||||||||||||||||||
| # See https://pre-commit.com/hooks.html for more hooks | ||||||||||||||||||||||||||||||||
| # | ||||||||||||||||||||||||||||||||
| # Install: pip install pre-commit && pre-commit install | ||||||||||||||||||||||||||||||||
| # Run once: pre-commit run --all-files | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| repos: | ||||||||||||||||||||||||||||||||
| - repo: https://github.com/pre-commit/pre-commit-hooks | ||||||||||||||||||||||||||||||||
| rev: v5.0.0 | ||||||||||||||||||||||||||||||||
| hooks: | ||||||||||||||||||||||||||||||||
| - id: trailing-whitespace | ||||||||||||||||||||||||||||||||
| - id: end-of-file-fixer | ||||||||||||||||||||||||||||||||
| - id: check-yaml | ||||||||||||||||||||||||||||||||
| args: [--allow-multiple] | ||||||||||||||||||||||||||||||||
| - id: check-json | ||||||||||||||||||||||||||||||||
| - id: check-toml | ||||||||||||||||||||||||||||||||
| - id: check-added-large-files | ||||||||||||||||||||||||||||||||
| args: [--maxkb=500] | ||||||||||||||||||||||||||||||||
| - id: check-merge-conflict | ||||||||||||||||||||||||||||||||
| - id: mixed-line-ending | ||||||||||||||||||||||||||||||||
| args: [--fix=lf] | ||||||||||||||||||||||||||||||||
| - id: detect-private-key | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| - repo: https://github.com/astral-sh/ruff-pre-commit | ||||||||||||||||||||||||||||||||
| rev: v0.11.8 | ||||||||||||||||||||||||||||||||
| hooks: | ||||||||||||||||||||||||||||||||
| - id: ruff | ||||||||||||||||||||||||||||||||
| args: [--fix, --exit-non-zero-on-fix] | ||||||||||||||||||||||||||||||||
| - id: ruff-format | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| - repo: https://github.com/pre-commit/mirrors-mypy | ||||||||||||||||||||||||||||||||
| rev: v1.15.0 | ||||||||||||||||||||||||||||||||
| hooks: | ||||||||||||||||||||||||||||||||
| - id: mypy | ||||||||||||||||||||||||||||||||
| args: [--config-file=pyproject.toml] | ||||||||||||||||||||||||||||||||
| additional_dependencies: [] | ||||||||||||||||||||||||||||||||
| # mypy is advisory only — do not block commits | ||||||||||||||||||||||||||||||||
| pass_filenames: false | ||||||||||||||||||||||||||||||||
|
Comment on lines
+31
to
+38
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Misleading advisory comment for mypy hook. The comment states "mypy is advisory only — do not block commits", but pre-commit hooks block by default when they fail. There is no Either remove the misleading comment or add 📝 Proposed fix optionsOption 1: Remove the misleading comment - repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.15.0
hooks:
- id: mypy
args: [--config-file=pyproject.toml]
additional_dependencies: []
- # mypy is advisory only — do not block commits
pass_filenames: falseOption 2: Make it truly advisory with verbose mode - repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.15.0
hooks:
- id: mypy
args: [--config-file=pyproject.toml]
additional_dependencies: []
# mypy is advisory only — do not block commits
+ verbose: true
pass_filenames: false📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| - repo: https://github.com/pre-commit/mirrors-prettier | ||||||||||||||||||||||||||||||||
| rev: v3.1.0 | ||||||||||||||||||||||||||||||||
| hooks: | ||||||||||||||||||||||||||||||||
| - id: prettier | ||||||||||||||||||||||||||||||||
| types_or: [javascript, css, html, json, markdown, yaml] | ||||||||||||||||||||||||||||||||
| args: [--prose-wrap=always, --print-width=100] | ||||||||||||||||||||||||||||||||
| exclude: ^glossary/|^phases/|^site/data\.js$ | ||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TypeScript syntax job blocks on failure despite "advisory" label.
The job name includes "(advisory)" but the step will fail and block the workflow if
ts_syntax_check.mjsexits with code 1. From the TypeScript syntax checker implementation, it returns exit code 1 when syntax errors are found.For consistency with the
python-syntaxjob (lines 58-79), either add error handling to parse the JSON output and emit warnings without failing, or usecontinue-on-error: trueto make this truly advisory.🔧 Proposed fix options
Option 1: Parse JSON and emit warnings like python-syntax
Option 2: Use continue-on-error
- name: syntax-check all .ts files run: node scripts/ts_syntax_check.mjs --json + continue-on-error: true📝 Committable suggestion
🤖 Prompt for AI Agents