diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index df2dda0..7d137ca 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,32 +1,39 @@ fail_fast: true repos: - - repo: https://github.com/twu/skjold - rev: v0.1.6 - hooks: - - id: skjold - repo: https://github.com/pre-commit/pre-commit-hooks rev: v3.4.0 hooks: - id: check-merge-conflict + - id: detect-private-key - id: check-symlinks - id: check-toml - id: check-xml - id: check-yaml - - id: fix-encoding-pragma - id: forbid-new-submodules - id: mixed-line-ending - id: trailing-whitespace language: python + - repo: https://github.com/pre-commit/pygrep-hooks + rev: v1.8.0 # Use the ref you want to point at + hooks: + - id: python-no-eval + - id: python-no-log-warn + - id: python-use-type-annotations + - repo: https://github.com/asottile/pyupgrade + rev: v2.11.0 + hooks: + - id: pyupgrade + args: [--py310-plus] - repo: https://github.com/ambv/black rev: 20.8b1 hooks: - id: black - language_version: python3.8 + language_version: python3.9 - repo: https://gitlab.com/pycqa/flake8 - rev: 3.8.4 + rev: 3.9.0 hooks: - id: flake8 - repo: https://github.com/asottile/blacken-docs - rev: v1.9.1 + rev: v1.10.0 hooks: - id: blacken-docs diff --git a/Pipfile b/Pipfile index da0b4e6..896ca98 100644 --- a/Pipfile +++ b/Pipfile @@ -11,10 +11,10 @@ pre-commit= "*" skjold = "*" [packages] -django = ">=3.1.0" -gunicorn = ">=20.0.0" -psycopg2 = ">=2.8.0" -django-filter = ">=2.3.0" +django = ">=3.1.7" +gunicorn = ">=20.1.0" +psycopg2 = ">=2.8.6" +django-filter = ">=2.4.0" django-guardian = ">=2.3.0" [requires]