Skip to content

Commit

Permalink
🚚 Mv Django settings stub to credentials.dsv
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Oct 10, 2024
1 parent 87cfd10 commit 397afb2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ per-file-ignores =
src/awx_plugins/credentials/dsv.py: ANN003, ANN201, D100, D103, P103, WPS210
src/awx_plugins/credentials/hashivault.py: ANN003, ANN201, B950, C901, CCR001, D100, D103, LN001, N400, WPS202, WPS204, WPS210, WPS221, WPS223, WPS229, WPS231, WPS232, WPS331, WPS336, WPS337, WPS432, WPS454
src/awx_plugins/credentials/injectors.py: ANN001, ANN201, ANN202, C408, D100, D103, WPS110, WPS111, WPS202, WPS210, WPS347, WPS433, WPS440
src/awx_plugins/credentials/plugin.py: ANN001, ANN002, ANN101, ANN201, ANN204, B010, D100, D101, D103, D105, D107, D205, D400, E731, WPS115, WPS432, WPS433, WPS440, WPS442, WPS601
src/awx_plugins/credentials/plugin.py: ANN001, ANN002, ANN101, ANN201, ANN204, B010, D100, D101, D103, D105, D107, D205, D400, E731, WPS432, WPS433, WPS440, WPS442, WPS601
src/awx_plugins/credentials/plugins.py: B950,D100, D101, D103, D105, D107, D205, D400, LN001, WPS204, WPS229, WPS433, WPS440
src/awx_plugins/credentials/tss.py: ANN003, ANN201, D100, D103, E712, WPS433, WPS440, WPS503
src/awx_plugins/inventory/plugins.py: ANN001, ANN002, ANN003, ANN101, ANN102, ANN201, ANN202, ANN206, B950, C812, C819, D100, D101, D102, D205, D209, D400, D401, LN001, LN002, N801, WPS110, WPS111, WPS202, WPS210, WPS214, WPS301, WPS319, WPS324, WPS331, WPS336, WPS337, WPS338, WPS347, WPS421, WPS433, WPS450, WPS510, WPS529
Expand Down
11 changes: 10 additions & 1 deletion src/awx_plugins/credentials/dsv.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,16 @@
SecretsVault as SecretsVault,
)

from .plugin import CredentialPlugin, settings
from .plugin import CredentialPlugin


class Settings:
"""A stub Django settings-like interface."""

DEBUG: bool = False # noqa: WPS115


settings = Settings()


dsv_inputs = {
Expand Down
7 changes: 0 additions & 7 deletions src/awx_plugins/credentials/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@
)


class Settings():
DEBUG = False


settings = Settings()


def raise_for_status(resp):
resp.raise_for_status()
if resp.status_code >= 300:
Expand Down

0 comments on commit 397afb2

Please sign in to comment.