Skip to content

Commit

Permalink
Merge pull request #43 from digitronik/pre-commmit
Browse files Browse the repository at this point in the history
pre-commit updates
  • Loading branch information
digitronik authored Nov 16, 2023
2 parents ead7dd9 + d010106 commit b42f088
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@ repos:
verbose: true
- id: check-yaml
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.9.0
rev: v3.12.0
hooks:
- id: reorder-python-imports
name: Reorder Python Imports
language_version: python3
- repo: https://github.com/psf/black
rev: 23.1.0
rev: 23.11.0
hooks:
- id: black
name: Formate with Black
args: [--safe, --quiet, --line-length, "100"]
args: [--safe, --quiet, --line-length, "80"]
language_version: python3
require_serial: true
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
rev: v3.15.0
hooks:
- id: pyupgrade
name: Python Package Checks
Expand Down
20 changes: 15 additions & 5 deletions miqsel/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,26 @@ def config(reset):
cfg["engine"] = click.prompt(
"Container Engine", type=click.Choice(clients), default=cfg["engine"]
)
cfg["image"] = click.prompt("Selenium container image", default=cfg["image"])
cfg["image"] = click.prompt(
"Selenium container image", default=cfg["image"]
)
viewers = ["auto"] + VNC_VIEWERS
cfg["viewer"] = click.prompt("VNC viewer", type=click.Choice(viewers), default=cfg["viewer"])
cfg["viewer"] = click.prompt(
"VNC viewer", type=click.Choice(viewers), default=cfg["viewer"]
)
cfg["server_port"] = click.prompt(
"Selenium server running on port?", default=cfg["server_port"]
)
cfg["vnc_port"] = click.prompt("VNC running on port?", default=cfg["vnc_port"])
cfg["vnc_port"] = click.prompt(
"VNC running on port?", default=cfg["vnc_port"]
)
cfg["name"] = click.prompt("Selenium container name", default=cfg["name"])
cfg["network"] = click.prompt("Selenium container network", default=cfg["network"])
cfg["shm_size"] = click.prompt("Selenium container shared Memory", default=cfg["shm_size"])
cfg["network"] = click.prompt(
"Selenium container network", default=cfg["network"]
)
cfg["shm_size"] = click.prompt(
"Selenium container shared Memory", default=cfg["shm_size"]
)
cfg["data_dir"] = click.prompt(
"Testing data mount to directory '/data'", default=cfg["data_dir"]
)
Expand Down
7 changes: 5 additions & 2 deletions miqsel/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ def client(self):
_client = next(c for c in CONTAINER_ENGINES if shutil.which(c))
except StopIteration:
click.echo(
f"No container engine found on machine. Install one of {CONTAINER_ENGINES}"
f"No container engine found on machine. "
f"Install one of {CONTAINER_ENGINES}"
)
if shutil.which(_client):
return _client
Expand Down Expand Up @@ -191,7 +192,9 @@ def vnc():


@click.command("viewer", help="VNC viewer")
@click.option("-u", "--url", default=None, help="Server url with port <hostname:port>")
@click.option(
"-u", "--url", default=None, help="Server url with port <hostname:port>"
)
def viewer_cmd(url):
"""vnc viewer command
Expand Down

0 comments on commit b42f088

Please sign in to comment.