Skip to content

Feat/add-pre-commit-hooks#76

Open
JessyBarrette wants to merge 1 commit into
developmentfrom
feat/add-pre-commit-hooks
Open

Feat/add-pre-commit-hooks#76
JessyBarrette wants to merge 1 commit into
developmentfrom
feat/add-pre-commit-hooks

Conversation

@JessyBarrette

@JessyBarrette JessyBarrette commented Jan 27, 2026

Copy link
Copy Markdown
Member

This pull request introduces pre-commit hooks and configures the Ruff linter and formatter for Python code, as well as ESLint and Prettier for JavaScript code. It also adds Ruff configuration to pyproject.toml and defines a development dependency group for pre-commit tooling.

Pre-commit and linting/formatting configuration:

  • Adds a .pre-commit-config.yaml file to set up pre-commit hooks for Python (Ruff linter and formatter), JavaScript (ESLint and Prettier), and general code hygiene (trailing whitespace, end-of-file, YAML/JSON checks, large file checks).
  • Configures local hooks for ESLint and Prettier to run on frontend and web-api JavaScript code, ensuring code style and linting are enforced before commits.

Python tooling configuration:

  • Adds [tool.ruff] configuration to pyproject.toml, specifying Python version, line length, linting rules, and formatting preferences for Ruff.
  • Defines a dev dependency group in pyproject.toml to include pre-commit as a development dependency.

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.

Enforce Linters Across Codebase: Ruff for Python, ESLint for JavaScript

1 participant