Skip to content

Conversation

@idoudali
Copy link
Owner

Add

  • Pre-commit hooks
  • Add Cursor rules

@idoudali idoudali requested a review from Copilot August 11, 2025 10:47
@idoudali idoudali self-assigned this Aug 11, 2025

This comment was marked as outdated.

Add hooks (ruff, mypy) and repo checks; add pre-commit dep;
tidy whitespace; update lockfile

- Add .pre-commit-config.yaml:
    * Ruff: ruff --fix and ruff-format
    * Mypy: uses pyproject.toml, scopes to src/, excludes
      src/fact/cli.py
    * Common checks: check-merge-conflict, check-added-large-files,
      end-of-file-fixer, trailing-whitespace, debug-statements,
check-yaml (excludes mkdocs.yml), check-toml, check-case-conflict,
check-symlinks, detect-private-key
- Add pre-commit to lint dependency group in pyproject.toml
- Normalize EOF in .gitattributes
- Trim trailing whitespace in README.md and docs/index.md
- Update uv.lock to include pre-commit and deps (cfgv, identify,
  nodeenv) and refresh resolution
@idoudali idoudali force-pushed the idoudalis/personal-improvements branch 2 times, most recently from fb81d85 to de53663 Compare August 11, 2025 12:19
@idoudali idoudali requested a review from Copilot August 11, 2025 12:20

This comment was marked as outdated.

- Add .cursor/rules/commit-messages.md documenting Conventional Commits
  usage
- Add .cursor/rules/python.md with project-specific Python rules
  (tooling, layout, style, typing, tests, docs, CLI, security)
- Update .pre-commit-config.yaml to add conventional-pre-commit
  commit-msg hook (v4.2.0)
@idoudali idoudali force-pushed the idoudalis/personal-improvements branch from de53663 to 879254b Compare August 11, 2025 12:21
@idoudali idoudali requested a review from Copilot August 11, 2025 12:21

This comment was marked as outdated.

@idoudali idoudali requested a review from Copilot August 11, 2025 12:22
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds development tooling improvements to enhance code quality and consistency. The changes introduce pre-commit hooks for automated linting and formatting, along with Cursor IDE configuration rules for Python development and conventional commit message standards.

  • Adds pre-commit hooks for code quality enforcement including ruff, mypy, and conventional commits
  • Introduces Cursor IDE rules for Python development best practices and commit message formatting
  • Updates project documentation to reflect the fork status and new tooling additions

Reviewed Changes

Copilot reviewed 5 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
pyproject.toml Adds pre-commit to lint dependencies and includes mypy configuration note
README.md Updates title to indicate fork status and documents new tooling additions
.pre-commit-config.yaml Configures pre-commit hooks for linting, formatting, type checking, and commit message validation
.cursor/rules/python.md Establishes Python development guidelines and tooling usage for Cursor IDE
.cursor/rules/commit-messages.md Defines Conventional Commits specification for consistent commit messages

- id: mypy
args:
- "--config-file=pyproject.toml"
- "src"
Copy link

Copilot AI Aug 11, 2025

Choose a reason for hiding this comment

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

The mypy exclusion for 'src/fact/cli.py' should be documented with a comment explaining why this file is excluded from type checking.

Suggested change
- "src"
- "src"
# Exclude src/fact/cli.py from type checking due to dynamic CLI argument parsing that is difficult to type-check.

Copilot uses AI. Check for mistakes.
@idoudali idoudali merged commit 8d19b78 into dev Aug 11, 2025
18 checks passed
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.

2 participants