From 6de813a1212f522450430fccdc3f14f534a6928a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 17:53:00 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- landlock/__init__.py | 1 + landlock/plumbing.py | 1 + tests/conftest.py | 1 + tests/test_simple.py | 1 + tests/test_unsupported_platforms.py | 1 + 5 files changed, 5 insertions(+) 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 05ffcd2..efcc7c8 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