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 Jan 14, 2025
1 parent 2ab7025 commit 87b9e4d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 7 additions & 3 deletions src/manifestoo_core/core_addons/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@

@lru_cache()
def _get_core_addons(odoo_series: OdooSeries, odoo_edition: OdooEdition) -> Set[str]:
with package_files("manifestoo_core.core_addons").joinpath(
f"addons-{odoo_series.value}-{odoo_edition.value}.txt",
).open() as f:
with (
package_files("manifestoo_core.core_addons")
.joinpath(
f"addons-{odoo_series.value}-{odoo_edition.value}.txt",
)
.open()
) as f:
return {a.strip() for a in f if not a.startswith("#")}


Expand Down
12 changes: 4 additions & 8 deletions src/manifestoo_core/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,25 +402,21 @@ def _make_classifiers(odoo_series: OdooSeries, manifest: Manifest) -> List[str]:
),
"gpl-2": "License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"gpl-2 or any later version": (
"License :: OSI Approved :: "
"GNU General Public License v2 or later (GPLv2+)"
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)"
),
"gpl-3": "License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"gpl-3 or any later version": (
"License :: OSI Approved :: "
"GNU General Public License v3 or later (GPLv3+)"
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)"
),
"lgpl-2": (
"License :: OSI Approved :: "
"GNU Lesser General Public License v2 (LGPLv2)"
"License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)"
),
"lgpl-2 or any later version": (
"License :: OSI Approved :: "
"GNU Lesser General Public License v2 or later (LGPLv2+)"
),
"lgpl-3": (
"License :: OSI Approved :: "
"GNU Lesser General Public License v3 (LGPLv3)"
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)"
),
"lgpl-3 or any later version": (
"License :: OSI Approved :: "
Expand Down

0 comments on commit 87b9e4d

Please sign in to comment.