diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f33e6df..3e1c065 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: check-yaml - id: end-of-file-fixer @@ -16,14 +16,14 @@ repos: # General Project code formatter. - repo: https://github.com/psf/black - rev: 22.12.0 + rev: 24.1.0 hooks: - id: black # Sorts python imports. - repo: https://github.com/PyCQA/isort # Note - on black update blacken-docs pin should also be updated. - rev: 5.11.4 + rev: 5.13.2 hooks: - id: isort args: ['--profile=black'] @@ -31,13 +31,13 @@ repos: # Formats python docstrings. - repo: https://github.com/PyCQA/docformatter - rev: v1.5.1 + rev: v1.7.5 hooks: - id: docformatter # Used to detect unintentionally unused code. - repo: https://github.com/asottile/dead - rev: v1.5.0 + rev: v1.5.2 hooks: - id: dead args: [ @@ -46,7 +46,7 @@ repos: # Lint code in pre-commit env, note: This ignores import checks. - repo: https://github.com/PyCQA/pylint - rev: v2.15.9 + rev: v3.0.3 hooks: - id: pylint args: [ @@ -56,7 +56,7 @@ repos: # Lint code for security flaws. - repo: https://github.com/PyCQA/bandit - rev: 1.7.4 + rev: 1.7.7 hooks: - id: bandit args: [ @@ -67,7 +67,7 @@ repos: # Lint docstrings. - repo: https://github.com/PyCQA/pydocstyle # Waiting for a 3.10 release on pypi - rev: "6.2.0" + rev: "6.3.0" hooks: - id: pydocstyle additional_dependencies: @@ -76,6 +76,6 @@ repos: # Static typehint linting. - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.991 + rev: v1.8.0 hooks: - id: mypy diff --git a/requirements.txt b/requirements.txt index 79add8a..88eb63b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -clipy-hooks==0.2.0 +clipy-hooks==0.2.1 diff --git a/requirements_development.txt b/requirements_development.txt index 9bb126c..d59c58f 100644 --- a/requirements_development.txt +++ b/requirements_development.txt @@ -1,2 +1,2 @@ -pre-commit==2.21.0 -pytest==7.2.0 +pre-commit==3.6.0 +pytest==7.4.4 diff --git a/setup.py b/setup.py index c08b7af..27560b2 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ """For building the project.""" + from setuptools import setup setup() diff --git a/tests/conftest.py b/tests/conftest.py index 7658054..666283c 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,4 +1,5 @@ """Configuring pytest fixtures for use in the test suite.""" + import pytest from clipy_hooks.cli import Command diff --git a/tests/test_arduino_cli.py b/tests/test_arduino_cli.py index 42a7a77..3a7309d 100644 --- a/tests/test_arduino_cli.py +++ b/tests/test_arduino_cli.py @@ -1,4 +1,5 @@ """Module for checking the functionality of the arduino-cli hook.""" + import contextlib import os from pathlib import Path diff --git a/tests/test_arduino_lint.py b/tests/test_arduino_lint.py index 809a762..45405cd 100644 --- a/tests/test_arduino_lint.py +++ b/tests/test_arduino_lint.py @@ -1,4 +1,5 @@ """Module for checking the functionality of the arduino-lint hook.""" + import contextlib import os from pathlib import Path diff --git a/tests/test_sketch_behaviour.py b/tests/test_sketch_behaviour.py index a28109f..f53954e 100644 --- a/tests/test_sketch_behaviour.py +++ b/tests/test_sketch_behaviour.py @@ -1,4 +1,5 @@ """Tests the upstream sketch examples against applicable cli tools.""" + import contextlib import os from pathlib import Path