nixbot

builds

failed treefmt-check x86_64-linux.formatting · build #113 · 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--> packages/ecbx/tests/__init__.py:1:156CPY001 Missing copyright notice at top of file7--> packages/ecbx/tests/conftest.py:1:189CPY001 Missing copyright notice at top of file10--> packages/ecbx/tests/test_cli.py:1:11112CPY001 Missing copyright notice at top of file13--> packages/ecbx/tests/test_exchange_rate_store.py:1:11415CPY001 Missing copyright notice at top of file16--> packages/ecbx/tests/test_utils.py:1:11718CPY001 Missing copyright notice at top of file19--> packages/harvest-invoicer/tests/__init__.py:1:12021CPY001 Missing copyright notice at top of file22--> packages/harvest-invoicer/tests/e2e_demo.py:1:12324CPY001 Missing copyright notice at top of file25--> packages/harvest-invoicer/tests/test_app.py:1:12627CPY001 Missing copyright notice at top of file28--> packages/harvest-invoicer/tests/test_cli.py:1:12930CPY001 Missing copyright notice at top of file31--> packages/harvest-invoicer/tests/test_config.py:1:13233CPY001 Missing copyright notice at top of file34--> packages/harvest-invoicer/tests/test_db.py:1:13536CPY001 Missing copyright notice at top of file37--> packages/harvest-invoicer/tests/test_fetch.py:1:13839CPY001 Missing copyright notice at top of file40--> packages/harvest-invoicer/tests/test_i18n.py:1:14142CPY001 Missing copyright notice at top of file43--> packages/harvest-invoicer/tests/test_mail.py:1:14445CPY001 Missing copyright notice at top of file46--> packages/harvest-invoicer/tests/test_model.py:1:14748CPY001 Missing copyright notice at top of file49--> packages/harvest-invoicer/tests/test_render.py:1:15051CPY001 Missing copyright notice at top of file52--> packages/harvest-invoicer/tests/test_rest_retry.py:1:15354Found 17 errors.5556ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 15758CPY001 Missing copyright notice at top of file59--> packages/working-days-calculator/src/working_days_calculator/__init__.py:1:16061Found 1 error.6263ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 16465CPY001 Missing copyright notice at top of file66--> packages/transferwise/src/transferwise/__init__.py:1:16768Found 1 error.6970ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 17172CPY001 Missing copyright notice at top of file73--> packages/sevdesk-api/src/sevdesk_api/__init__.py:1:17475CPY001 Missing copyright notice at top of file76--> packages/sevdesk-api/src/sevdesk_api/accounting_types.py:1:17778CPY001 Missing copyright notice at top of file79--> packages/sevdesk-api/src/sevdesk_api/api.py:1:18081CPY001 Missing copyright notice at top of file82--> packages/sevdesk-api/src/sevdesk_api/check_accounts.py:1:18384CPY001 Missing copyright notice at top of file85--> packages/sevdesk-api/src/sevdesk_api/client.py:1:18687CPY001 Missing copyright notice at top of file88--> packages/sevdesk-api/src/sevdesk_api/contacts.py:1:18990CPY001 Missing copyright notice at top of file91--> packages/sevdesk-api/src/sevdesk_api/invoices.py:1:19293PLR0917 Too many positional arguments (6 > 5)94 --> packages/sevdesk-api/src/sevdesk_api/invoices.py:64:995 |9662 | raise ValueError(msg)9763 |9864 | def get_invoices(99 | ^^^^^^^^^^^^10065 | self,10166 | limit: int = 100,102 |103help: Consider adding `@typing.override` if changing the function signature would violate the Liskov Substitution Principle104105PLR0917 Too many positional arguments (6 > 5)106 --> packages/sevdesk-api/src/sevdesk_api/invoices.py:165:9107 |108163 | raise ValueError(msg)109164 |110165 | def send_invoice_by_email(111 | ^^^^^^^^^^^^^^^^^^^^^112166 | self,113167 | invoice_id: int,114 |115help: Consider adding `@typing.override` if changing the function signature would violate the Liskov Substitution Principle116117CPY001 Missing copyright notice at top of file118--> packages/sevdesk-api/src/sevdesk_api/models/__init__.py:1:1119120CPY001 Missing copyright notice at top of file121--> packages/sevdesk-api/src/sevdesk_api/models/base.py:1:1122123CPY001 Missing copyright notice at top of file124--> packages/sevdesk-api/src/sevdesk_api/models/check_account.py:1:1125126CPY001 Missing copyright notice at top of file127--> packages/sevdesk-api/src/sevdesk_api/models/contact.py:1:1128129CPY001 Missing copyright notice at top of file130--> packages/sevdesk-api/src/sevdesk_api/models/invoice.py:1:1131132CPY001 Missing copyright notice at top of file133--> packages/sevdesk-api/src/sevdesk_api/object_resolver.py:1:1134135CPY001 Missing copyright notice at top of file136--> packages/sevdesk-api/src/sevdesk_api/transactions.py:1:1137138PLR0917 Too many positional arguments (7 > 5)139 --> packages/sevdesk-api/src/sevdesk_api/transactions.py:25:9140 |14123 | self.client = client14224 |14325 | def get_transactions(144 | ^^^^^^^^^^^^^^^^14526 | self,14627 | check_account_id: int | None = None,147 |148help: Consider adding `@typing.override` if changing the function signature would violate the Liskov Substitution Principle149150PLR0917 Too many positional arguments (9 > 5)151 --> packages/sevdesk-api/src/sevdesk_api/transactions.py:81:9152 |15379 | return self.client.get(f"CheckAccountTransaction/{transaction_id}")15480 |15581 | def create_transaction(156 | ^^^^^^^^^^^^^^^^^^15782 | self,15883 | check_account_id: int,159 |160help: Consider adding `@typing.override` if changing the function signature would violate the Liskov Substitution Principle161162PLR0917 Too many positional arguments (8 > 5)163 --> packages/sevdesk-api/src/sevdesk_api/transactions.py:132:9164 |165130 | return self.client.post("CheckAccountTransaction", json_data=data)166131 |167132 | def update_transaction(168 | ^^^^^^^^^^^^^^^^^^169133 | self,170134 | transaction_id: int,171 |172help: Consider adding `@typing.override` if changing the function signature would violate the Liskov Substitution Principle173174CPY001 Missing copyright notice at top of file175--> packages/sevdesk-api/src/sevdesk_api/vouchers.py:1:1176177PLR0917 Too many positional arguments (8 > 5)178 --> packages/sevdesk-api/src/sevdesk_api/vouchers.py:185:9179 |180183 | self.accounting_types = accounting_types181184 |182185 | def get_vouchers(183 | ^^^^^^^^^^^^184186 | self,185187 | status: VoucherStatus | None = None,186 |187help: Consider adding `@typing.override` if changing the function signature would violate the Liskov Substitution Principle188189PLR0917 Too many positional arguments (14 > 5)190 --> packages/sevdesk-api/src/sevdesk_api/vouchers.py:355:9191 |192353 | conn.close()193354 |194355 | def _build_voucher_data(195 | ^^^^^^^^^^^^^^^^^^^196356 | self,197357 | credit_debit: CreditDebit,198 |199help: Consider adding `@typing.override` if changing the function signature would violate the Liskov Substitution Principle200201Found 22 errors.202203ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 1204205CPY001 Missing copyright notice at top of file206--> packages/paperless-cli/src/paperless_cli/__init__.py:1:1207208CPY001 Missing copyright notice at top of file209--> packages/paperless-cli/src/paperless_cli/api.py:1:1210211CPY001 Missing copyright notice at top of file212--> packages/paperless-cli/src/paperless_cli/cli/__init__.py:1:1213214CPY001 Missing copyright notice at top of file215--> packages/paperless-cli/src/paperless_cli/cli/documents.py:1:1216217CPY001 Missing copyright notice at top of file218--> packages/paperless-cli/src/paperless_cli/cli/formatter.py:1:1219220CPY001 Missing copyright notice at top of file221--> packages/paperless-cli/src/paperless_cli/cli/mail_accounts.py:1:1222223CPY001 Missing copyright notice at top of file224--> packages/paperless-cli/src/paperless_cli/cli/mail_rules.py:1:1225226CPY001 Missing copyright notice at top of file227--> packages/paperless-cli/src/paperless_cli/cli/main.py:1:1228229CPY001 Missing copyright notice at top of file230--> packages/paperless-cli/src/paperless_cli/cli/tags.py:1:1231232CPY001 Missing copyright notice at top of file233--> packages/paperless-cli/src/paperless_cli/errors.py:1:1234235CPY001 Missing copyright notice at top of file236--> packages/paperless-cli/src/paperless_cli/models/__init__.py:1:1237238CPY001 Missing copyright notice at top of file239--> packages/paperless-cli/src/paperless_cli/models/base.py:1:1240241CPY001 Missing copyright notice at top of file242--> packages/paperless-cli/src/paperless_cli/models/correspondent.py:1:1243244CPY001 Missing copyright notice at top of file245--> packages/paperless-cli/src/paperless_cli/models/document.py:1:1246247CPY001 Missing copyright notice at top of file248--> packages/paperless-cli/src/paperless_cli/models/mail.py:1:1249250CPY001 Missing copyright notice at top of file251--> packages/paperless-cli/src/paperless_cli/models/tag.py:1:1252253CPY001 Missing copyright notice at top of file254--> packages/paperless-cli/src/paperless_cli/models/task.py:1:1255256Found 17 errors.257258ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 1259260CPY001 Missing copyright notice at top of file261--> packages/rest/src/rest/__init__.py:1:1262263Found 1 error.264265ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 1266267CPY001 Missing copyright notice at top of file268--> packages/sevdesk-invoicer/src/sevdesk_invoicer/__init__.py:1:1269270CPY001 Missing copyright notice at top of file271--> packages/sevdesk-invoicer/src/sevdesk_tax_estimator/__init__.py:1:1272273CPY001 Missing copyright notice at top of file274--> packages/sevdesk-invoicer/src/sevdesk_wise_importer/__init__.py:1:1275276PLR0917 Too many positional arguments (7 > 5)277 --> packages/sevdesk-invoicer/src/sevdesk_wise_importer/__init__.py:144:5278 |279144 | def import_record(280 | ^^^^^^^^^^^^^281145 | api: SevDeskAPI,282146 | accounts: Accounts,283 |284285Found 4 errors.286287ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 1288289CPY001 Missing copyright notice at top of file290--> packages/kimai/src/kimai/__init__.py:1:1291292CPY001 Missing copyright notice at top of file293--> packages/kimai/src/kimai/api.py:1:1294295PLR0917 Too many positional arguments (6 > 5)296 --> packages/kimai/src/kimai/api.py:84:9297 |29882 | return ActivityInfo.from_json(activity_data[0])29983 |30084 | def get_time_entries(301 | ^^^^^^^^^^^^^^^^30285 | self,30386 | from_date: datetime,304 |305help: Consider adding `@typing.override` if changing the function signature would violate the Liskov Substitution Principle306307CPY001 Missing copyright notice at top of file308--> packages/kimai/src/kimai/data.py:1:1309310CPY001 Missing copyright notice at top of file311--> packages/kimai/src/kimai/jsonserializer.py:1:1312313CPY001 Missing copyright notice at top of file314--> packages/kimai/src/kimai_exporter/__init__.py:1:1315316CPY001 Missing copyright notice at top of file317--> packages/kimai/src/kimai_exporter/cli.py:1:1318319Found 7 errors.320321ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 1322323CPY001 Missing copyright notice at top of file324--> packages/sevdesk-cli/src/sevdesk_cli/__init__.py:1:1325326CPY001 Missing copyright notice at top of file327--> packages/sevdesk-cli/src/sevdesk_cli/__main__.py:1:1328329CPY001 Missing copyright notice at top of file330--> packages/sevdesk-cli/src/sevdesk_cli/cli/__init__.py:1:1331332CPY001 Missing copyright notice at top of file333--> packages/sevdesk-cli/src/sevdesk_cli/cli/accounting_types.py:1:1334335CPY001 Missing copyright notice at top of file336--> packages/sevdesk-cli/src/sevdesk_cli/cli/check_accounts.py:1:1337338CPY001 Missing copyright notice at top of file339--> packages/sevdesk-cli/src/sevdesk_cli/cli/tax_rules.py:1:1340341CPY001 Missing copyright notice at top of file342--> packages/sevdesk-cli/src/sevdesk_cli/cli/transactions.py:1:1343344CPY001 Missing copyright notice at top of file345--> packages/sevdesk-cli/src/sevdesk_cli/cli/vouchers.py:1:1346347CPY001 Missing copyright notice at top of file348--> packages/sevdesk-cli/src/sevdesk_cli/errors.py:1:1349350CPY001 Missing copyright notice at top of file351--> packages/sevdesk-cli/src/sevdesk_cli/main.py:1:1352353Found 10 errors.354355ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 1356357CPY001 Missing copyright notice at top of file358--> packages/wise-exporter/src/wise_exporter/__init__.py:1:1359360Found 1 error.361362ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 1363364CPY001 Missing copyright notice at top of file365--> packages/quipu-invoicer/src/quipu_api/__init__.py:1:1366367CPY001 Missing copyright notice at top of file368--> packages/quipu-invoicer/src/quipu_api/cli.py:1:1369370CPY001 Missing copyright notice at top of file371--> packages/quipu-invoicer/src/quipu_invoicer/__init__.py:1:1372373PLR0917 Too many positional arguments (10 > 5)374 --> packages/quipu-invoicer/src/quipu_invoicer/__init__.py:47:5375 |37645 | )37746 | @click.argument("json_file", type=click.Path(exists=True))37847 | def main(379 | ^^^^38048 | quipu_app_id: str,38149 | quipu_app_secret: str,382 |383384PLR0917 Too many positional arguments (10 > 5)385 --> packages/quipu-invoicer/src/quipu_invoicer/__init__.py:75:5386 |38775 | def create_invoice(388 | ^^^^^^^^^^^^^^38976 | app_id: str,39077 | app_secret: str,391 |392393Found 5 errors.394395ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 1396397CPY001 Missing copyright notice at top of file398--> packages/harvest/src/harvest/__init__.py:1:1399400CPY001 Missing copyright notice at top of file401--> packages/harvest/src/harvest_exporter/__init__.py:1:1402403CPY001 Missing copyright notice at top of file404--> packages/harvest/src/harvest_exporter/cli.py:1:1405406CPY001 Missing copyright notice at top of file407--> packages/harvest/src/harvest_exporter/export.py:1:1408409CPY001 Missing copyright notice at top of file410--> packages/harvest/src/harvest_rounder/__init__.py:1:1411412CPY001 Missing copyright notice at top of file413--> packages/harvest/src/harvest_rounder/cli.py:1:1414415Found 6 errors.416417ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 1418419CPY001 Missing copyright notice at top of file420--> packages/ecbx/src/ecbx/__init__.py:1:1421422CPY001 Missing copyright notice at top of file423--> packages/ecbx/src/ecbx/__main__.py:1:1424425CPY001 Missing copyright notice at top of file426--> packages/ecbx/src/ecbx/cli.py:1:1427428PLR0917 Too many positional arguments (6 > 5)429 --> packages/ecbx/src/ecbx/cli.py:134:5430 |431132 | )432133 | @click.pass_context433134 | def convert(434 | ^^^^^^^435135 | ctx: click.Context,436136 | date: str | None,437 |438439CPY001 Missing copyright notice at top of file440--> packages/ecbx/src/ecbx/constants.py:1:1441442CPY001 Missing copyright notice at top of file443--> packages/ecbx/src/ecbx/store.py:1:1444445CPY001 Missing copyright notice at top of file446--> packages/ecbx/src/ecbx/utils.py:1:1447448Found 7 errors.449450ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 1451452CPY001 Missing copyright notice at top of file453--> packages/harvest-invoicer/src/harvest_invoicer/__init__.py:1:1454455CPY001 Missing copyright notice at top of file456--> packages/harvest-invoicer/src/harvest_invoicer/app.py:1:1457458PLR0917 Too many positional arguments (7 > 5)459 --> packages/harvest-invoicer/src/harvest_invoicer/app.py:78:5460 |46178 | def _make_invoice(462 | ^^^^^^^^^^^^^46379 | lines: list[InvoiceLine],46480 | number: str,465 |466467PLR0917 Too many positional arguments (16 > 5)468 --> packages/harvest-invoicer/src/harvest_invoicer/app.py:103:5469 |470103 | def create_app(471 | ^^^^^^^^^^472104 | lines: list[InvoiceLine],473105 | issuer: dict[str, object],474 |475476CPY001 Missing copyright notice at top of file477--> packages/harvest-invoicer/src/harvest_invoicer/cli.py:1:1478479PLR0917 Too many positional arguments (7 > 5)480 --> packages/harvest-invoicer/src/harvest_invoicer/cli.py:182:5481 |482182 | def _build_invoice(483 | ^^^^^^^^^^^^^^484183 | lines: list[InvoiceLine],485184 | number: str,486 |487488PLR0917 Too many positional arguments (11 > 5)489 --> packages/harvest-invoicer/src/harvest_invoicer/cli.py:312:5490 |491310 | help="Use synthetic data (no Harvest credentials required).",492311 | )493312 | def serve(494 | ^^^^^495313 | client_filter: str | None,496314 | db_path: Path | None,497 |498499PLR0917 Too many positional arguments (14 > 5)500 --> packages/harvest-invoicer/src/harvest_invoicer/cli.py:525:5501 |502523 | @_MERGE_DUPLICATES_OPTION503524 | @_BILL_TO_OPTION504525 | def generate(505 | ^^^^^^^^506526 | months: tuple[str, ...],507527 | client_filter: str | None,508 |509510CPY001 Missing copyright notice at top of file511--> packages/harvest-invoicer/src/harvest_invoicer/config.py:1:1512513CPY001 Missing copyright notice at top of file514--> packages/harvest-invoicer/src/harvest_invoicer/db.py:1:1515516CPY001 Missing copyright notice at top of file517--> packages/harvest-invoicer/src/harvest_invoicer/fetch.py:1:1518519CPY001 Missing copyright notice at top of file520--> packages/harvest-invoicer/src/harvest_invoicer/i18n.py:1:1521522CPY001 Missing copyright notice at top of file523--> packages/harvest-invoicer/src/harvest_invoicer/mail.py:1:1524525CPY001 Missing copyright notice at top of file526--> packages/harvest-invoicer/src/harvest_invoicer/model.py:1:1527528CPY001 Missing copyright notice at top of file529--> packages/harvest-invoicer/src/harvest_invoicer/render.py:1:1530531Found 16 errors (1 fixed, 15 remaining).532533traversed 200 files534emitted 115 files for processing535formatted 18 files (1 changed) in 4.727s536Error: failed to finalise formatting: formatting failures detected