aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2024-01-26 11:36:00 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2024-01-26 11:36:00 +0200
commitc2854afa252886214964f2f962581a2cf3c1f72b (patch)
treea30d7a9bd0bf7967d59848a8bd25433f78be6669 /src
parentfix: tox.ini since it's not been used in ages. (diff)
downloadpkgcore-c2854afa252886214964f2f962581a2cf3c1f72b.tar.gz
pkgcore-c2854afa252886214964f2f962581a2cf3c1f72b.tar.bz2
pkgcore-c2854afa252886214964f2f962581a2cf3c1f72b.zip
reformat with black 24
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'src')
-rw-r--r--src/pkgcore/config/central.py3
-rw-r--r--src/pkgcore/config/hint.py1
-rw-r--r--src/pkgcore/ebuild/eclass_cache.py1
-rw-r--r--src/pkgcore/ebuild/profiles.py6
-rw-r--r--src/pkgcore/ebuild/restricts.py1
-rw-r--r--src/pkgcore/fs/fs.py6
-rw-r--r--src/pkgcore/merge/triggers.py1
-rw-r--r--src/pkgcore/package/virtual.py1
-rw-r--r--src/pkgcore/repository/misc.py6
-rw-r--r--src/pkgcore/repository/virtual.py6
-rw-r--r--src/pkgcore/sync/base.py1
-rw-r--r--src/pkgcore/util/commandline.py16
12 files changed, 19 insertions, 30 deletions
diff --git a/src/pkgcore/config/central.py b/src/pkgcore/config/central.py
index 12e0ce13b..584638630 100644
--- a/src/pkgcore/config/central.py
+++ b/src/pkgcore/config/central.py
@@ -22,7 +22,6 @@ _section_data = namedtuple("_section_data", ["name", "section"])
class _ConfigMapping(mappings.DictMixin):
-
"""Minimal dict-like wrapper returning config sections by type.
Similar to :class:`mappings.LazyValDict` but __getitem__
@@ -78,7 +77,6 @@ class _ConfigStack(defaultdict[str, list[typing.Any]]):
class CollapsedConfig:
-
"""A collapsed config section.
:type type: :obj:`basics.ConfigType`
@@ -281,7 +279,6 @@ class CompatConfigManager:
class ConfigManager:
-
"""Combine config type definitions and configuration sections.
Creates instances of a requested type and name by pulling the
diff --git a/src/pkgcore/config/hint.py b/src/pkgcore/config/hint.py
index 8a230204b..57972c113 100644
--- a/src/pkgcore/config/hint.py
+++ b/src/pkgcore/config/hint.py
@@ -1,6 +1,5 @@
"""Config introspection support."""
-
__all__ = ("ConfigHint", "configurable")
import typing
diff --git a/src/pkgcore/ebuild/eclass_cache.py b/src/pkgcore/ebuild/eclass_cache.py
index 402b15959..bbe8226d5 100644
--- a/src/pkgcore/ebuild/eclass_cache.py
+++ b/src/pkgcore/ebuild/eclass_cache.py
@@ -113,7 +113,6 @@ class cache(base):
class StackedCaches(base):
-
"""
collapse multiple eclass caches into one.
diff --git a/src/pkgcore/ebuild/profiles.py b/src/pkgcore/ebuild/profiles.py
index 660fcea8a..384e41e22 100644
--- a/src/pkgcore/ebuild/profiles.py
+++ b/src/pkgcore/ebuild/profiles.py
@@ -606,9 +606,9 @@ class EmptyRootNode(ProfileNode):
parents = ()
deprecated = None
- pkg_use = (
- masked_use
- ) = stable_masked_use = forced_use = stable_forced_use = misc.ChunkedDataDict()
+ pkg_use = masked_use = stable_masked_use = forced_use = stable_forced_use = (
+ misc.ChunkedDataDict()
+ )
forced_use.freeze()
pkg_bashrc = ()
pkg_use_force = pkg_use_mask = ImmutableDict()
diff --git a/src/pkgcore/ebuild/restricts.py b/src/pkgcore/ebuild/restricts.py
index 6d4c1804c..9aaa84b62 100644
--- a/src/pkgcore/ebuild/restricts.py
+++ b/src/pkgcore/ebuild/restricts.py
@@ -25,7 +25,6 @@ from . import cpv, errors
# TODO: change values.EqualityMatch so it supports le, lt, gt, ge, eq,
# ne ops, and convert this to it.
class _VersionMatch(restriction.base, metaclass=generic_equality):
-
"""
package restriction implementing gentoo ebuild version comparison rules
diff --git a/src/pkgcore/fs/fs.py b/src/pkgcore/fs/fs.py
index 9149750eb..ba9fedd75 100644
--- a/src/pkgcore/fs/fs.py
+++ b/src/pkgcore/fs/fs.py
@@ -52,7 +52,6 @@ def gen_doc_additions(init, slots):
class fsBase:
-
"""base class, all extensions must derive from this class"""
__slots__ = ("location", "mtime", "mode", "uid", "gid")
@@ -146,7 +145,6 @@ class _LazyChksums(LazyFullValLoadDict):
class fsFile(fsBase):
-
"""file class"""
__slots__ = ("chksums", "data", "dev", "inode")
@@ -206,7 +204,6 @@ class fsFile(fsBase):
class fsDir(fsBase):
-
"""dir class"""
__slots__ = ()
@@ -217,7 +214,6 @@ class fsDir(fsBase):
class fsLink(fsBase):
-
"""symlink class"""
__slots__ = ("target",)
@@ -269,7 +265,6 @@ fsSymlink = fsLink
class fsDev(fsBase):
-
"""dev class (char/block objects)"""
__slots__ = ("major", "minor")
@@ -315,7 +310,6 @@ def get_major_minor(stat_inst):
class fsFifo(fsBase):
-
"""fifo class (socket objects)"""
__slots__ = ()
diff --git a/src/pkgcore/merge/triggers.py b/src/pkgcore/merge/triggers.py
index c484ad8c7..25e88ac5c 100644
--- a/src/pkgcore/merge/triggers.py
+++ b/src/pkgcore/merge/triggers.py
@@ -49,7 +49,6 @@ INSTALLING_MODES = (const.REPLACE_MODE, const.INSTALL_MODE)
class base:
-
"""base trigger class
:ivar required_csets: If None, all csets are passed in, else it must be a
diff --git a/src/pkgcore/package/virtual.py b/src/pkgcore/package/virtual.py
index 29c163b6e..ddd48bdd4 100644
--- a/src/pkgcore/package/virtual.py
+++ b/src/pkgcore/package/virtual.py
@@ -9,7 +9,6 @@ from . import metadata
class package(metadata.package):
-
"""
Virtual package.
diff --git a/src/pkgcore/repository/misc.py b/src/pkgcore/repository/misc.py
index d7f0ab008..e6c220a5a 100644
--- a/src/pkgcore/repository/misc.py
+++ b/src/pkgcore/repository/misc.py
@@ -12,9 +12,9 @@ from ..restrictions import packages
class nodeps_repo:
"""Repository wrapper that returns wrapped pkgs with deps wiped."""
- default_bdepend = (
- default_depend
- ) = default_rdepend = default_pdepend = default_idepend = DepSet()
+ default_bdepend = default_depend = default_rdepend = default_pdepend = (
+ default_idepend
+ ) = DepSet()
def __init__(self, repo):
"""
diff --git a/src/pkgcore/repository/virtual.py b/src/pkgcore/repository/virtual.py
index b584c71b3..12e8d972c 100644
--- a/src/pkgcore/repository/virtual.py
+++ b/src/pkgcore/repository/virtual.py
@@ -68,9 +68,9 @@ class InjectedPkg(pkg_base.wrapper):
"unversioned_atom",
"data",
)
- default_bdepend = (
- default_depend
- ) = default_rdepend = default_pdepend = default_idepend = DepSet()
+ default_bdepend = default_depend = default_rdepend = default_pdepend = (
+ default_idepend
+ ) = DepSet()
package_is_real = False
is_supported = True
diff --git a/src/pkgcore/sync/base.py b/src/pkgcore/sync/base.py
index e9099e916..83b567703 100644
--- a/src/pkgcore/sync/base.py
+++ b/src/pkgcore/sync/base.py
@@ -152,7 +152,6 @@ class Syncer:
class ExternalSyncer(Syncer):
-
"""Base class for syncers that spawn a binary to do the the actual work."""
binary = None
diff --git a/src/pkgcore/util/commandline.py b/src/pkgcore/util/commandline.py
index d7e47dedf..b6878d269 100644
--- a/src/pkgcore/util/commandline.py
+++ b/src/pkgcore/util/commandline.py
@@ -529,9 +529,11 @@ def _mk_domain(parser, help=True):
get_default=True,
config_type="domain",
action=StoreConfigObject,
- help="custom pkgcore domain to use for this operation"
- if help
- else argparse.SUPPRESS,
+ help=(
+ "custom pkgcore domain to use for this operation"
+ if help
+ else argparse.SUPPRESS
+ ),
)
@@ -575,9 +577,11 @@ class ArgumentParser(arghparse.ArgumentParser):
"--config",
action=_ConfigArg,
dest="config_path",
- help="use custom config or skip loading system config"
- if help
- else argparse.SUPPRESS,
+ help=(
+ "use custom config or skip loading system config"
+ if help
+ else argparse.SUPPRESS
+ ),
docs="""
The path to a custom pkgcore config file or portage
config directory can be given to override loading the