Skip to content

Commit

Permalink
more lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnycarter committed Jul 5, 2023
1 parent 295bf05 commit d2ef121
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/aosm/azext_aosm/_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def path_from_cli_dir(self, path: str) -> str:

return updated_path

@abc.abstractproperty
@property
def output_directory_for_build(self) -> Path:
"""Base class method to ensure subclasses implement this function."""
raise NotImplementedError("Subclass must define property")
Expand Down
10 changes: 8 additions & 2 deletions src/aosm/azext_aosm/generate_nfd/cnf_nfd_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,12 @@ def _write_schema_to_file(self) -> None:
logger.debug("%s created", full_schema)

def _copy_to_output_directory(self) -> None:
"""Copy the config mappings, schema and bicep templates (artifact manifest and NFDV) from the temp directory to the output directory."""
"""
Copy files from the temp directory to the output directory.
Files are the config mappings, schema and bicep templates (artifact manifest
and NFDV).
"""
assert self._tmp_dir

logger.info("Create NFD bicep %s", self.output_directory)
Expand Down Expand Up @@ -552,6 +557,7 @@ def traverse_dict(
:param d: The dictionary to traverse.
:param target: The regex to search for.
"""
# pylint: disable=too-many-nested-blocks
@dataclass
class DictNode:
# The dictionary under this node
Expand Down Expand Up @@ -591,7 +597,7 @@ class DictNode:

if isinstance(item, str):
match = re.search(target_regex, item)

if match:
result[match.group(1)] = node.position_path + [key]

Expand Down
2 changes: 1 addition & 1 deletion src/aosm/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
]

# TODO: Add any additional SDK dependencies here
DEPENDENCIES = ["oras~=0.1.17", "azure-storage-blob>=12.15.0", "jinja2>=3.1.2"]
DEPENDENCIES = ["oras~=0.1.18", "azure-storage-blob>=12.15.0", "jinja2>=3.1.2"]

with open("README.md", "r", encoding="utf-8") as f:
README = f.read()
Expand Down

0 comments on commit d2ef121

Please sign in to comment.