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