Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 27, 2024
1 parent 978b318 commit 85b7e86
Show file tree
Hide file tree
Showing 39 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
For a full list see the documentation: http://www.sphinx-doc.org/en/master/config
"""

# pylint: skip-file
import os
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions ssm_dox/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""SSM Document builder."""

import logging
from importlib.metadata import PackageNotFoundError, version

Expand Down
1 change: 1 addition & 0 deletions ssm_dox/_cli/commands/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""CLI commands."""

from ._build import build
from ._check import check
from ._publish import publish
Expand Down
1 change: 1 addition & 0 deletions ssm_dox/_cli/commands/_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
$ ssm-dox build ./dox --output ./ssm_documents
"""

from pathlib import Path

import click
Expand Down
1 change: 1 addition & 0 deletions ssm_dox/_cli/commands/_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
$ ssm-dox check ./dox ./ssm_documents
"""

import logging
from pathlib import Path

Expand Down
1 change: 1 addition & 0 deletions ssm_dox/_cli/commands/_publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
$ ssm-dox publish example-bucket ./ssm_documents --region us-east-1
"""

import logging
from pathlib import Path
from typing import Optional
Expand Down
1 change: 1 addition & 0 deletions ssm_dox/_cli/commands/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utilities."""

from __future__ import annotations

from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions ssm_dox/_cli/logs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""CLI logging setup."""

import logging
import os
from functools import cached_property
Expand Down
1 change: 1 addition & 0 deletions ssm_dox/_cli/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""SSM Document Builder CLI entrypoint."""

from __future__ import annotations

from typing import Any, Dict
Expand Down
1 change: 1 addition & 0 deletions ssm_dox/_logging.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Custom logging."""

import logging
from enum import IntEnum
from typing import Any, Text, Union
Expand Down
1 change: 1 addition & 0 deletions ssm_dox/constants.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Constant values."""

from pathlib import Path

DOCUMENTS_DIR = Path("./ssm_documents")
Expand Down
1 change: 1 addition & 0 deletions ssm_dox/document.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""SSM Documents."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions ssm_dox/dox.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Objects for working with Dox."""

from __future__ import annotations

import difflib
Expand Down
1 change: 1 addition & 0 deletions ssm_dox/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Exceptions."""

from __future__ import annotations

from typing import TYPE_CHECKING
Expand Down
1 change: 1 addition & 0 deletions ssm_dox/finder.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Explore a directory."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions ssm_dox/mixins.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Mixins."""

from __future__ import annotations

import os
Expand Down
1 change: 1 addition & 0 deletions ssm_dox/models/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Base classes for data models."""

from pydantic import BaseModel as _BaseModel


Expand Down
1 change: 1 addition & 0 deletions ssm_dox/models/document.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""AWS SSM Document data model."""

from __future__ import annotations

from typing import Dict, List, Optional
Expand Down
1 change: 1 addition & 0 deletions ssm_dox/models/main_steps/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""AWS SSM Document mainStep data models."""

from typing import Union

from .aws_runpowershellscript import AwsRunPowerShellScript
Expand Down
1 change: 1 addition & 0 deletions ssm_dox/models/main_steps/aws_runpowershellscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
https://docs.aws.amazon.com/systems-manager/latest/userguide/ssm-plugins.html#aws-runPowerShellScript
"""

from __future__ import annotations

from typing import List, Literal, Optional
Expand Down
1 change: 1 addition & 0 deletions ssm_dox/models/main_steps/aws_runshellscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
https://docs.aws.amazon.com/systems-manager/latest/userguide/ssm-plugins.html#aws-runShellScript
"""

from __future__ import annotations

from typing import List, Literal, Optional
Expand Down
1 change: 1 addition & 0 deletions ssm_dox/models/main_steps/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""AWS SSM Document mainStep base data model."""

from __future__ import annotations

from typing import Dict, List, Literal, Optional
Expand Down
1 change: 1 addition & 0 deletions ssm_dox/models/parameter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""AWS SSM Document parameter data model."""

from __future__ import annotations

from typing import Any, Dict, List, Literal, Optional, cast
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Pytest configuration, fixtures, and plugins."""

# pylint: disable=redefined-outer-name
from __future__ import annotations

Expand Down
1 change: 1 addition & 0 deletions tests/integration/cli/commands/test_build.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test build command."""

from __future__ import annotations

from typing import TYPE_CHECKING
Expand Down
1 change: 1 addition & 0 deletions tests/integration/cli/commands/test_check.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test check command."""

from __future__ import annotations

from typing import TYPE_CHECKING
Expand Down
1 change: 1 addition & 0 deletions tests/integration/cli/commands/test_publish.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test publish command."""

# pylint: disable=unused-argument
from __future__ import annotations

Expand Down
1 change: 1 addition & 0 deletions tests/integration/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Pytest configuration, fixtures, and plugins."""

# pylint: disable=redefined-outer-name
from __future__ import annotations

Expand Down
1 change: 1 addition & 0 deletions tests/unit/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Pytest configuration, fixtures, and plugins."""

# pylint: disable=redefined-outer-name
from __future__ import annotations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test ssm_dox.models.main_steps.aws_runpowershellscript."""

# pylint: disable=no-member,no-self-use
from typing import Dict

Expand Down
1 change: 1 addition & 0 deletions tests/unit/models/main_steps/test_aws_runshellscript.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test ssm_dox.models.main_steps.aws_runshellscript."""

# pylint: disable=no-member,no-self-use
from typing import Dict

Expand Down
1 change: 1 addition & 0 deletions tests/unit/models/main_steps/test_base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test ssm_dox.models.main_steps.base."""

# pylint: disable=no-self-use
from typing import Any, Dict, Optional

Expand Down
1 change: 1 addition & 0 deletions tests/unit/models/test_base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test ssm_dox.models.base."""

# pylint: disable=no-self-use,unneeded-not
import json
from typing import Optional
Expand Down
1 change: 1 addition & 0 deletions tests/unit/models/test_document.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test ssm_dox.models.document."""

# pylint: disable=no-self-use,unsubscriptable-object
from typing import Dict

Expand Down
1 change: 1 addition & 0 deletions tests/unit/models/test_parameter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test ssm_dox.models.parameter."""

# pylint: disable=no-self-use
from typing import Any, Optional

Expand Down
1 change: 1 addition & 0 deletions tests/unit/test_document.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test ssm_dox.document."""

# pylint: disable=no-self-use
from __future__ import annotations

Expand Down
1 change: 1 addition & 0 deletions tests/unit/test_dox.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test ssm_dox.dox."""

# pylint: disable=no-self-use
from __future__ import annotations

Expand Down
1 change: 1 addition & 0 deletions tests/unit/test_finder.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test ssm_dox.finder."""

# pylint: disable=no-self-use
from __future__ import annotations

Expand Down
1 change: 1 addition & 0 deletions tests/unit/test_mixins.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test ssm_dox.mixins."""

# pylint: disable=no-self-use
from __future__ import annotations

Expand Down

0 comments on commit 85b7e86

Please sign in to comment.