Skip to content

Commit

Permalink
Fix ruff linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jhkennedy committed Oct 10, 2024
1 parent 8aa9859 commit 5f21c51
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"github_username": "username_for_github_actions",
"github_email": "email_for@github_actions.com",
"process_type": "RTC",
"short_description": "HyP3 plugin for {{cookiecutter.process_type}} processing",
"short_description": "HyP3 plugin for {{cookiecutter.process_type}} processing.",
"public_url": "https://github.com/ASFHyP3/hyp3-{{cookiecutter.process_type}}",
"copyright_year": "{% now 'utc', '%Y' %}",
"__project_name": "hyp3-{{cookiecutter.process_type | lower}}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
"""
{{cookiecutter.process_type}} processing for HyP3
"""
"""{{cookiecutter.process_type}} processing for HyP3."""
import logging
from argparse import ArgumentParser

Expand All @@ -11,10 +9,8 @@
from {{cookiecutter.__package_name}}.process import {{cookiecutter.__process_name}}


def main():
"""
HyP3 entrypoint for {{cookiecutter.__package_name}}
"""
def main() -> None:
"""HyP3 entrypoint for {{cookiecutter.__package_name}}."""
parser = ArgumentParser()
parser.add_argument('--bucket', help='AWS S3 bucket HyP3 for upload the final product(s)')
parser.add_argument('--bucket-prefix', default='', help='Add a bucket prefix to product(s)')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
"""
{{cookiecutter.process_type}} processing
"""
"""{{cookiecutter.process_type}} processing."""

import argparse
import logging
Expand All @@ -12,7 +10,7 @@


def {{cookiecutter.__process_name}}(greeting: str = 'Hello world!') -> Path:
"""Create a greeting product
"""Create a greeting product.
Args:
greeting: Write this greeting to a product file (Default: "Hello world!" )
Expand All @@ -23,8 +21,8 @@ def {{cookiecutter.__process_name}}(greeting: str = 'Hello world!') -> Path:
return product_file


def main():
"""{{cookiecutter.__process_name}} entrypoint"""
def main() -> None:
"""{{cookiecutter.__process_name}} entrypoint."""
parser = argparse.ArgumentParser(
prog='{{cookiecutter.__process_name}}',
description=__doc__,
Expand Down

0 comments on commit 5f21c51

Please sign in to comment.