kmap-cli-0.1.0
default.checks.x86_64-linux.package-kmap-cli
· build #39
· raw
1Sourcing python-remove-tests-dir-hook2Sourcing python-catch-conflicts-hook.sh3Sourcing python-remove-bin-bytecode-hook.sh4Sourcing pypa-build-hook5Using pypaBuildPhase6Sourcing python-runtime-deps-check-hook7Using pythonRuntimeDepsCheckHook8Sourcing pypa-install-hook9Using pypaInstallPhase10Sourcing python-imports-check-hook.sh11Using pythonImportsCheckPhase12Sourcing python-namespaces-hook13Sourcing python-catch-conflicts-hook.sh14Sourcing pytest-check-hook
unpackPhase
15unpacking source archive /nix/store/552jmv68yc0sddhfj1kl99z1pi8whxm0-kmap-cli16source root is kmap-cli17setting SOURCE_DATE_EPOCH to timestamp 315619200 of file "kmap-cli/tests/test_kmap_cli.py"configurePhase
18no configure script, doing nothingbuildPhase
19Executing pypaBuildPhase20Creating a wheel...21pypa build flags: --no-isolation --outdir dist/ --wheel22* Getting build dependencies for wheel...23* Building wheel...24Successfully built kmap_cli-0.1.0-py3-none-any.whl25Finished creating a wheel...26Finished executing pypaBuildPhasepythonRuntimeDepsCheckHook
27Executing pythonRuntimeDepsCheck28Checking runtime dependencies for kmap_cli-0.1.0-py3-none-any.whl29Finished executing pythonRuntimeDepsCheckinstallPhase
30Executing pypaInstallPhase31Successfully installed kmap_cli-0.1.0-py3-none-any.whl32Finished executing pypaInstallPhasepythonOutputDistPhase
33Executing pythonOutputDistPhase34Finished executing pythonOutputDistPhasefixupPhase
35shrinking RPATHs of ELF executables and libraries in /nix/store/6y6ri38j7mzsnz1iqk96nsijn6cj7gl1-kmap-cli-0.1.036checking for references to /build/ in /nix/store/6y6ri38j7mzsnz1iqk96nsijn6cj7gl1-kmap-cli-0.1.0...37patching script interpreter paths in /nix/store/6y6ri38j7mzsnz1iqk96nsijn6cj7gl1-kmap-cli-0.1.038stripping (with command strip and flags -S -p) in /nix/store/6y6ri38j7mzsnz1iqk96nsijn6cj7gl1-kmap-cli-0.1.0/lib /nix/store/6y6ri38j7mzsnz1iqk96nsijn6cj7gl1-kmap-cli-0.1.0/bin39shrinking RPATHs of ELF executables and libraries in /nix/store/gv6skaqssd24qvdkaaynfd2rz1dzszzg-kmap-cli-0.1.0-dist40checking for references to /build/ in /nix/store/gv6skaqssd24qvdkaaynfd2rz1dzszzg-kmap-cli-0.1.0-dist...41patching script interpreter paths in /nix/store/gv6skaqssd24qvdkaaynfd2rz1dzszzg-kmap-cli-0.1.0-dist42Rewriting #!/nix/store/gxzhl7aaiid7zp3y47jqqiq7zg5mqpwp-python3-3.14.6/bin/python3.14 to #!/nix/store/gxzhl7aaiid7zp3y47jqqiq7zg5mqpwp-python3-3.14.643wrapping `/nix/store/6y6ri38j7mzsnz1iqk96nsijn6cj7gl1-kmap-cli-0.1.0/bin/kmap-cli'...44Executing pythonRemoveTestsDir45Finished executing pythonRemoveTestsDirinstallCheckPhase
46EXE001 Shebang is present but file is not executable47 --> kmap_cli.py:1:148 |491 | #!/usr/bin/env python350 | ^^^^^^^^^^^^^^^^^^^^^^512 | # Copyright (c) 2026 Seungwon Lee523 | # SPDX-License-Identifier: MIT53 |5455UP022 Prefer `capture_output` over sending `stdout` and `stderr` to `PIPE`56 --> kmap_cli.py:151:1857 |58149 | return None59150 | try:60151 | result = subprocess.run(61 | __________________^62152 | | args,63153 | | check=True,64154 | | stdout=subprocess.PIPE,65155 | | stderr=subprocess.PIPE,66156 | | text=True,67157 | | timeout=10,68158 | | )69 | |_________^70159 | except (subprocess.SubprocessError, OSError) as error:71160 | raise ConfigError(f"secret command failed: {error}") from error72 |73help: Replace with `capture_output` keyword argument7475RUF100 [*] Unused `noqa` directive (non-enabled: `S310`)76 --> kmap_cli.py:437:9177 |78435 | headers["Content-Type"] = "application/json"79436 | data = json.dumps(body).encode("utf-8")80437 | request = urllib.request.Request(url, data=data, headers=headers, method=method) # noqa: S31081 | ^^^^^^^^^^^^82438 | try:83439 | with urllib.request.urlopen(request, timeout=15) as response: # noqa: S31084 |85help: Remove unused `noqa` directive86 |87436 | data = json.dumps(body).encode("utf-8")88 - request = urllib.request.Request(url, data=data, headers=headers, method=method) # noqa: S31089437 + request = urllib.request.Request(url, data=data, headers=headers, method=method)90438 | try:91 |9293RUF100 [*] Unused `noqa` directive (non-enabled: `S310`)94 --> kmap_cli.py:439:7695 |96437 | request = urllib.request.Request(url, data=data, headers=headers, method=method) # noqa: S31097438 | try:98439 | with urllib.request.urlopen(request, timeout=15) as response: # noqa: S31099 | ^^^^^^^^^^^^100440 | parsed = json.loads(response.read().decode("utf-8"))101441 | except urllib.error.HTTPError as error:102 |103help: Remove unused `noqa` directive104 |105438 | try:106 - with urllib.request.urlopen(request, timeout=15) as response: # noqa: S310107439 + with urllib.request.urlopen(request, timeout=15) as response:108440 | parsed = json.loads(response.read().decode("utf-8"))109 |110111PYI041 [*] Use `float` instead of `int | float`112 --> kmap_cli.py:713:29113 |114713 | def format_distance(meters: int | float) -> str:115 | ^^^^^^^^^^^116714 | if meters < 1000:117715 | return f"{meters:.0f} m"118 |119help: Remove redundant type120 |121712 |122 - def format_distance(meters: int | float) -> str:123713 + def format_distance(meters: float) -> str:124714 | if meters < 1000:125 |126127RUF007 Prefer `itertools.pairwise()` over `zip()` when iterating over successive pairs128 --> kmap_cli.py:886:32129 |130884 | segments: list[dict[str, object]] = []131885 | has_routes = False132886 | for origin, destination in zip(places, places[1:]):133 | ^^^134887 | routes = client.transit_routes(135888 | Point(origin.x, origin.y),136 |137help: Replace `zip()` with `itertools.pairwise()`138139Found 6 errors.140[*] 3 fixable with the `--fix` option (2 hidden fixes can be enabled with the `--unsafe-fixes` option).