treefmt-check
default.checks.aarch64-darwin.formatting
· build #363
· raw
1treefmt v2.5.0ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 123CPY001 Missing copyright notice at top of file4--> darwinModules/app-store/declarative-app-store.py:1:156CPY001 Missing copyright notice at top of file7--> home-manager/modules/calendar-notify.py:1:189CPY001 Missing copyright notice at top of file10--> home-manager/modules/herdr/registry.py:1:11112CPY001 Missing copyright notice at top of file13--> home-manager/modules/neovim/nvim_open.py:1:11415CPY001 Missing copyright notice at top of file16--> home/.config/todoman/__init__.py:1:11718CPY001 Missing copyright notice at top of file19--> home/.config/todoman/config.py:1:12021CPY001 Missing copyright notice at top of file22--> home/.gemini/hooks/bell-notify.py:1:12324CPY001 Missing copyright notice at top of file25--> home/.weechat/python/herdr_notify.py:1:12627PLR0917 Too many positional arguments (8 > 5)28 --> home/.weechat/python/herdr_notify.py:59:529 |3059 | def message_cb(31 | ^^^^^^^^^^3260 | data: str,3361 | buffer: str,34 |3536CPY001 Missing copyright notice at top of file37--> machines/eva/modules/telegraf/http-sd-generate.py:1:13839CPY001 Missing copyright notice at top of file40--> machines/eve/modules/paperless-perms/paperless_perms/__init__.py:1:14142CPY001 Missing copyright notice at top of file43--> machines/eve/modules/paperless-perms/paperless_perms/apps.py:1:14445CPY001 Missing copyright notice at top of file46--> machines/eve/pkgs/sieve-flagged-forward/notify-flagged.py:1:14748CPY001 Missing copyright notice at top of file49--> machines/eve/pkgs/sieve-flagged-forward/test_notify_flagged.py:1:15051CPY001 Missing copyright notice at top of file52--> machines/turingmachine/modules/networkmanager/__init__.py:1:15354CPY001 Missing copyright notice at top of file55--> nixosModules/kde/__init__.py:1:15657CPY001 Missing copyright notice at top of file58--> nixosModules/kde/audio_chooser.py:1:15960CPY001 Missing copyright notice at top of file61--> pkgs/cewe-fotowelt/update.py:1:16263CPY001 Missing copyright notice at top of file64--> pkgs/crabfit-cli/crabfit_cli.py:1:16566CPY001 Missing copyright notice at top of file67--> pkgs/gh-radicle/gh_radicle.py:1:16869CPY001 Missing copyright notice at top of file70--> pkgs/kdeconnect/update.py:1:17172CPY001 Missing copyright notice at top of file73--> pkgs/librewolf-macos/update.py:1:17475SIM115 Use a context manager for opening files76 --> pkgs/live-text/live_text/main.py:30:1177 |7828 | def _tmp_png(stack: contextlib.ExitStack) -> Path:7929 | """Create a temporary PNG file that is deleted when the stack exits."""8030 | tmp = tempfile.NamedTemporaryFile(suffix=".png", prefix="live-text-", delete=False)81 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^8231 | tmp.close()8332 | path = Path(tmp.name)84 |8586SIM115 Use a context manager for opening files87 --> pkgs/live-text/live_text/overlay.py:1555:1588 |891553 | return901554 |911555 | tmp = tempfile.NamedTemporaryFile(92 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^931556 | suffix=".png", prefix="annotated-", delete=False941557 | )95 |9697DTZ005 `datetime.datetime.now()` called without a `tz` argument98 --> pkgs/live-text/live_text/overlay.py:1588:2199 |1001586 | save_dir = Path.home() / "Pictures" / "Screenshots"1011587 | save_dir.mkdir(parents=True, exist_ok=True)1021588 | timestamp = datetime.now().strftime("%Y-%m-%d-%H-%M-%S")103 | ^^^^^^^^^^^^^^1041589 | save_path = save_dir / f"screenshot-{timestamp}.png"1051590 | out.write_to_png(str(save_path))106 |107help: Pass a `datetime.timezone` object to the `tz` parameter108109SIM115 Use a context manager for opening files110 --> pkgs/live-text/live_text/screenshot.py:145:11111 |112143 | The caller is responsible for cleaning up the file.113144 | """114145 | tmp = tempfile.NamedTemporaryFile(suffix=".png", prefix="live-text-", delete=False)115 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^116146 | tmp.close()117147 | path = Path(tmp.name)118 |119120SIM117 Use a single `with` statement with multiple contexts instead of nested `with` statements121 --> pkgs/live-text/tests/test_overlay.py:86:9122 |12384 | return subprocess.CompletedProcess(cmd, 0)12485 |12586 | / with patch("live_text.overlay.subprocess.run", side_effect=fake_run):12687 | | # Suppress GLib.timeout_add (no GTK main loop in tests)12788 | | with patch("live_text.overlay.GLib.timeout_add"):128 | |_____________________________________________________________^12989 | overlay._drawing_area = MagicMock()13090 | overlay._copy_selected_text()131 |132help: Combine `with` statements133134SIM117 Use a single `with` statement with multiple contexts instead of nested `with` statements135 --> pkgs/live-text/tests/test_screenshot.py:259:9136 |137257 | raise subprocess.CalledProcessError(1, "grim")138258 |139259 | / with patch("live_text.screenshot.subprocess.run", side_effect=track_and_fail):140260 | | with pytest.raises(subprocess.CalledProcessError):141 | |______________________________________________________________^142261 | capture_full_screen()143 |144help: Combine `with` statements145146CPY001 Missing copyright notice at top of file147--> pkgs/macprof/macprof.py:1:1148149CPY001 Missing copyright notice at top of file150--> pkgs/minihydra/src/minihydra/__init__.py:1:1151152CPY001 Missing copyright notice at top of file153--> pkgs/minihydra/src/minihydra/build.py:1:1154155CPY001 Missing copyright notice at top of file156--> pkgs/minihydra/src/minihydra/cli.py:1:1157158CPY001 Missing copyright notice at top of file159--> pkgs/minihydra/src/minihydra/db.py:1:1160161CPY001 Missing copyright notice at top of file162--> pkgs/minihydra/src/minihydra/diff.py:1:1163164CPY001 Missing copyright notice at top of file165--> pkgs/minihydra/src/minihydra/eval.py:1:1166167CPY001 Missing copyright notice at top of file168--> pkgs/minihydra/src/minihydra/web.py:1:1169170CPY001 Missing copyright notice at top of file171--> pkgs/minihydra/tests/__init__.py:1:1172173CPY001 Missing copyright notice at top of file174--> pkgs/minihydra/tests/test_diff.py:1:1175176CPY001 Missing copyright notice at top of file177--> pkgs/minihydra/tests/test_web.py:1:1178179RUF012 Mutable default value for class attribute180 --> pkgs/n8n-hooks/tests/test_gitea.py:147:28181 |182146 | class _FakeWebhook(BaseHTTPRequestHandler):183147 | last: dict[str, Any] = {}184 | ^^185148 | reply: dict[str, Any] = {}186 |187help: Consider initializing in `__init__` or annotating with `typing.ClassVar`188189RUF012 Mutable default value for class attribute190 --> pkgs/n8n-hooks/tests/test_gitea.py:148:29191 |192146 | class _FakeWebhook(BaseHTTPRequestHandler):193147 | last: dict[str, Any] = {}194148 | reply: dict[str, Any] = {}195 | ^^196149 |197150 | def do_POST(self) -> None:198 |199help: Consider initializing in `__init__` or annotating with `typing.ClassVar`200201RUF012 Mutable default value for class attribute202 --> pkgs/n8n-hooks/tests/test_github.py:45:28203 |20444 | class _FakeWebhook(BaseHTTPRequestHandler):20545 | last: dict[str, Any] = {}206 | ^^20746 | reply: dict[str, Any] = {}208 |209help: Consider initializing in `__init__` or annotating with `typing.ClassVar`210211RUF012 Mutable default value for class attribute212 --> pkgs/n8n-hooks/tests/test_github.py:46:29213 |21444 | class _FakeWebhook(BaseHTTPRequestHandler):21545 | last: dict[str, Any] = {}21646 | reply: dict[str, Any] = {}217 | ^^21847 |21948 | def do_POST(self) -> None:220 |221help: Consider initializing in `__init__` or annotating with `typing.ClassVar`222223RUF012 Mutable default value for class attribute224 --> pkgs/n8n-hooks/tests/test_store_draft.py:71:36225 |22669 | """Captures the last POST body and replies 200."""22770 |22871 | last_payload: dict[str, Any] = {}229 | ^^23072 |23173 | def do_POST(self) -> None:232 |233help: Consider initializing in `__init__` or annotating with `typing.ClassVar`234235CPY001 Missing copyright notice at top of file236--> pkgs/nix-eval-warnings/src/nix_eval_warnings/__init__.py:1:1237238CPY001 Missing copyright notice at top of file239--> pkgs/nix-eval-warnings/tests/__init__.py:1:1240241CPY001 Missing copyright notice at top of file242--> pkgs/nix-eval-warnings/tests/test_nix_eval_warnings.py:1:1243244CPY001 Missing copyright notice at top of file245--> pkgs/pim/pim.py:1:1246247CPY001 Missing copyright notice at top of file248--> pkgs/radicle-desktop/update.py:1:1249250CPY001 Missing copyright notice at top of file251--> pkgs/radicle-github-sync/radicle_github_sync.py:1:1252253CPY001 Missing copyright notice at top of file254--> pkgs/updater/__init__.py:1:1255256CPY001 Missing copyright notice at top of file257--> pkgs/updater/__main__.py:1:1258259CPY001 Missing copyright notice at top of file260--> tasks.py:1:1261262Found 53 errors.263264ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 1265266CPY001 Missing copyright notice at top of file267--> nixosModules/niri/kwallet-tpm/kwallet-tpm-unlock.py:1:1268269Found 1 error.270271ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 1272273CPY001 Missing copyright notice at top of file274--> openwrt/nix_uci/__init__.py:1:1275276Found 1 error.277278ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 1279280CPY001 Missing copyright notice at top of file281--> pkgs/claude-md/claude_md.py:1:1282283Found 1 error.284285ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 1286287CPY001 Missing copyright notice at top of file288--> machines/eva/modules/prometheus/irc-alerts.py:1:1289290Found 1 error.291292ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 1293294CPY001 Missing copyright notice at top of file295--> pkgs/systemctl/systemctl.py:1:1296297Found 1 error.298299ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 1300301CPY001 Missing copyright notice at top of file302--> pkgs/merge-when-green/merge-when-green.py:1:1303304Found 1 error.305306ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 1307308CPY001 Missing copyright notice at top of file309--> pkgs/rbw_pinentry/src/rbw_pinentry/__init__.py:1:1310311CPY001 Missing copyright notice at top of file312--> pkgs/rbw_pinentry/src/rbw_pinentry/cli.py:1:1313314CPY001 Missing copyright notice at top of file315--> pkgs/rbw_pinentry/src/rbw_pinentry/pinentry.py:1:1316317Found 3 errors.318319ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 1320321CPY001 Missing copyright notice at top of file322--> pkgs/calendar_bot/__init__.py:1:1323324CPY001 Missing copyright notice at top of file325--> pkgs/calendar_bot/calendar_bot.py:1:1326327Found 2 errors.328329traversed 1211 files330emitted 527 files for processing331formatted 450 files (2 changed) in 8.583s332Error: failed to finalise formatting: formatting failures detected