Skip to content

Create .pre-commit-config.yaml#239

Open
bigrosss wants to merge 1 commit intoPolymarket:mainfrom
bigrosss:chore/precommit-hooks
Open

Create .pre-commit-config.yaml#239
bigrosss wants to merge 1 commit intoPolymarket:mainfrom
bigrosss:chore/precommit-hooks

Conversation

@bigrosss
Copy link

@bigrosss bigrosss commented Jan 7, 2026

Added pre-commit hooks to automatically format and lint Python code before commits


Note

Sets up automated formatting and linting on commit via pre-commit.

  • Adds .pre-commit-config.yaml configuring black@24.10.0, ruff-pre-commit@v0.8.0 (with --fix), and pre-commit-hooks@v5.0.0
  • Enables end-of-file-fixer and trailing-whitespace hooks to standardize whitespace

Written by Cursor Bugbot for commit 7e69432. This will update automatically on new commits. Configure here.

Added pre-commit hooks to automatically format and lint Python code before commits
@bigrosss bigrosss requested a review from a team as a code owner January 7, 2026 17:35
@@ -0,0 +1,16 @@
```yaml
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Markdown code fence breaks YAML configuration file

High Severity

The file starts with ```yaml which is markdown code fence syntax, not valid YAML. This was likely copy-pasted from documentation or a chat interface. The pre-commit tool will fail to parse this configuration file, causing all pre-commit hooks to be non-functional. The markdown syntax needs to be removed for the file to be valid YAML.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant