Files
py-nepali/pyproject.toml
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

7 lines
142 B
TOML

[tool.ruff]
line-length = 127
include = ["nepali/**/*.py", "tests/**/*.py", "pyproject.toml"]
[tool.ruff.lint]
select = ["E", "W", "F", "I"]