Files
py-nepali/.pre-commit-config.yaml
T
inoovadorandClaude Opus 4.6 6e0883cf97 refactor: replace darker with ruff in pre-commit hook (#100)
* refactor: replace darker with ruff in pre-commit hook

Replace the darker pre-commit hook with ruff for better performance
and enhanced features. This replaces darker, black, flake8, flynt,
isort, and pylint with ruff's linter and formatter.

- Use ruff-pre-commit (v0.15.7) with ruff and ruff-format hooks
- Add "I" (isort) rule to ruff lint config in pyproject.toml
- Preserve file scope to nepali/ and tests/ directories

Closes #99

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* refactor: centralize file scope in pyproject.toml

- Remove `files` directive from ruff pre-commit hooks
- Add `tests/**/*.py` to ruff include pattern in pyproject.toml
- File scoping now handled entirely by ruff config

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 12:14:16 +05:45

23 lines
532 B
YAML

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-merge-conflict
- id: check-added-large-files
- id: check-yaml
- id: pretty-format-json
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.7
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- repo: https://github.com/opensource-nepal/commitlint
rev: v1.13.3
hooks:
- id: commitlint