diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cc68aa1..7050b7c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/PyCQA/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort name: isort @@ -11,7 +11,7 @@ repos: args: ["--profile=black"] - repo: https://github.com/psf/black - rev: 23.7.0 + rev: 24.3.0 hooks: - id: black args: @@ -23,18 +23,18 @@ repos: types: [python] - repo: https://github.com/asottile/blacken-docs - rev: 1.15.0 + rev: 1.16.0 hooks: - id: blacken-docs - additional_dependencies: ["black==23.7.0"] + additional_dependencies: ["black==24.3.0"] - repo: https://github.com/kynan/nbstripout - rev: 0.6.1 + rev: 0.7.1 hooks: - id: nbstripout - repo: https://github.com/nbQA-dev/nbQA - rev: 1.7.0 + rev: 1.8.5 hooks: - id: nbqa-isort args: ["--profile=black"] @@ -45,7 +45,7 @@ repos: - "--target-version=py39" - "--target-version=py310" - "--target-version=py311" - additional_dependencies: ["black==23.7.0"] + additional_dependencies: ["black==24.3.0"] - id: nbqa-flake8 - repo: https://github.com/pre-commit/pygrep-hooks @@ -62,7 +62,7 @@ repos: types: [text] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.6.0 hooks: - id: check-added-large-files - id: check-ast @@ -88,12 +88,12 @@ repos: exclude: \.(html|svg)$ - repo: https://github.com/asottile/setup-cfg-fmt - rev: v2.4.0 + rev: v2.5.0 hooks: - id: setup-cfg-fmt - repo: https://github.com/PyCQA/flake8 - rev: 6.1.0 + rev: 7.0.0 hooks: - id: flake8 additional_dependencies: diff --git a/package_name/tests/test_module.py b/package_name/tests/test_module.py index 9203a22..63a02da 100644 --- a/package_name/tests/test_module.py +++ b/package_name/tests/test_module.py @@ -1,6 +1,7 @@ """ Tests for module in package_name. """ + import math import numpy as np diff --git a/requirements-dev.txt b/requirements-dev.txt index 5789ba3..31cd9d5 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,3 +1,3 @@ -black==23.7.0 +black==24.3.0 identify>=1.4.20 pre-commit