treefmt-check
default.checks.aarch64-darwin.treefmt
· build #43
· raw
1treefmt v2.5.0ERRO formatter | ruff-check[1]: failed to apply with options '[check --fix]': exit status 123CPY001 Missing copyright notice at top of file4--> buildbot_effects/buildbot_effects/__init__.py:1:156CPY001 Missing copyright notice at top of file7--> buildbot_effects/buildbot_effects/cli.py:1:189CPY001 Missing copyright notice at top of file10--> buildbot_effects/buildbot_effects/options.py:1:11112CPY001 Missing copyright notice at top of file13--> buildbot_effects/buildbot_effects/tests/__init__.py:1:11415CPY001 Missing copyright notice at top of file16--> buildbot_effects/buildbot_effects/tests/test_branch_rev.py:1:11718CPY001 Missing copyright notice at top of file19--> buildbot_effects/buildbot_effects/tests/test_cli.py:1:12021CPY001 Missing copyright notice at top of file22--> buildbot_effects/buildbot_effects/tests/test_e2e_flake_ref.py:1:12324ISC004 Unparenthesized implicit string concatenation in collection25 --> buildbot_effects/buildbot_effects/tests/test_e2e_flake_ref.py:72:1326 |2770 | sys.executable,2871 | "-c",2972 | / "import sys; sys.argv = ['buildbot-effects'] + sys.argv[1:]; "3073 | | "from buildbot_effects.cli import main; main()",31 | |___________________________________________________________^3274 | "list",3375 | flake_ref,34 |35help: Did you forget a comma?36help: Wrap implicitly concatenated strings in parentheses3738CPY001 Missing copyright notice at top of file39--> buildbot_effects/buildbot_effects/tests/test_flake_url.py:1:14041CPY001 Missing copyright notice at top of file42--> buildbot_nix/buildbot_nix/__init__.py:1:14344CPY001 Missing copyright notice at top of file45--> buildbot_nix/buildbot_nix/authz.py:1:14647CPY001 Missing copyright notice at top of file48--> buildbot_nix/buildbot_nix/build_canceller.py:1:14950CPY001 Missing copyright notice at top of file51--> buildbot_nix/buildbot_nix/build_trigger.py:1:15253CPY001 Missing copyright notice at top of file54--> buildbot_nix/buildbot_nix/buildbot_effects.py:1:15556CPY001 Missing copyright notice at top of file57--> buildbot_nix/buildbot_nix/common.py:1:15859CPY001 Missing copyright notice at top of file60--> buildbot_nix/buildbot_nix/db/__init__.py:1:16162CPY001 Missing copyright notice at top of file63--> buildbot_nix/buildbot_nix/db/failed_builds.py:1:16465CPY001 Missing copyright notice at top of file66--> buildbot_nix/buildbot_nix/db/failed_status.py:1:16768CPY001 Missing copyright notice at top of file69--> buildbot_nix/buildbot_nix/db_setup.py:1:17071CPY001 Missing copyright notice at top of file72--> buildbot_nix/buildbot_nix/errors.py:1:17374CPY001 Missing copyright notice at top of file75--> buildbot_nix/buildbot_nix/gitea_projects.py:1:17677CPY001 Missing copyright notice at top of file78--> buildbot_nix/buildbot_nix/github/__init__.py:1:17980CPY001 Missing copyright notice at top of file81--> buildbot_nix/buildbot_nix/github/installation_token.py:1:18283CPY001 Missing copyright notice at top of file84--> buildbot_nix/buildbot_nix/github/jwt_token.py:1:18586CPY001 Missing copyright notice at top of file87--> buildbot_nix/buildbot_nix/github/repo_token.py:1:18889CPY001 Missing copyright notice at top of file90--> buildbot_nix/buildbot_nix/github_projects.py:1:19192CPY001 Missing copyright notice at top of file93--> buildbot_nix/buildbot_nix/local_worker.py:1:19495CPY001 Missing copyright notice at top of file96--> buildbot_nix/buildbot_nix/models.py:1:19798CPY001 Missing copyright notice at top of file99--> buildbot_nix/buildbot_nix/nix_build.py:1:1100101CPY001 Missing copyright notice at top of file102--> buildbot_nix/buildbot_nix/nix_error.py:1:1103104CPY001 Missing copyright notice at top of file105--> buildbot_nix/buildbot_nix/nix_eval.py:1:1106107PLR0917 Too many positional arguments (6 > 5)108 --> buildbot_nix/buildbot_nix/nix_eval.py:815:5109 |110815 | def nix_eval_config( # noqa: PLR0913111 | ^^^^^^^^^^^^^^^112816 | project: GitProject,113817 | worker_names: list[str],114 |115116CPY001 Missing copyright notice at top of file117--> buildbot_nix/buildbot_nix/nix_gcroot.py:1:1118119CPY001 Missing copyright notice at top of file120--> buildbot_nix/buildbot_nix/nix_status_generator.py:1:1121122CPY001 Missing copyright notice at top of file123--> buildbot_nix/buildbot_nix/oauth2_proxy_auth.py:1:1124125CPY001 Missing copyright notice at top of file126--> buildbot_nix/buildbot_nix/oidc.py:1:1127128CPY001 Missing copyright notice at top of file129--> buildbot_nix/buildbot_nix/project_config.py:1:1130131CPY001 Missing copyright notice at top of file132--> buildbot_nix/buildbot_nix/projects.py:1:1133134CPY001 Missing copyright notice at top of file135--> buildbot_nix/buildbot_nix/pull_based/__init__.py:1:1136137CPY001 Missing copyright notice at top of file138--> buildbot_nix/buildbot_nix/pull_based/backend.py:1:1139140CPY001 Missing copyright notice at top of file141--> buildbot_nix/buildbot_nix/pull_based/null_reporter.py:1:1142143CPY001 Missing copyright notice at top of file144--> buildbot_nix/buildbot_nix/pull_based/project.py:1:1145146PLR0917 Too many positional arguments (8 > 5)147 --> buildbot_nix/buildbot_nix/pull_based/project.py:27:9148 |14925 | ssh_known_hosts: str | None15026 |15127 | def __init__( # noqa: PLR0913152 | ^^^^^^^^15328 | self,15429 | url: str,155 |156157CPY001 Missing copyright notice at top of file158--> buildbot_nix/buildbot_nix/repo_config/__init__.py:1:1159160CPY001 Missing copyright notice at top of file161--> buildbot_nix/buildbot_nix/scheduled.py:1:1162163CPY001 Missing copyright notice at top of file164--> buildbot_nix/buildbot_nix/tests/__init__.py:1:1165166CPY001 Missing copyright notice at top of file167--> buildbot_nix/buildbot_nix/tests/test_nix_eval_job.py:1:1168169CPY001 Missing copyright notice at top of file170--> buildbot_nix/buildbot_nix/tests/test_pydantic_models.py:1:1171172CPY001 Missing copyright notice at top of file173--> buildbot_nix/buildbot_nix/util.py:1:1174175CPY001 Missing copyright notice at top of file176--> buildbot_nix/buildbot_nix/worker.py:1:1177178C408 Unnecessary `dict()` call (rewrite as a literal)179 --> packages/master.cfg.py:218:25180 |181216 | )182217 |183218 | c = BuildmasterConfig = dict(184 | _________________________^185219 | | title="Hello World CI",186220 | | titleURL="https://buildbot.github.io/hello-world/",187221 | | buildbotURL=url,188222 | | configurators=[189223 | | NixConfigurator(buildbot_nix_config),190224 | | ],191225 | | protocols={"pb": {"port": "tcp:9989:interface=\\:\\:1"}},192226 | | www=dict(port=PORT, plugins=dict(), auth=util.UserPasswordAuth({"admin": "admin"})),193227 | | )194 | |_^195help: Rewrite as a literal196197C408 Unnecessary `dict()` call (rewrite as a literal)198 --> packages/master.cfg.py:226:9199 |200224 | ],201225 | protocols={"pb": {"port": "tcp:9989:interface=\\:\\:1"}},202226 | www=dict(port=PORT, plugins=dict(), auth=util.UserPasswordAuth({"admin": "admin"})),203 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^204227 | )205 |206help: Rewrite as a literal207208C408 Unnecessary `dict()` call (rewrite as a literal)209 --> packages/master.cfg.py:226:33210 |211224 | ],212225 | protocols={"pb": {"port": "tcp:9989:interface=\\:\\:1"}},213226 | www=dict(port=PORT, plugins=dict(), auth=util.UserPasswordAuth({"admin": "admin"})),214 | ^^^^^^215227 | )216 |217help: Rewrite as a literal218219Found 64 errors (11 fixed, 53 remaining).220No fixes available (4 hidden fixes can be enabled with the `--unsafe-fixes` option).221222traversed 98 files223emitted 90 files for processing224formatted 42 files (6 changed) in 84ms225Error: failed to finalise formatting: formatting failures detected