From d42a4d28cedafc8641197f1bc2a7b079dcdf86e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez-Mondrag=C3=B3n?= Date: Mon, 24 Jun 2024 21:49:45 +0200 Subject: [PATCH] Apply black formatting --- docs/conf.py | 1 + noxfile.py | 1 + src/nox_poetry/__init__.py | 1 + src/nox_poetry/poetry.py | 1 + src/nox_poetry/sessions.py | 1 + src/nox_poetry/sessions.pyi | 1 + tests/functional/conftest.py | 1 + tests/functional/test_installroot.py | 1 + tests/functional/test_poetry.py | 1 + tests/functional/test_session.py | 1 + tests/unit/conftest.py | 1 + tests/unit/test_nox_poetry.py | 1 + tests/unit/test_poetry.py | 1 + tests/unit/test_sessions.py | 1 + 14 files changed, 14 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index ccb612d1..addfa75c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,4 +1,5 @@ """Sphinx configuration.""" + project = "nox-poetry" author = "Claudio Jolowicz" copyright = "2020, Claudio Jolowicz" diff --git a/noxfile.py b/noxfile.py index ea1ea48e..1d9d7d3d 100644 --- a/noxfile.py +++ b/noxfile.py @@ -1,4 +1,5 @@ """Nox sessions.""" + import os import shlex import shutil diff --git a/src/nox_poetry/__init__.py b/src/nox_poetry/__init__.py index 677e212e..741aee99 100644 --- a/src/nox_poetry/__init__.py +++ b/src/nox_poetry/__init__.py @@ -26,6 +26,7 @@ - :const:`WHEEL` - :const:`SDIST` """ + from nox_poetry.poetry import DistributionFormat from nox_poetry.sessions import Session from nox_poetry.sessions import session diff --git a/src/nox_poetry/poetry.py b/src/nox_poetry/poetry.py index af36f17d..87865012 100644 --- a/src/nox_poetry/poetry.py +++ b/src/nox_poetry/poetry.py @@ -1,4 +1,5 @@ """Poetry interface.""" + import re import sys from enum import Enum diff --git a/src/nox_poetry/sessions.py b/src/nox_poetry/sessions.py index 9d451147..f32bf13e 100644 --- a/src/nox_poetry/sessions.py +++ b/src/nox_poetry/sessions.py @@ -1,4 +1,5 @@ """Replacements for the ``nox.session`` decorator and the ``nox.Session`` class.""" + import functools import hashlib import re diff --git a/src/nox_poetry/sessions.pyi b/src/nox_poetry/sessions.pyi index 56faaae0..878d06ad 100644 --- a/src/nox_poetry/sessions.pyi +++ b/src/nox_poetry/sessions.pyi @@ -1,4 +1,5 @@ """Type stubs for nox_poetry.sessions.""" + from pathlib import Path from typing import Any from typing import Callable diff --git a/tests/functional/conftest.py b/tests/functional/conftest.py index 382ca1f7..fedfee60 100644 --- a/tests/functional/conftest.py +++ b/tests/functional/conftest.py @@ -1,4 +1,5 @@ """Fixtures for functional tests.""" + import inspect import os import subprocess # noqa: S404 diff --git a/tests/functional/test_installroot.py b/tests/functional/test_installroot.py index 4daf07a1..ec4d437a 100644 --- a/tests/functional/test_installroot.py +++ b/tests/functional/test_installroot.py @@ -1,4 +1,5 @@ """Functional tests for ``installroot``.""" + import nox_poetry from tests.functional.conftest import Project from tests.functional.conftest import list_packages diff --git a/tests/functional/test_poetry.py b/tests/functional/test_poetry.py index 218bfc56..877c2fc7 100644 --- a/tests/functional/test_poetry.py +++ b/tests/functional/test_poetry.py @@ -1,4 +1,5 @@ """Functional tests for ``session.poetry``.""" + import nox_poetry from tests.functional.conftest import Project from tests.functional.conftest import list_packages diff --git a/tests/functional/test_session.py b/tests/functional/test_session.py index ec6468cd..047417e8 100644 --- a/tests/functional/test_session.py +++ b/tests/functional/test_session.py @@ -1,4 +1,5 @@ """Functional tests for the `@session` decorator.""" + import sys from pathlib import Path diff --git a/tests/unit/conftest.py b/tests/unit/conftest.py index 4220a6ba..36c56888 100644 --- a/tests/unit/conftest.py +++ b/tests/unit/conftest.py @@ -1,4 +1,5 @@ """Fixtures.""" + import sys from pathlib import Path from typing import Any diff --git a/tests/unit/test_nox_poetry.py b/tests/unit/test_nox_poetry.py index 457527e0..176b9035 100644 --- a/tests/unit/test_nox_poetry.py +++ b/tests/unit/test_nox_poetry.py @@ -1,4 +1,5 @@ """Unit tests.""" + from typing import Iterable import pytest diff --git a/tests/unit/test_poetry.py b/tests/unit/test_poetry.py index 9ea7a2ca..ecb4133b 100644 --- a/tests/unit/test_poetry.py +++ b/tests/unit/test_poetry.py @@ -1,4 +1,5 @@ """Unit tests for the poetry module.""" + from pathlib import Path from textwrap import dedent from typing import Any diff --git a/tests/unit/test_sessions.py b/tests/unit/test_sessions.py index a213ce36..d344bed4 100644 --- a/tests/unit/test_sessions.py +++ b/tests/unit/test_sessions.py @@ -1,4 +1,5 @@ """Unit tests for the sessions module.""" + from textwrap import dedent from typing import Callable from typing import Iterator