mirror of
https://github.com/kjanat/livegraphs-django.git
synced 2026-01-16 14:12:11 +01:00
Compare commits
3 Commits
ed7923fc1c
...
b3d04a402c
| Author | SHA1 | Date | |
|---|---|---|---|
| b3d04a402c | |||
| 2680039877 | |||
| c049061c7b |
@ -4,8 +4,12 @@
|
|||||||
# - post-merge
|
# - post-merge
|
||||||
# - post-rewrite
|
# - post-rewrite
|
||||||
|
|
||||||
|
ci:
|
||||||
|
skip: [django-check, django-check-migrations]
|
||||||
|
|
||||||
default_language_version:
|
default_language_version:
|
||||||
node: 22.15.1
|
node: 22.15.1
|
||||||
|
python: python3.13
|
||||||
|
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/adamchainz/django-upgrade
|
- repo: https://github.com/adamchainz/django-upgrade
|
||||||
@ -37,28 +41,21 @@ repos:
|
|||||||
- id: mixed-line-ending
|
- id: mixed-line-ending
|
||||||
args: [--fix=lf]
|
args: [--fix=lf]
|
||||||
|
|
||||||
# - repo: https://github.com/psf/black
|
- repo: local
|
||||||
# rev: 22.10.0
|
|
||||||
# hooks:
|
|
||||||
# - id: black
|
|
||||||
|
|
||||||
# # HTML/Django template linting
|
|
||||||
# - repo: https://github.com/rtts/djhtml
|
|
||||||
# rev: 3.0.7
|
|
||||||
# hooks:
|
|
||||||
# - id: djhtml
|
|
||||||
# entry: djhtml --tabwidth 4
|
|
||||||
|
|
||||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
|
||||||
rev: v3.1.0
|
|
||||||
hooks:
|
hooks:
|
||||||
- id: prettier
|
- id: prettier-jinja
|
||||||
types_or: [javascript, jsx, ts, tsx, css, scss, html, json, yaml, markdown]
|
name: Prettier Jinja
|
||||||
|
language: node
|
||||||
additional_dependencies:
|
additional_dependencies:
|
||||||
- prettier
|
- prettier
|
||||||
- prettier-plugin-jinja-template
|
- prettier-plugin-jinja-template
|
||||||
# types_or: [javascript, jsx, ts, tsx, css, scss, json, yaml, markdown]
|
types_or: [html, jinja]
|
||||||
# exclude: '.*\.html$'
|
entry: npx prettier --plugin=prettier-plugin-jinja-template --parser=jinja-template --write
|
||||||
|
- id: prettier-all
|
||||||
|
name: Prettier All
|
||||||
|
language: node
|
||||||
|
types_or: [javascript, jsx, ts, tsx, css, scss, json, yaml, markdown]
|
||||||
|
entry: npx prettier --write
|
||||||
|
|
||||||
- repo: https://github.com/DavidAnson/markdownlint-cli2
|
- repo: https://github.com/DavidAnson/markdownlint-cli2
|
||||||
rev: v0.18.1
|
rev: v0.18.1
|
||||||
@ -80,17 +77,19 @@ repos:
|
|||||||
- id: django-check
|
- id: django-check
|
||||||
name: Django Check
|
name: Django Check
|
||||||
entry: uv run python dashboard_project/manage.py check
|
entry: uv run python dashboard_project/manage.py check
|
||||||
language: system
|
language: python
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
types: [python]
|
types: [python]
|
||||||
always_run: true
|
always_run: true
|
||||||
|
additional_dependencies: [uv]
|
||||||
|
|
||||||
- id: django-check-migrations
|
- id: django-check-migrations
|
||||||
name: Django Check Migrations
|
name: Django Check Migrations
|
||||||
entry: uv run python dashboard_project/manage.py makemigrations --check --dry-run
|
entry: uv run python dashboard_project/manage.py makemigrations --check --dry-run
|
||||||
language: system
|
language: python
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
types: [python]
|
types: [python]
|
||||||
|
additional_dependencies: [uv]
|
||||||
|
|
||||||
# Security checks
|
# Security checks
|
||||||
- repo: https://github.com/pycqa/bandit
|
- repo: https://github.com/pycqa/bandit
|
||||||
@ -98,7 +97,7 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: bandit
|
- id: bandit
|
||||||
args: [-c, pyproject.toml, -r, dashboard_project]
|
args: [-c, pyproject.toml, -r, dashboard_project]
|
||||||
additional_dependencies: ["bandit[toml]"]
|
# additional_dependencies: ["bandit[toml]"]
|
||||||
|
|
||||||
# # Type checking
|
# # Type checking
|
||||||
# - repo: https://github.com/pre-commit/mirrors-mypy
|
# - repo: https://github.com/pre-commit/mirrors-mypy
|
||||||
|
|||||||
Reference in New Issue
Block a user