Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/OpenClassrooms-Student-Center/Python-OC-Lettings-FR/llms.txt

Use this file to discover all available pages before exploring further.

Orange County Lettings uses flake8 (version 3.7.0) to enforce consistent code style across the project. Running flake8 before committing helps catch style violations early and keeps the codebase readable.

Run flake8

1

Change into the project directory

cd /path/to/Python-OC-Lettings-FR
2

Activate the virtual environment

source venv/bin/activate
3

Run flake8

flake8
flake8 will analyse all Python files in the project and print any style violations to the terminal. No output means no issues were found.

Configuration

flake8 is configured in setup.cfg:
[flake8]
max-line-length = 99
exclude = **/migrations/*,venv
OptionDescription
max-line-length = 99Lines longer than 99 characters are flagged as violations
exclude = **/migrations/*,venvMigration directories and the venv/ folder are skipped entirely
Migration files are excluded because they are auto-generated by Django and do not need to conform to the project’s style rules. The venv/ folder is excluded because it contains third-party packages outside the project’s control.
Run flake8 before every commit to catch style issues before they reach the repository. You can also integrate flake8 into your editor for real-time feedback as you write code.

Build docs developers (and LLMs) love