treefmt-check
checks.aarch64-darwin.treefmt
· build #77
· raw
1tribuchet: building on mac022treefmt v2.6.0ERRO formatter | ruff-check[1]: failed to apply with options '[check --fix buildbot_effects/buildbot_effects/__init__.py buildbot_effects/buildbot_effects/cli.py buildbot_effects/buildbot_effects/options.py buildbot_effects/buildbot_effects/tests/__init__.py buildbot_effects/buildbot_effects/tests/test_branch_rev.py buildbot_effects/buildbot_effects/tests/test_cli.py buildbot_effects/buildbot_effects/tests/test_e2e_flake_ref.py buildbot_effects/buildbot_effects/tests/test_flake_url.py buildbot_nix/buildbot_nix/__init__.py buildbot_nix/buildbot_nix/authz.py buildbot_nix/buildbot_nix/build_canceller.py buildbot_nix/buildbot_nix/build_trigger.py buildbot_nix/buildbot_nix/buildbot_effects.py buildbot_nix/buildbot_nix/common.py buildbot_nix/buildbot_nix/db/__init__.py buildbot_nix/buildbot_nix/db/failed_builds.py buildbot_nix/buildbot_nix/db/failed_status.py buildbot_nix/buildbot_nix/db_setup.py buildbot_nix/buildbot_nix/errors.py buildbot_nix/buildbot_nix/gitea_projects.py buildbot_nix/buildbot_nix/github/__init__.py buildbot_nix/buildbot_nix/github/installation_token.py buildbot_nix/buildbot_nix/github/jwt_token.py buildbot_nix/buildbot_nix/github/repo_token.py buildbot_nix/buildbot_nix/github_projects.py buildbot_nix/buildbot_nix/local_worker.py buildbot_nix/buildbot_nix/models.py buildbot_nix/buildbot_nix/nix_build.py buildbot_nix/buildbot_nix/nix_error.py buildbot_nix/buildbot_nix/nix_eval.py buildbot_nix/buildbot_nix/nix_gcroot.py buildbot_nix/buildbot_nix/nix_status_generator.py buildbot_nix/buildbot_nix/oauth2_proxy_auth.py buildbot_nix/buildbot_nix/oidc.py buildbot_nix/buildbot_nix/project_config.py buildbot_nix/buildbot_nix/projects.py buildbot_nix/buildbot_nix/pull_based/__init__.py buildbot_nix/buildbot_nix/pull_based/backend.py buildbot_nix/buildbot_nix/pull_based/null_reporter.py buildbot_nix/buildbot_nix/pull_based/project.py buildbot_nix/buildbot_nix/repo_config/__init__.py buildbot_nix/buildbot_nix/scheduled.py buildbot_nix/buildbot_nix/tests/__init__.py buildbot_nix/buildbot_nix/tests/test_nix_eval_job.py buildbot_nix/buildbot_nix/tests/test_pydantic_models.py buildbot_nix/buildbot_nix/util.py buildbot_nix/buildbot_nix/worker.py packages/master.cfg.py]': exit status 134CPY001 Missing copyright notice at top of file5--> buildbot_effects/buildbot_effects/__init__.py:1:167CPY001 Missing copyright notice at top of file8--> buildbot_effects/buildbot_effects/cli.py:1:1910CPY001 Missing copyright notice at top of file11--> buildbot_effects/buildbot_effects/options.py:1:11213CPY001 Missing copyright notice at top of file14--> buildbot_effects/buildbot_effects/tests/__init__.py:1:11516CPY001 Missing copyright notice at top of file17--> buildbot_effects/buildbot_effects/tests/test_branch_rev.py:1:11819CPY001 Missing copyright notice at top of file20--> buildbot_effects/buildbot_effects/tests/test_cli.py:1:12122CPY001 Missing copyright notice at top of file23--> buildbot_effects/buildbot_effects/tests/test_e2e_flake_ref.py:1:12425ISC004 Unparenthesized implicit string concatenation in collection26 --> buildbot_effects/buildbot_effects/tests/test_e2e_flake_ref.py:72:1327 |2870 | sys.executable,2971 | "-c",3072 | / "import sys; sys.argv = ['buildbot-effects'] + sys.argv[1:]; "3173 | | "from buildbot_effects.cli import main; main()",32 | |___________________________________________________________^3374 | "list",3475 | flake_ref,35 |36help: Did you forget a comma?37help: Wrap implicitly concatenated strings in parentheses38 |3971 | "-c",40 - "import sys; sys.argv = ['buildbot-effects'] + sys.argv[1:]; "41 - "from buildbot_effects.cli import main; main()",4272 + ("import sys; sys.argv = ['buildbot-effects'] + sys.argv[1:]; "4373 + "from buildbot_effects.cli import main; main()"),4474 | "list",45 |46note: This is an unsafe fix and may change runtime behavior4748CPY001 Missing copyright notice at top of file49--> buildbot_effects/buildbot_effects/tests/test_flake_url.py:1:15051CPY001 Missing copyright notice at top of file52--> buildbot_nix/buildbot_nix/__init__.py:1:15354CPY001 Missing copyright notice at top of file55--> buildbot_nix/buildbot_nix/authz.py:1:15657CPY001 Missing copyright notice at top of file58--> buildbot_nix/buildbot_nix/build_canceller.py:1:15960CPY001 Missing copyright notice at top of file61--> buildbot_nix/buildbot_nix/build_trigger.py:1:16263CPY001 Missing copyright notice at top of file64--> buildbot_nix/buildbot_nix/buildbot_effects.py:1:16566CPY001 Missing copyright notice at top of file67--> buildbot_nix/buildbot_nix/common.py:1:16869CPY001 Missing copyright notice at top of file70--> buildbot_nix/buildbot_nix/db/__init__.py:1:17172CPY001 Missing copyright notice at top of file73--> buildbot_nix/buildbot_nix/db/failed_builds.py:1:17475CPY001 Missing copyright notice at top of file76--> buildbot_nix/buildbot_nix/db/failed_status.py:1:17778CPY001 Missing copyright notice at top of file79--> buildbot_nix/buildbot_nix/db_setup.py:1:18081CPY001 Missing copyright notice at top of file82--> buildbot_nix/buildbot_nix/errors.py:1:18384CPY001 Missing copyright notice at top of file85--> buildbot_nix/buildbot_nix/gitea_projects.py:1:18687CPY001 Missing copyright notice at top of file88--> buildbot_nix/buildbot_nix/github/__init__.py:1:18990CPY001 Missing copyright notice at top of file91--> buildbot_nix/buildbot_nix/github/installation_token.py:1:19293CPY001 Missing copyright notice at top of file94--> buildbot_nix/buildbot_nix/github/jwt_token.py:1:19596CPY001 Missing copyright notice at top of file97--> buildbot_nix/buildbot_nix/github/repo_token.py:1:19899CPY001 Missing copyright notice at top of file100--> buildbot_nix/buildbot_nix/github_projects.py:1:1101102CPY001 Missing copyright notice at top of file103--> buildbot_nix/buildbot_nix/local_worker.py:1:1104105CPY001 Missing copyright notice at top of file106--> buildbot_nix/buildbot_nix/models.py:1:1107108CPY001 Missing copyright notice at top of file109--> buildbot_nix/buildbot_nix/nix_build.py:1:1110111CPY001 Missing copyright notice at top of file112--> buildbot_nix/buildbot_nix/nix_error.py:1:1113114CPY001 Missing copyright notice at top of file115--> buildbot_nix/buildbot_nix/nix_eval.py:1:1116117PLR0917 Too many positional arguments (6 > 5)118 --> buildbot_nix/buildbot_nix/nix_eval.py:815:5119 |120815 | def nix_eval_config( # noqa: PLR0913121 | ^^^^^^^^^^^^^^^122816 | project: GitProject,123817 | worker_names: list[str],124 |125126CPY001 Missing copyright notice at top of file127--> buildbot_nix/buildbot_nix/nix_gcroot.py:1:1128129CPY001 Missing copyright notice at top of file130--> buildbot_nix/buildbot_nix/nix_status_generator.py:1:1131132CPY001 Missing copyright notice at top of file133--> buildbot_nix/buildbot_nix/oauth2_proxy_auth.py:1:1134135CPY001 Missing copyright notice at top of file136--> buildbot_nix/buildbot_nix/oidc.py:1:1137138CPY001 Missing copyright notice at top of file139--> buildbot_nix/buildbot_nix/project_config.py:1:1140141CPY001 Missing copyright notice at top of file142--> buildbot_nix/buildbot_nix/projects.py:1:1143144CPY001 Missing copyright notice at top of file145--> buildbot_nix/buildbot_nix/pull_based/__init__.py:1:1146147CPY001 Missing copyright notice at top of file148--> buildbot_nix/buildbot_nix/pull_based/backend.py:1:1149150CPY001 Missing copyright notice at top of file151--> buildbot_nix/buildbot_nix/pull_based/null_reporter.py:1:1152153CPY001 Missing copyright notice at top of file154--> buildbot_nix/buildbot_nix/pull_based/project.py:1:1155156PLR0917 Too many positional arguments (8 > 5)157 --> buildbot_nix/buildbot_nix/pull_based/project.py:27:9158 |15925 | ssh_known_hosts: str | None16026 |16127 | def __init__( # noqa: PLR0913162 | ^^^^^^^^16328 | self,16429 | url: str,165 |166167CPY001 Missing copyright notice at top of file168--> buildbot_nix/buildbot_nix/repo_config/__init__.py:1:1169170CPY001 Missing copyright notice at top of file171--> buildbot_nix/buildbot_nix/scheduled.py:1:1172173CPY001 Missing copyright notice at top of file174--> buildbot_nix/buildbot_nix/tests/__init__.py:1:1175176CPY001 Missing copyright notice at top of file177--> buildbot_nix/buildbot_nix/tests/test_nix_eval_job.py:1:1178179CPY001 Missing copyright notice at top of file180--> buildbot_nix/buildbot_nix/tests/test_pydantic_models.py:1:1181182CPY001 Missing copyright notice at top of file183--> buildbot_nix/buildbot_nix/util.py:1:1184185CPY001 Missing copyright notice at top of file186--> buildbot_nix/buildbot_nix/worker.py:1:1187188C408 Unnecessary `dict()` call (rewrite as a literal)189 --> packages/master.cfg.py:218:25190 |191216 | )192217 |193218 | c = BuildmasterConfig = dict(194 | _________________________^195219 | | title="Hello World CI",196220 | | titleURL="https://buildbot.github.io/hello-world/",197221 | | buildbotURL=url,198222 | | configurators=[199223 | | NixConfigurator(buildbot_nix_config),200224 | | ],201225 | | protocols={"pb": {"port": "tcp:9989:interface=\\:\\:1"}},202226 | | www=dict(port=PORT, plugins=dict(), auth=util.UserPasswordAuth({"admin": "admin"})),203227 | | )204 | |_^205help: Rewrite as a literal206 |207217 |208 - c = BuildmasterConfig = dict(209 - title="Hello World CI",210 - titleURL="https://buildbot.github.io/hello-world/",211 - buildbotURL=url,212 - configurators=[213218 + c = BuildmasterConfig = {214219 + "title": "Hello World CI",215220 + "titleURL": "https://buildbot.github.io/hello-world/",216221 + "buildbotURL": url,217222 + "configurators": [218223 | NixConfigurator(buildbot_nix_config),219224 | ],220 - protocols={"pb": {"port": "tcp:9989:interface=\\:\\:1"}},221 - www=dict(port=PORT, plugins=dict(), auth=util.UserPasswordAuth({"admin": "admin"})),222 - )223225 + "protocols": {"pb": {"port": "tcp:9989:interface=\\:\\:1"}},224226 + "www": dict(port=PORT, plugins=dict(), auth=util.UserPasswordAuth({"admin": "admin"})),225227 + }226 |227note: This is an unsafe fix and may change runtime behavior228229C408 Unnecessary `dict()` call (rewrite as a literal)230 --> packages/master.cfg.py:226:9231 |232224 | ],233225 | protocols={"pb": {"port": "tcp:9989:interface=\\:\\:1"}},234226 | www=dict(port=PORT, plugins=dict(), auth=util.UserPasswordAuth({"admin": "admin"})),235 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^236227 | )237 |238help: Rewrite as a literal239 |240225 | protocols={"pb": {"port": "tcp:9989:interface=\\:\\:1"}},241 - www=dict(port=PORT, plugins=dict(), auth=util.UserPasswordAuth({"admin": "admin"})),242226 + www={"port": PORT, "plugins": dict(), "auth": util.UserPasswordAuth({"admin": "admin"})},243227 | )244 |245note: This is an unsafe fix and may change runtime behavior246247C408 Unnecessary `dict()` call (rewrite as a literal)248 --> packages/master.cfg.py:226:33249 |250224 | ],251225 | protocols={"pb": {"port": "tcp:9989:interface=\\:\\:1"}},252226 | www=dict(port=PORT, plugins=dict(), auth=util.UserPasswordAuth({"admin": "admin"})),253 | ^^^^^^254227 | )255 |256help: Rewrite as a literal257 |258225 | protocols={"pb": {"port": "tcp:9989:interface=\\:\\:1"}},259 - www=dict(port=PORT, plugins=dict(), auth=util.UserPasswordAuth({"admin": "admin"})),260226 + www=dict(port=PORT, plugins={}, auth=util.UserPasswordAuth({"admin": "admin"})),261227 | )262 |263note: This is an unsafe fix and may change runtime behavior264265Found 64 errors (11 fixed, 53 remaining).2664 unsafe fixes available with `--fix --unsafe-fixes`.267268traversed 98 files269emitted 90 files for processing270formatted 42 files (6 changed) in 2.832s271Error: failed to finalise formatting: formatting failures detected