diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 2c5f202784e03530d6ef41be5275a1dfc6459e03..ea6980e8626a5c89b8dba34eebc6a09a4e813c81 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,15 +1,15 @@
 repos:
 -   repo: https://github.com/psf/black
-    rev: 21.6b0
+    rev: 22.1.0
     hooks:
     - id: black
 -   repo: https://github.com/PyCQA/isort
-    rev: 5.9.2
+    rev: 5.10.1
     hooks:
     - id: isort
       args: ["--profile", "black"]
 -   repo: https://github.com/asottile/pyupgrade
-    rev: v2.21.0
+    rev: v2.31.0
     hooks:
     - id: pyupgrade
       args: [--py37-plus]
@@ -21,7 +21,7 @@ repos:
         - "--server"
         - "https://git.duniter.org"
 -   repo: https://github.com/Lucas-C/pre-commit-hooks
-    rev: v1.1.10
+    rev: v1.1.12
     hooks:
     -   id: insert-license
         files: \.py$
diff --git a/silkaj/money.py b/silkaj/money.py
index d030a661dd342240acebf0228125296e8e0f577c..3865db8e5575fd91df6cd3d745c0ec36bea1513b 100644
--- a/silkaj/money.py
+++ b/silkaj/money.py
@@ -207,4 +207,4 @@ def amount_in_current_base(source):
     """
     Get amount in current base from input or output source
     """
-    return source.amount * 10 ** source.base
+    return source.amount * 10**source.base
diff --git a/silkaj/tx.py b/silkaj/tx.py
index 9ee4b307c84bec0f1fa50f7a27951cb12d51e183..f08f426286b72dfc5278fa2ee1d3cc0464f11fd0 100644
--- a/silkaj/tx.py
+++ b/silkaj/tx.py
@@ -436,8 +436,8 @@ def generate_transaction_document(
     # if it's not a foreign exchange transaction, we remove units after 2 digits after the decimal point.
     if issuers not in outputAddresses:
         total_tx_amount = (
-            total_tx_amount // 10 ** curentUnitBase
-        ) * 10 ** curentUnitBase
+            total_tx_amount // 10**curentUnitBase
+        ) * 10**curentUnitBase
 
     # Generate output
     ################
diff --git a/tests/test_unit_tx.py b/tests/test_unit_tx.py
index 08509bccb4f1acd49fdfc715e133752362875c78..c2d21bed87babb2e3b74ca3b0a7a81481778b3d4 100644
--- a/tests/test_unit_tx.py
+++ b/tests/test_unit_tx.py
@@ -204,13 +204,10 @@ def test_compute_amounts():
     assert tx.compute_amounts([1.001], mock_ud_value) == [314]
     assert tx.compute_amounts([1.009], mock_ud_value) == [317]
     # This case will not happen in real use, but this particular function will allow it.
-    assert (
-        tx.compute_amounts(
-            [0.0099],
-            100,
-        )
-        == [1]
-    )
+    assert tx.compute_amounts(
+        [0.0099],
+        100,
+    ) == [1]
 
 
 # generate_transaction_document()