fix precommit yaml

This commit is contained in:
Your Name 2023-08-10 16:01:40 -04:00 committed by Henri Dickson
parent c3d9c4cc4b
commit a69fc2ac4b
11 changed files with 109 additions and 96 deletions

View file

@ -1,24 +1,39 @@
exclude: ^test_data/
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: check-json
- id: check-xml
- id: check-toml
- id: check-symlinks
- id: check-added-large-files
args: [--maxkb=1024]
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: debug-statements
- id: check-merge-conflict
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 22.12.0
hooks:
- id: black
language_version: python3.11
repos:
- repo: https://github.com/Riverside-Healthcare/djLint
rev: v1.32.1
hooks:
- id: djlint-reformat-django
- id: djlint-django
- id: requirements-txt-fixer
- id: mixed-line-ending
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
args: ["--profile=black"]
- repo: https://github.com/psf/black
rev: 22.12.0
hooks:
- id: black
language_version: python3.11
- repo: https://github.com/Riverside-Healthcare/djLint
rev: v1.32.1
hooks:
- id: djlint-reformat-django
- id: djlint-django

View file

@ -112,4 +112,3 @@ Add a new site
- Command: `python3 manage.py test [--keepdb]`. More detailed for `test`, please check [this doc](https://github.com/neodb-social/neodb/blob/main/doc/development.md#run-test)
- See [this issue](https://github.com/neodb-social/neodb/issues/5) if `lxml.etree.ParserError` occurs on macOS.
- add a site UI label to `common/static/scss/_sitelabel.scss`

View file

@ -33,4 +33,3 @@ if [ "$PROCESS_TYPE" = "server" ]; then
elif [ "$PROCESS_TYPE" = "rq" ]; then
rqworker --with-scheduler doufen export mastodon
fi

View file

@ -1,8 +1,8 @@
pre-commit~=3.3.3
isort~=5.12.0
black~=22.12.0
django-debug-toolbar
coverage
django-debug-toolbar
djlint~=1.32.1
isort~=5.12.0
pre-commit~=3.3.3
types-dateparser
types-tqdm

View file

@ -1,42 +1,42 @@
dateparser
mistune
rq>=1.12.0
discord.py
django~=4.2.4
django-auditlog
django-markdownx @ git+https://github.com/alphatownsman/django-markdownx.git@e69480c64ad9c5d0499f4a8625da78cf2bb7691b
django-jsonform
libsass
django-compressor
django-sass-processor
django-rq
django-simple-history # no longer used but kept for migration code which is used by tests
django-auditlog @ git+https://github.com/jazzband/django-auditlog.git@45591463e8192b4ac0095e259cc4dcea0ac2fd6c
django-hijack
django-user-messages
django-slack
django-ninja
django-polymorphic
django-maintenance-mode
django-tz-detect
django-bleach
django-redis
django-oauth-toolkit
django-anymail
django-auditlog
django-auditlog @ git+https://github.com/jazzband/django-auditlog.git@45591463e8192b4ac0095e259cc4dcea0ac2fd6c
django-bleach
django-compressor
django-hijack
django-jsonform
django-maintenance-mode
django-markdownx @ git+https://github.com/alphatownsman/django-markdownx.git@e69480c64ad9c5d0499f4a8625da78cf2bb7691b
django-ninja
django-oauth-toolkit
django-polymorphic
django-redis
django-rq
django-sass-processor
django-simple-history # no longer used but kept for migration code which is used by tests
django-slack
django-tz-detect
django-user-messages
dnspython
easy-thumbnails
filetype
fontawesomefree
igdb-api-v4
libsass
listparser
loguru
lxml
markdownify
mistune
opencc
openpyxl
podcastparser
psycopg2-binary
requests
filetype
rq>=1.12.0
setproctitle
tqdm
opencc
dnspython
typesense
markdownify
igdb-api-v4
podcastparser
listparser
fontawesomefree
discord.py
loguru