Skip to content

Chore/backend dev - #8

Open
Groot-2001 wants to merge 5 commits into
mainfrom
chore/backend-dev
Open

Groot-2001 wants to merge 5 commits into
mainfrom
chore/backend-dev

Conversation

@Groot-2001

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread company-common/models/company_data.py Outdated
Comment thread company-common/models/company_data.py Outdated
Comment thread company-common/models/company_data.py Outdated
Comment thread company-common/models/company_data.py Outdated
Comment thread company-common/models/company_data.py Outdated
Comment thread company-common/models/company_data.py Outdated
Comment thread company-common/exceptions.py Outdated
Comment thread company-api/tests/conftest.py Outdated
@Groot-2001

Copy link
Copy Markdown
Contributor Author

Summary

Introduced repository-wide pre-commit checks to standardize Python code quality and formatting across all developers.

Changes

  • Added pre-commit configuration at the repository root.
  • Added trailing whitespace and EOF checks.
  • Added YAML validation.
  • Added docformatter for Python docstrings.
  • Added Black for Python code formatting.
  • Added Flake8 for Python linting.
  • Configured an 88-character line length to align Black and Flake8.
  • Added the required Flake8 PyProject integration.
  • Documented the installation, usage, troubleshooting, and recommended developer workflow.

Developer Workflow

Developers install the hooks once with:

python -m pip install pre-commit
pre-commit install

@@ -1,29 +1,28 @@
import json
import sys

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was accidentally pushed to git. We can remove this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants