From c7466501141573d0158b349844579951af930c18 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Bedna=C5=99=C3=ADk?= <jan.bednarik@gmail.com>
Date: Wed, 6 Oct 2021 16:40:14 +0200
Subject: [PATCH] majak: Upgrade pre-commit hooks

---
 .pre-commit-config.yaml               | 6 +++---
 shared/models.py                      | 2 +-
 shared/templatetags/shared_filters.py | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 853c6cbb..a4e7a716 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -4,7 +4,7 @@ default_language_version:
 exclude: snapshots/
 repos:
   - repo: https://github.com/pre-commit/pre-commit-hooks
-    rev: v3.3.0
+    rev: v4.0.1
     hooks:
       - id: trailing-whitespace
         exclude: ^.*\.md$
@@ -21,11 +21,11 @@ repos:
       - id: seed-isort-config
 
   - repo: https://github.com/timothycrosley/isort
-    rev: 5.6.4
+    rev: 5.9.3
     hooks:
       - id: isort
 
   - repo: https://github.com/psf/black
-    rev: 20.8b1
+    rev: 21.9b0
     hooks:
       - id: black
diff --git a/shared/models.py b/shared/models.py
index 6ac73c33..794148f4 100644
--- a/shared/models.py
+++ b/shared/models.py
@@ -107,7 +107,7 @@ class Person(models.Model):
     ]
 
     def _iapi(self):
-        """ Vrati data o osobe z piratskeho IAPI jako json. Cached via django cache"""
+        """Vrati data o osobe z piratskeho IAPI jako json. Cached via django cache"""
         key = f"profile_{self.username}"
         profile = cache.get(key)
         if profile is None:
diff --git a/shared/templatetags/shared_filters.py b/shared/templatetags/shared_filters.py
index 94a59b89..2f06f9ad 100644
--- a/shared/templatetags/shared_filters.py
+++ b/shared/templatetags/shared_filters.py
@@ -7,5 +7,5 @@ register = template.Library()
 
 @register.filter
 def markdown(value):
-    """ Prekonvertuje vstupni text na markdown, necekane """
+    """Prekonvertuje vstupni text na markdown, necekane"""
     return mark_safe(md.markdown(value))
-- 
GitLab