Skip to content

Commit 6a889a1

Browse files
committed
[ruff] Mark pulp_glue as second-hand import
1 parent ec3e423 commit 6a889a1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+73
-0
lines changed

cookiecutter/ci/{{ cookiecutter.__project_name }}/pyproject.toml.update

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,11 @@ extend-exclude = ["cookiecutter"]
177177
# This section is managed by the cookiecutter templates.
178178
extend-select = ["I"]
179179

180+
[tool.ruff.lint.isort]
181+
# This section is managed by the cookiecutter templates.
182+
sections = { second-party = ["pulp_glue"] }
183+
section-order = ["future", "standard-library", "third-party", "second-party", "first-party", "local-folder"]
184+
180185
[tool.mypy]
181186
# This section is managed by the cookiecutter templates.
182187
strict = true

pulp_cli/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from types import ModuleType
77

88
import click
9+
910
from pulp_glue.common.i18n import get_translation
1011

1112
from pulp_cli.config import CONFIG_LOCATIONS, config, config_options, validate_config

pulp_cli/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import click
88
import tomli_w
9+
910
from pulp_glue.common.i18n import get_translation
1011

1112
from pulp_cli.generic import HEADER_REGEX, REGISTERED_OUTPUT_FORMATTERS, _unset, pulp_group

pulp_cli/generic.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import requests
1111
import schema as s
1212
import yaml
13+
1314
from pulp_glue.common.authentication import OAuth2ClientCredentialsAuth
1415
from pulp_glue.common.context import (
1516
DATETIME_FORMATS,

pulpcore/cli/ansible/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import typing as t
22

33
import click
4+
45
from pulp_glue.common.i18n import get_translation
56

67
from pulp_cli.generic import pulp_group

pulpcore/cli/ansible/content.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import typing as t
22

33
import click
4+
45
from pulp_glue.ansible.context import (
56
PulpAnsibleCollectionVersionContext,
67
PulpAnsibleCollectionVersionSignatureContext,

pulpcore/cli/ansible/distribution.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import click
2+
23
from pulp_glue.ansible.context import PulpAnsibleDistributionContext, PulpAnsibleRepositoryContext
34
from pulp_glue.common.context import (
45
EntityDefinition,

pulpcore/cli/ansible/remote.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import click
44
import yaml
5+
56
from pulp_glue.ansible.context import (
67
PulpAnsibleCollectionRemoteContext,
78
PulpAnsibleRoleRemoteContext,

pulpcore/cli/ansible/repository.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import click
44
import schema as s
5+
56
from pulp_glue.ansible.context import (
67
PulpAnsibleCollectionRemoteContext,
78
PulpAnsibleCollectionVersionContext,

pulpcore/cli/common/acs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import typing as t
22

33
import click
4+
45
from pulp_glue.common.context import PulpACSContext, PulpRemoteContext
56
from pulp_glue.common.i18n import get_translation
67

0 commit comments

Comments
 (0)