kmap-cli-0.1.0
default.checks.x86_64-linux.package-kmap-cli
· build #37
· 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/y83a928i2fyhkr2j8p00i9j1isb7qdj5-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/h9lfn159gd9alrqzbg06bfl4df912am9-kmap-cli-0.1.036checking for references to /build/ in /nix/store/h9lfn159gd9alrqzbg06bfl4df912am9-kmap-cli-0.1.0...37patching script interpreter paths in /nix/store/h9lfn159gd9alrqzbg06bfl4df912am9-kmap-cli-0.1.038stripping (with command strip and flags -S -p) in /nix/store/h9lfn159gd9alrqzbg06bfl4df912am9-kmap-cli-0.1.0/lib /nix/store/h9lfn159gd9alrqzbg06bfl4df912am9-kmap-cli-0.1.0/bin39shrinking RPATHs of ELF executables and libraries in /nix/store/ajhfb67zfzd49q5qiawp75rxijnqjz96-kmap-cli-0.1.0-dist40checking for references to /build/ in /nix/store/ajhfb67zfzd49q5qiawp75rxijnqjz96-kmap-cli-0.1.0-dist...41patching script interpreter paths in /nix/store/ajhfb67zfzd49q5qiawp75rxijnqjz96-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/h9lfn159gd9alrqzbg06bfl4df912am9-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 | from __future__ import annotations52 |5354UP022 Prefer `capture_output` over sending `stdout` and `stderr` to `PIPE`55 --> kmap_cli.py:149:1856 |57147 | return None58148 | try:59149 | result = subprocess.run(60 | __________________^61150 | | args,62151 | | check=True,63152 | | stdout=subprocess.PIPE,64153 | | stderr=subprocess.PIPE,65154 | | text=True,66155 | | timeout=10,67156 | | )68 | |_________^69157 | except (subprocess.SubprocessError, OSError) as error:70158 | raise ConfigError(f"secret command failed: {error}") from error71 |72help: Replace with `capture_output` keyword argument7374RUF100 [*] Unused `noqa` directive (non-enabled: `S310`)75 --> kmap_cli.py:435:9176 |77433 | headers["Content-Type"] = "application/json"78434 | data = json.dumps(body).encode("utf-8")79435 | request = urllib.request.Request(url, data=data, headers=headers, method=method) # noqa: S31080 | ^^^^^^^^^^^^81436 | try:82437 | with urllib.request.urlopen(request, timeout=15) as response: # noqa: S31083 |84help: Remove unused `noqa` directive85 |86434 | data = json.dumps(body).encode("utf-8")87 - request = urllib.request.Request(url, data=data, headers=headers, method=method) # noqa: S31088435 + request = urllib.request.Request(url, data=data, headers=headers, method=method)89436 | try:90 |9192RUF100 [*] Unused `noqa` directive (non-enabled: `S310`)93 --> kmap_cli.py:437:7694 |95435 | request = urllib.request.Request(url, data=data, headers=headers, method=method) # noqa: S31096436 | try:97437 | with urllib.request.urlopen(request, timeout=15) as response: # noqa: S31098 | ^^^^^^^^^^^^99438 | parsed = json.loads(response.read().decode("utf-8"))100439 | except urllib.error.HTTPError as error:101 |102help: Remove unused `noqa` directive103 |104436 | try:105 - with urllib.request.urlopen(request, timeout=15) as response: # noqa: S310106437 + with urllib.request.urlopen(request, timeout=15) as response:107438 | parsed = json.loads(response.read().decode("utf-8"))108 |109110PYI041 [*] Use `float` instead of `int | float`111 --> kmap_cli.py:711:29112 |113711 | def format_distance(meters: int | float) -> str:114 | ^^^^^^^^^^^115712 | if meters < 1000:116713 | return f"{meters:.0f} m"117 |118help: Remove redundant type119 |120710 |121 - def format_distance(meters: int | float) -> str:122711 + def format_distance(meters: float) -> str:123712 | if meters < 1000:124 |125126RUF007 Prefer `itertools.pairwise()` over `zip()` when iterating over successive pairs127 --> kmap_cli.py:884:32128 |129882 | segments: list[dict[str, object]] = []130883 | has_routes = False131884 | for origin, destination in zip(places, places[1:]):132 | ^^^133885 | routes = client.transit_routes(134886 | Point(origin.x, origin.y),135 |136help: Replace `zip()` with `itertools.pairwise()`137138Found 6 errors.139[*] 3 fixable with the `--fix` option (2 hidden fixes can be enabled with the `--unsafe-fixes` option).