Skip to content

Personal Improvements - #1

Merged
idoudali merged 2 commits into
devfrom
idoudalis/personal-improvements
Aug 11, 2025
Merged

Personal Improvements#1
idoudali merged 2 commits into
devfrom
idoudalis/personal-improvements

Conversation

@idoudali

Copy link
Copy Markdown
Owner

Add

  • Pre-commit hooks
  • Add Cursor rules

@idoudali
idoudali requested a review from CopilotAugust 11, 2025 10:47
@idoudaliidoudali 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
idoudaliforce-pushed the idoudalis/personal-improvements branch 2 times, most recently from fb81d85 to de53663CompareAugust 11, 2025 12:19
@idoudali
idoudali requested a review from CopilotAugust 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
idoudaliforce-pushed the idoudalis/personal-improvements branch from de53663 to 879254bCompareAugust 11, 2025 12:21
@idoudali
idoudali requested a review from CopilotAugust 11, 2025 12:21

This comment was marked as outdated.

@idoudali
idoudali requested a review from CopilotAugust 11, 2025 12:22

CopilotAI left a comment

Copy link
Copy Markdown

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
FileDescription
pyproject.tomlAdds pre-commit to lint dependencies and includes mypy configuration note
README.mdUpdates title to indicate fork status and documents new tooling additions
.pre-commit-config.yamlConfigures pre-commit hooks for linting, formatting, type checking, and commit message validation
.cursor/rules/python.mdEstablishes Python development guidelines and tooling usage for Cursor IDE
.cursor/rules/commit-messages.mdDefines Conventional Commits specification for consistent commit messages

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

CopilotAIAug 11, 2025

Copy link

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 devAug 11, 2025
18 checks passed
Sign up for freeto 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

@idoudali