diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 46dd513..1b1c595 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.5.0 hooks: - id: check-ast - id: check-toml @@ -8,15 +8,15 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/psf/black - rev: 22.8.0 + rev: 24.3.0 hooks: - id: black - repo: https://github.com/codespell-project/codespell - rev: v2.2.1 + rev: v2.2.6 hooks: - id: codespell - repo: https://github.com/PyCQA/flake8 - rev: 5.0.4 + rev: 7.0.0 hooks: - id: flake8 - repo: https://github.com/PyCQA/isort diff --git a/landlock/__init__.py b/landlock/__init__.py index 2b50a30..b7519e1 100644 --- a/landlock/__init__.py +++ b/landlock/__init__.py @@ -1,4 +1,5 @@ """Python interface to the Landlock Linux Security Module.""" + from typing import Optional __version__ = "1.0.0.dev4" diff --git a/landlock/plumbing.py b/landlock/plumbing.py index 2d85e15..ecba62c 100644 --- a/landlock/plumbing.py +++ b/landlock/plumbing.py @@ -1,4 +1,5 @@ """Landlock constants and syscalls.""" + import ctypes import enum import errno diff --git a/tests/conftest.py b/tests/conftest.py index cd02c1d..62668a4 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,4 +1,5 @@ """Test initialisation code run by pytest.""" + import platform from pathlib import Path diff --git a/tests/test_simple.py b/tests/test_simple.py index c48ad26..39b1083 100644 --- a/tests/test_simple.py +++ b/tests/test_simple.py @@ -1,4 +1,5 @@ """Some simple tests for Landlock.""" + import platform from pathlib import Path diff --git a/tests/test_unsupported_platforms.py b/tests/test_unsupported_platforms.py index 5e6c42d..37b55b6 100644 --- a/tests/test_unsupported_platforms.py +++ b/tests/test_unsupported_platforms.py @@ -1,4 +1,5 @@ """Tests Landlock on unsupported platforms (MacOS and Windows).""" + import platform import pytest