Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
56 lines (55 sloc) 1.72 KB
default_language_version:
python: python3.11
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: debug-statements
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
files: "^kitsune/"
exclude: "^.*/migrations/.*$|kitsune/sumo/db_strings.py"
language_version: python3.11
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
hooks:
- id: prettier
additional_dependencies:
- [email protected]
- [email protected]
files: "^svelte/"
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.0.1
hooks:
- id: mypy
# Add to the "additional_dependencies" list below any poetry
# dependencies or their stub packages that provide type hints.
additional_dependencies:
- boto3-stubs==1.26.71
- types-redis==4.5.1
- types-requests==2.28.11.12
- types-bleach==6.0.0.0
- types-python-dateutil==2.8.19.7
- types-simplejson==3.18.0.0
- types-PyMySQL==1.0.19.3
files: "^kitsune/"
exclude: "/migrations/"
# - repo: https://github.com/pre-commit/mirrors-eslint
# rev: v8.1.0
# hooks:
# - id: eslint
# args: [--no-eslintrc, --config=webpack/eslintrc.js]
# exclude: "webpack/.*|webpack\\..*\\.js"
# additional_dependencies:
# - [email protected]
# - [email protected]
# - [email protected]