Skip to content

Commit

Permalink
remove some lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mcflugen committed Mar 14, 2024
1 parent 4dfe244 commit e44a833
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions babelizer/_files/gitignore.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


def render(plugin_metadata) -> str:
"""Render a .gitignore file."""
package_name = plugin_metadata.get("package", "name")

languages = {
Expand Down
5 changes: 2 additions & 3 deletions babelizer/_files/license_rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@


def render(plugin_metadata) -> str:
"""Render LICENSE.rst."""
license_name = plugin_metadata.get("info", "package_license")
kwds = {
"full_name": plugin_metadata.get("info", "package_author"),
"year": datetime.now().year,
"project_short_description": plugin_metadata.get(
"info", "summary"
),
"project_short_description": plugin_metadata.get("info", "summary"),
}

return LICENSE[license_name].format(**kwds)
Expand Down

0 comments on commit e44a833

Please sign in to comment.