Junior — Middle
What standards or formatting rules for code were applied in your previous company?
sobes.tech AI
Answer from AI
In my previous company, the following formatting standards were applied to Python code:
- Using PEP 8 as the main style guide (4 spaces indentation, line length up to 79 characters).
- Naming variables and functions in snake_case, classes in PascalCase.
- Mandatory documentation of functions and classes using docstrings.
- Using linters (e.g., flake8) and formatters (black) for automatic code checking and formatting.
- Separating logic into functions and modules to improve readability and maintainability.
Example of function formatting according to PEP 8:
def calculate_sum(a, b):
"""Returns the sum of two numbers."""
return a + b