From 15a500540dbc65a577e81b7a45f36f0aabcc743e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 13 Feb 2026 09:13:15 +0000 Subject: [PATCH] docs: update references from old linting tools to Ruff Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com> --- .github/instructions/python-backend.instructions.md | 6 ++---- AGENTIC_CODING.md | 8 ++++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/instructions/python-backend.instructions.md b/.github/instructions/python-backend.instructions.md index 38aa3efd..7532cb73 100644 --- a/.github/instructions/python-backend.instructions.md +++ b/.github/instructions/python-backend.instructions.md @@ -7,13 +7,11 @@ applyTo: "app/**/*.py" These instructions apply to all Python code in the `app/` directory. ## Code Style -- Use **Black** formatter with 120 character line length -- Use **isort** with Black profile for import organization -- Follow **flake8** rules (ignore E203, W503 as per `.pre-commit-config.yaml`) +- Use **Ruff** for linting and formatting with 120 character line length - All functions must have type hints for parameters and return values - Use `from typing import Optional, Dict, List, Any, Union` as needed -## Import Order (isort with Black profile) +## Import Order (Ruff enforces isort-compatible ordering) ```python # Standard library imports import os diff --git a/AGENTIC_CODING.md b/AGENTIC_CODING.md index d3665060..29c7652f 100644 --- a/AGENTIC_CODING.md +++ b/AGENTIC_CODING.md @@ -75,7 +75,7 @@ DocuElevate/ #### Python Style ```python -# Use Black formatting (line length: 120) +# Use Ruff formatting (line length: 120) # Use type hints def process_document(file_path: str, metadata: Dict[str, Any]) -> DocumentMetadata: """ @@ -681,17 +681,17 @@ DocuElevate uses `python-semantic-release` for automated version management. Before submitting code: -- [ ] Code follows style guide (Black formatted) +- [ ] Code follows style guide (Ruff formatted) - [ ] Commit messages use conventional commit format - [ ] All tests pass (`pytest`) - [ ] New code has tests - [ ] Coverage doesn't decrease - [ ] Documentation updated if needed - [ ] No secrets or credentials in code -- [ ] Linting passes (`flake8`, `pylint`) +- [ ] Linting passes (`ruff check`) - [ ] Type hints added (`mypy` clean) - [ ] No manual edits to `VERSION` or `CHANGELOG.md` -- [ ] Security scan passed (`bandit`) +- [ ] Security scan passed (included in `ruff check`) Run full check: ```bash