diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index dca5aa5..c247257 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -15,6 +15,7 @@ RUN dnf install -y \ koji-utils \ lsof \ make \ + openssl \ podman \ postgresql \ pylint \ diff --git a/.pylintrc b/.pylintrc deleted file mode 100644 index 12488cf..0000000 --- a/.pylintrc +++ /dev/null @@ -1,3 +0,0 @@ -[MASTER] -disable=missing-docstring,too-few-public-methods,invalid-name,duplicate-code,superfluous-parens,too-many-locals,attribute-defined-outside-init,too-many-arguments -max-line-length=120 diff --git a/plugins/builder/osbuild.py b/plugins/builder/osbuild.py index dd0c81a..acd286e 100644 --- a/plugins/builder/osbuild.py +++ b/plugins/builder/osbuild.py @@ -46,6 +46,7 @@ # koji API. It is based on the corresponding OpenAPI specification # version '1' and should model it closely. + class Repository: def __init__(self, baseurl: str, gpgkey: str = None): self.baseurl = baseurl @@ -547,9 +548,9 @@ def main(): subpar = sp.add_parser("compose", help='create a new compose') subpar.add_argument("name", metavar="NAME", help='The name') - subpar.add_argument("version", metavar="NAME", help='The version') + subpar.add_argument("version", metavar="VERSION", help='The version') subpar.add_argument("release", metavar="RELEASE", help='The release') - subpar.add_argument("distro", metavar="NAME", help='The distribution') + subpar.add_argument("distro", metavar="DISTRO", help='The distribution') subpar.add_argument("repo", metavar="REPO", help='The repository to use', type=str, action="append", default=[]) subpar.add_argument("arch", metavar="ARCHITECTURE", help='Request the architecture', diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..e447610 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,9 @@ +[pylint.MASTER] +disable=missing-docstring,too-few-public-methods,invalid-name,duplicate-code,superfluous-parens,too-many-locals,attribute-defined-outside-init,too-many-arguments,consider-using-with,consider-using-from-import + +[pylint.DESIGN] +max-attributes=10 +max-statements=75 + +[pycodestyle] +max-line-length = 120