Compare commits

...

8 commits

Author SHA1 Message Date
Carlos Cámara 07bb87b864
Merge 10ed296770 into 21a39f8170 2024-04-13 19:56:11 -03:00
Mouse Reeve 10ed296770
Merge branch 'main' into pre_commit 2024-03-27 14:39:24 -07:00
Carlos Camara 68f0c81c7a Comment pytest as it is not working
I still do not know how to make this work
2024-01-13 16:35:39 +00:00
Carlos Camara ca1b0a90d3 Add eslint to precommit 2024-01-13 16:34:09 +00:00
Carlos Camara be69065938 Add stylelint to precommit 2024-01-13 16:29:48 +00:00
Carlos Camara 66d4f20e76 Add curlylint to precommit 2024-01-13 16:25:36 +00:00
Carlos Camara 8a0ea5af42 Replace pylint with a hook and update hook versions 2024-01-13 16:20:38 +00:00
Carlos Camara 51cc447508 Pre-commit initial setup 2024-01-12 20:33:18 +00:00
2 changed files with 44 additions and 0 deletions

43
.pre-commit-config.yaml Normal file
View 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$

View file

@ -47,6 +47,7 @@ black==22.*
celery-types==0.18.0
django-stubs[compatible-mypy]==4.2.4
mypy==1.5.1
pre-commit
pylint==2.15.0
pytest==6.2.5
pytest-cov==2.10.1