mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-06-16 04:00:36 +00:00
Merge 10ed296770
into c4b21ee258
This commit is contained in:
commit
d7c052f2f8
43
.pre-commit-config.yaml
Normal file
43
.pre-commit-config.yaml
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
repos:
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v4.5.0
|
||||||
|
hooks:
|
||||||
|
- id: trailing-whitespace
|
||||||
|
types: [file, text]
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
types: [file, text]
|
||||||
|
- id: check-docstring-first
|
||||||
|
- id: check-case-conflict
|
||||||
|
- id: check-yaml
|
||||||
|
- repo: https://github.com/psf/black
|
||||||
|
rev: 23.12.1
|
||||||
|
hooks:
|
||||||
|
- id: black
|
||||||
|
types: [python]
|
||||||
|
- repo: https://github.com/PyCQA/pylint
|
||||||
|
rev: v3.0.3
|
||||||
|
hooks:
|
||||||
|
- id: pylint
|
||||||
|
types: [python]
|
||||||
|
- repo: https://github.com/thibaudcolas/curlylint
|
||||||
|
rev: v0.13.1
|
||||||
|
hooks:
|
||||||
|
- id: curlylint
|
||||||
|
types: [html]
|
||||||
|
- repo: https://github.com/awebdeveloper/pre-commit-stylelint
|
||||||
|
rev: 0.0.2
|
||||||
|
hooks:
|
||||||
|
- id: stylelint
|
||||||
|
types: [css]
|
||||||
|
- repo: https://github.com/pre-commit/mirrors-eslint
|
||||||
|
rev: v9.0.0-alpha.1
|
||||||
|
hooks:
|
||||||
|
- id: eslint
|
||||||
|
types: [javascript]
|
||||||
|
# - repo: local
|
||||||
|
# hooks:
|
||||||
|
# - id: pytest
|
||||||
|
# name: pytest
|
||||||
|
# entry: ./bw-dev pytest
|
||||||
|
# language: system
|
||||||
|
# files: \.py$
|
|
@ -48,6 +48,7 @@ black==22.*
|
||||||
celery-types==0.18.0
|
celery-types==0.18.0
|
||||||
django-stubs[compatible-mypy]==4.2.4
|
django-stubs[compatible-mypy]==4.2.4
|
||||||
mypy==1.5.1
|
mypy==1.5.1
|
||||||
|
pre-commit
|
||||||
pylint==2.15.0
|
pylint==2.15.0
|
||||||
pytest==6.2.5
|
pytest==6.2.5
|
||||||
pytest-cov==2.10.1
|
pytest-cov==2.10.1
|
||||||
|
|
Loading…
Reference in a new issue