Skip to content

Conversation

@M4hbod
Copy link
Contributor

@M4hbod M4hbod commented Sep 19, 2025

Description

Introduces pre-commit hooks to ensure lint checks are run locally before pushing the changes.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Additional Notes

Reorganizes how the requirements are grouped together for better maintainability.
closes #87

@Revisto Revisto deleted the branch Revisto:dev December 21, 2025 22:15
@Revisto Revisto closed this Dec 21, 2025
@Revisto Revisto reopened this Dec 22, 2025
@Revisto Revisto changed the base branch from master to main December 22, 2025 18:31
@Revisto Revisto changed the base branch from main to dev December 22, 2025 18:36
@Revisto
Copy link
Owner

Revisto commented Dec 22, 2025

Hi, thanks for the PR and sorry it took so long.

args: [--count, '--select=E9,F63,F7,F82', --show-source, --statistics, --builtins="_"]
- id: flake8
name: flake8-style
args: [--count, --max-complexity=10, --max-line-length=88, --statistics]
Copy link
Owner

Choose a reason for hiding this comment

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

The indentation in .pre-commit-config.yaml is inconsistent, it's using 3-4 spaces instead of the standard 2-space YAML indentation. Should be cleaned up.
Something like:

repos:
  - repo: https://github.com/PyCQA/flake8
    rev: 7.3.0
    hooks:
      - id: flake8
        name: flake8-syntax
        args: [--count, '--select=E9,F63,F7,F82', --show-source, --statistics, --builtins="_"]
      - id: flake8
        name: flake8-style
        args: [--count, --max-complexity=10, --max-line-length=88, --statistics]

Copy link
Owner

@Revisto Revisto left a comment

Choose a reason for hiding this comment

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

It would be nice to update the CONTRIBUTING.md and include instructions to install pre-commit.

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.

Add pre-commit hooks to improve code quality

2 participants