From b9e55936e1de42a7b6a6e2e77853b84e1d6ca957 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniele=20Vigan=C3=B2?= Date: Sat, 17 Jan 2026 22:40:21 +0100 Subject: [PATCH] Add `black` to AGENTS.md --- AGENTS.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index a734e68..79d05ae 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -86,7 +86,7 @@ python manage.py test --keepdb python manage.py test --pattern="test_*.py" ``` -### Linting +### Linting and Formatting ```bash # Run flake8 (configured in requirements-dev.txt) flake8 . # Lint entire project @@ -95,6 +95,13 @@ flake8 roster/models.py # Lint specific file # Note: No .flake8 config exists; uses PEP 8 defaults # Long lines use # noqa: E501 comments in settings.py + +# Run black formatter with 79 character line length +black -l 79 . # Format entire project +black -l 79 roster/ # Format specific app +black -l 79 roster/models.py # Format specific file +black -l 79 --check . # Check formatting without changes +black -l 79 --diff . # Show formatting changes ``` ### Admin Commands