mirror of
https://github.com/kjanat/livegraphs-django.git
synced 2026-01-16 06:32:10 +01:00
- Introduced .pre-commit-config.yaml for pre-commit hooks using uv-pre-commit. - Created lint.sh script to run Ruff and Black for linting and formatting. - Added test.sh script to execute tests with coverage reporting. - Configured .uv file for uv settings including lockfile management and dependency resolution. - Updated Makefile with targets for virtual environment setup, dependency installation, linting, testing, formatting, and database migrations. - Established requirements.txt with main and development dependencies for the project.
48 lines
950 B
INI
48 lines
950 B
INI
# EditorConfig is a standardized configuration file that helps define
|
|
# consistent coding styles across different editors and IDEs
|
|
# https://editorconfig.org/
|
|
|
|
root = true
|
|
|
|
[*]
|
|
charset = utf-8
|
|
end_of_line = lf
|
|
insert_final_newline = true
|
|
trim_trailing_whitespace = true
|
|
indent_style = space
|
|
indent_size = 2
|
|
|
|
# Python files
|
|
[*.py]
|
|
indent_size = 4
|
|
|
|
# HTML and Django/Jinja2 template files
|
|
[*.{html,htm}]
|
|
indent_style = tab
|
|
indent_size = 4
|
|
# Allow prettier to format Django/Jinja templates properly
|
|
# The following comment options can be used in individual files if needed:
|
|
# <!-- prettier-ignore -->
|
|
# {# prettier-ignore #}
|
|
|
|
# CSS, JavaScript, and JSON files
|
|
[*.{css,scss,js,json}]
|
|
indent_style = tab
|
|
indent_size = 4
|
|
|
|
# Markdown files
|
|
[*.md]
|
|
trim_trailing_whitespace = false
|
|
|
|
# YAML files
|
|
[*.{yml,yaml}]
|
|
indent_size = 2
|
|
|
|
# Makefile (requires tabs)
|
|
[Makefile]
|
|
indent_style = tab
|
|
|
|
# Docker-related files
|
|
[{Dockerfile,docker-compose.yml}]
|
|
indent_size = 2
|