Skip to content
Snippets Groups Projects
Commit b088a91e authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[expose,tests] Fix style

parent 0ff98a16
Branches
Tags
No related merge requests found
Pipeline #64672 failed
......@@ -3,12 +3,12 @@
"""Functionality to implement python-based config file parsing and loading.
"""
import re
import sys
import logging
import os.path
import pathlib
import pkgutil
import re
import sys
import types
import typing
......@@ -119,7 +119,8 @@ def _retrieve_entry_points(group: str) -> typing.Iterable[EntryPoint]:
"""
if sys.version_info[:2] < (3, 10):
return entry_points()[group] # Python 3.8 and 3.9
all_entry_points = entry_points()
return all_entry_points.get(group, []) # Python 3.8 and 3.9
return entry_points(group=group) # Python 3.10 and above
......
......@@ -163,9 +163,7 @@ def test_config_dump(tmp_path, datadir):
def test_config_dump2(tmp_path, datadir):
@click.command(
cls=ConfigCommand, entry_point_group="expose.test.config"
)
@click.command(cls=ConfigCommand, entry_point_group="expose.test.config")
@click.option(
"--database",
"-d",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment