Merge pull request #328 from christianlouis/copilot/fix-black-flake8-ci

docs: update linting documentation to reflect Ruff migration
This commit is contained in:
Christian Krakau-Louis
2026-02-14 01:07:31 +01:00
committed by GitHub
2 changed files with 205 additions and 203 deletions
+201 -200
View File
@@ -1,200 +1,201 @@
# Byte-compiled / optimized / DLL files # Byte-compiled / optimized / DLL files
__pycache__/ __pycache__/
*.py[cod] *.py[cod]
*$py.class *$py.class
# C extensions # C extensions
*.so *.so
# Distribution / packaging # Distribution / packaging
.Python .Python
build/ build/
develop-eggs/ develop-eggs/
dist/ dist/
downloads/ downloads/
eggs/ eggs/
.eggs/ .eggs/
lib/ lib/
lib64/ lib64/
parts/ parts/
sdist/ sdist/
var/ var/
wheels/ wheels/
share/python-wheels/ share/python-wheels/
*.egg-info/ *.egg-info/
.installed.cfg .installed.cfg
*.egg *.egg
MANIFEST MANIFEST
# Environment files - NEVER commit these! # Environment files - NEVER commit these!
.env .env
.env.local .env.local
.env.*.local .env.*.local
*.env *.env
# Secrets and credentials # Secrets and credentials
*secret* *secret*
*credentials*.json *credentials*.json
!frontend/static/* # Allow static files even if they match patterns !frontend/static/* # Allow static files even if they match patterns
!docs/* # Allow documentation files !docs/* # Allow documentation files
# Private keys # Private keys
*.pem *.pem
*.key *.key
*.p12 *.p12
*.pfx *.pfx
id_rsa* id_rsa*
ssh_host_* ssh_host_*
# Database files - may contain sensitive data # Database files - may contain sensitive data
*.db *.db
*.sqlite *.sqlite
*.sqlite3 *.sqlite3
database.db database.db
db.sqlite3 db.sqlite3
db.sqlite3-journal db.sqlite3-journal
# PyInstaller # PyInstaller
# Usually these files are written by a python script from a template # Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it. # before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest *.manifest
*.spec *.spec
# Installer logs # Installer logs
pip-log.txt pip-log.txt
pip-delete-this-directory.txt pip-delete-this-directory.txt
# Unit test / coverage reports # Unit test / coverage reports
htmlcov/ htmlcov/
.tox/ .tox/
.nox/ .nox/
.coverage .coverage
.coverage.* .coverage.*
.cache .cache
nosetests.xml nosetests.xml
coverage.xml junit.xml
*.cover coverage.xml
*.py,cover *.cover
.hypothesis/ *.py,cover
.pytest_cache/ .hypothesis/
cover/ .pytest_cache/
cover/
# Translations
*.mo # Translations
*.pot *.mo
*.pot
# Django stuff:
*.log # Django stuff:
local_settings.py *.log
local_settings.py
# Flask stuff:
instance/ # Flask stuff:
.webassets-cache instance/
.webassets-cache
# Scrapy stuff:
.scrapy # Scrapy stuff:
.scrapy
# Sphinx documentation
docs/_build/ # Sphinx documentation
docs/_build/
# PyBuilder
.pybuilder/ # PyBuilder
target/ .pybuilder/
target/
# Jupyter Notebook
.ipynb_checkpoints # Jupyter Notebook
.ipynb_checkpoints
# IPython
profile_default/ # IPython
ipython_config.py profile_default/
ipython_config.py
# pyenv
# For a library or package, you might want to ignore these files since the code is # pyenv
# intended to run in multiple environments; otherwise, check them in: # For a library or package, you might want to ignore these files since the code is
# .python-version # intended to run in multiple environments; otherwise, check them in:
# .python-version
# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. # pipenv
# However, in case of collaboration, if having platform-specific dependencies or dependencies # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# having no cross-platform support, pipenv may install dependencies that don't work, or not # However, in case of collaboration, if having platform-specific dependencies or dependencies
# install all needed dependencies. # having no cross-platform support, pipenv may install dependencies that don't work, or not
#Pipfile.lock # install all needed dependencies.
#Pipfile.lock
# UV
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control. # UV
# This is especially recommended for binary packages to ensure reproducibility, and is more # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
# commonly ignored for libraries. # This is especially recommended for binary packages to ensure reproducibility, and is more
#uv.lock # commonly ignored for libraries.
#uv.lock
# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. # poetry
# This is especially recommended for binary packages to ensure reproducibility, and is more # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# commonly ignored for libraries. # This is especially recommended for binary packages to ensure reproducibility, and is more
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control # commonly ignored for libraries.
#poetry.lock # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock
# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. # pdm
#pdm.lock # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it #pdm.lock
# in version control. # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control # in version control.
.pdm.toml # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
.pdm-python .pdm.toml
.pdm-build/ .pdm-python
.pdm-build/
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/
# Celery stuff
celerybeat-schedule # Celery stuff
celerybeat.pid celerybeat-schedule
celerybeat.pid
# SageMath parsed files
*.sage.py # SageMath parsed files
*.sage.py
# Environments
.venv # Environments
env/ .venv
venv/ env/
ENV/ venv/
env.bak/ ENV/
venv.bak/ env.bak/
venv.bak/
# Spyder project settings
.spyderproject # Spyder project settings
.spyproject .spyderproject
.spyproject
# Rope project settings
.ropeproject # Rope project settings
.ropeproject
# mkdocs documentation
/site # mkdocs documentation
/site
# mypy
.mypy_cache/ # mypy
.dmypy.json .mypy_cache/
dmypy.json .dmypy.json
dmypy.json
# Pyre type checker
.pyre/ # Pyre type checker
.pyre/
# pytype static type analyzer
.pytype/ # pytype static type analyzer
.pytype/
# Cython debug symbols
cython_debug/ # Cython debug symbols
cython_debug/
# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can # PyCharm
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# and can be added to the global gitignore or merged into this file. For a more nuclear # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# option (not recommended) you can uncomment the following to ignore the entire idea folder. # and can be added to the global gitignore or merged into this file. For a more nuclear
#.idea/ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
# PyPI configuration file
.pypirc # PyPI configuration file
.pypirc
# Build metadata files - generated at build time
GIT_SHA # Build metadata files - generated at build time
RUNTIME_INFO GIT_SHA
RUNTIME_INFO
+4 -3
View File
@@ -696,12 +696,13 @@ Before submitting code:
Run full check: Run full check:
```bash ```bash
pytest --cov=app pytest --cov=app
black app/ tests/ ruff check app/ tests/
flake8 app/ --max-line-length=120 ruff format --check app/ tests/
mypy app/ mypy app/
bandit -r app/
``` ```
**Note:** This project uses Ruff, which replaces Black, Flake8, isort, and Bandit with a single, faster tool.
--- ---
## 🤝 Agent Collaboration ## 🤝 Agent Collaboration