Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix command line argument names #70

Merged
merged 4 commits into from
Jan 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ RUN dnf install -y \
koji-utils \
lsof \
make \
openssl \
podman \
postgresql \
pylint \
Expand Down
3 changes: 0 additions & 3 deletions .pylintrc

This file was deleted.

5 changes: 3 additions & 2 deletions plugins/builder/osbuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand Down
9 changes: 9 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -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