treefmt-check
checks.x86_64-linux.formatting
· build #116
· 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/sevdesk-cli/src/sevdesk_cli/__init__.py:1:16768CPY001 Missing copyright notice at top of file69--> packages/sevdesk-cli/src/sevdesk_cli/__main__.py:1:17071CPY001 Missing copyright notice at top of file72--> packages/sevdesk-cli/src/sevdesk_cli/cli/__init__.py:1:17374CPY001 Missing copyright notice at top of file75--> packages/sevdesk-cli/src/sevdesk_cli/cli/accounting_types.py:1:17677CPY001 Missing copyright notice at top of file78--> packages/sevdesk-cli/src/sevdesk_cli/cli/check_accounts.py:1:17980CPY001 Missing copyright notice at top of file81--> packages/sevdesk-cli/src/sevdesk_cli/cli/tax_rules.py:1:18283CPY001 Missing copyright notice at top of file84--> packages/sevdesk-cli/src/sevdesk_cli/cli/transactions.py:1:18586CPY001 Missing copyright notice at top of file87--> packages/sevdesk-cli/src/sevdesk_cli/cli/vouchers.py:1:18889CPY001 Missing copyright notice at top of file90--> packages/sevdesk-cli/src/sevdesk_cli/errors.py:1:19192CPY001 Missing copyright notice at top of file93--> packages/sevdesk-cli/src/sevdesk_cli/main.py:1:19495Found 10 errors.9697ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 19899CPY001 Missing copyright notice at top of file100--> packages/rest/src/rest/__init__.py:1:1101102Found 1 error.103104ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 1105106CPY001 Missing copyright notice at top of file107--> packages/kimai/src/kimai/__init__.py:1:1108109CPY001 Missing copyright notice at top of file110--> packages/kimai/src/kimai/api.py:1:1111112PLR0917 Too many positional arguments (6 > 5)113 --> packages/kimai/src/kimai/api.py:84:9114 |11582 | return ActivityInfo.from_json(activity_data[0])11683 |11784 | def get_time_entries(118 | ^^^^^^^^^^^^^^^^11985 | self,12086 | from_date: datetime,121 |122help: Consider adding `@typing.override` if changing the function signature would violate the Liskov Substitution Principle123124CPY001 Missing copyright notice at top of file125--> packages/kimai/src/kimai/data.py:1:1126127CPY001 Missing copyright notice at top of file128--> packages/kimai/src/kimai/jsonserializer.py:1:1129130CPY001 Missing copyright notice at top of file131--> packages/kimai/src/kimai_exporter/__init__.py:1:1132133CPY001 Missing copyright notice at top of file134--> packages/kimai/src/kimai_exporter/cli.py:1:1135136Found 7 errors.137138ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 1139140CPY001 Missing copyright notice at top of file141--> packages/sevdesk-invoicer/src/sevdesk_invoicer/__init__.py:1:1142143CPY001 Missing copyright notice at top of file144--> packages/sevdesk-invoicer/src/sevdesk_tax_estimator/__init__.py:1:1145146CPY001 Missing copyright notice at top of file147--> packages/sevdesk-invoicer/src/sevdesk_wise_importer/__init__.py:1:1148149PLR0917 Too many positional arguments (7 > 5)150 --> packages/sevdesk-invoicer/src/sevdesk_wise_importer/__init__.py:144:5151 |152144 | def import_record(153 | ^^^^^^^^^^^^^154145 | api: SevDeskAPI,155146 | accounts: Accounts,156 |157158Found 4 errors.159160ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 1161162CPY001 Missing copyright notice at top of file163--> packages/sevdesk-api/src/sevdesk_api/__init__.py:1:1164165CPY001 Missing copyright notice at top of file166--> packages/sevdesk-api/src/sevdesk_api/accounting_types.py:1:1167168CPY001 Missing copyright notice at top of file169--> packages/sevdesk-api/src/sevdesk_api/api.py:1:1170171CPY001 Missing copyright notice at top of file172--> packages/sevdesk-api/src/sevdesk_api/check_accounts.py:1:1173174CPY001 Missing copyright notice at top of file175--> packages/sevdesk-api/src/sevdesk_api/client.py:1:1176177CPY001 Missing copyright notice at top of file178--> packages/sevdesk-api/src/sevdesk_api/contacts.py:1:1179180CPY001 Missing copyright notice at top of file181--> packages/sevdesk-api/src/sevdesk_api/invoices.py:1:1182183PLR0917 Too many positional arguments (6 > 5)184 --> packages/sevdesk-api/src/sevdesk_api/invoices.py:64:9185 |18662 | raise ValueError(msg)18763 |18864 | def get_invoices(189 | ^^^^^^^^^^^^19065 | self,19166 | limit: int = 100,192 |193help: Consider adding `@typing.override` if changing the function signature would violate the Liskov Substitution Principle194195PLR0917 Too many positional arguments (6 > 5)196 --> packages/sevdesk-api/src/sevdesk_api/invoices.py:165:9197 |198163 | raise ValueError(msg)199164 |200165 | def send_invoice_by_email(201 | ^^^^^^^^^^^^^^^^^^^^^202166 | self,203167 | invoice_id: int,204 |205help: Consider adding `@typing.override` if changing the function signature would violate the Liskov Substitution Principle206207CPY001 Missing copyright notice at top of file208--> packages/sevdesk-api/src/sevdesk_api/models/__init__.py:1:1209210CPY001 Missing copyright notice at top of file211--> packages/sevdesk-api/src/sevdesk_api/models/base.py:1:1212213CPY001 Missing copyright notice at top of file214--> packages/sevdesk-api/src/sevdesk_api/models/check_account.py:1:1215216CPY001 Missing copyright notice at top of file217--> packages/sevdesk-api/src/sevdesk_api/models/contact.py:1:1218219CPY001 Missing copyright notice at top of file220--> packages/sevdesk-api/src/sevdesk_api/models/invoice.py:1:1221222CPY001 Missing copyright notice at top of file223--> packages/sevdesk-api/src/sevdesk_api/object_resolver.py:1:1224225CPY001 Missing copyright notice at top of file226--> packages/sevdesk-api/src/sevdesk_api/transactions.py:1:1227228PLR0917 Too many positional arguments (7 > 5)229 --> packages/sevdesk-api/src/sevdesk_api/transactions.py:25:9230 |23123 | self.client = client23224 |23325 | def get_transactions(234 | ^^^^^^^^^^^^^^^^23526 | self,23627 | check_account_id: int | None = None,237 |238help: Consider adding `@typing.override` if changing the function signature would violate the Liskov Substitution Principle239240PLR0917 Too many positional arguments (9 > 5)241 --> packages/sevdesk-api/src/sevdesk_api/transactions.py:81:9242 |24379 | return self.client.get(f"CheckAccountTransaction/{transaction_id}")24480 |24581 | def create_transaction(246 | ^^^^^^^^^^^^^^^^^^24782 | self,24883 | check_account_id: int,249 |250help: Consider adding `@typing.override` if changing the function signature would violate the Liskov Substitution Principle251252PLR0917 Too many positional arguments (8 > 5)253 --> packages/sevdesk-api/src/sevdesk_api/transactions.py:132:9254 |255130 | return self.client.post("CheckAccountTransaction", json_data=data)256131 |257132 | def update_transaction(258 | ^^^^^^^^^^^^^^^^^^259133 | self,260134 | transaction_id: int,261 |262help: Consider adding `@typing.override` if changing the function signature would violate the Liskov Substitution Principle263264CPY001 Missing copyright notice at top of file265--> packages/sevdesk-api/src/sevdesk_api/vouchers.py:1:1266267PLR0917 Too many positional arguments (8 > 5)268 --> packages/sevdesk-api/src/sevdesk_api/vouchers.py:185:9269 |270183 | self.accounting_types = accounting_types271184 |272185 | def get_vouchers(273 | ^^^^^^^^^^^^274186 | self,275187 | status: VoucherStatus | None = None,276 |277help: Consider adding `@typing.override` if changing the function signature would violate the Liskov Substitution Principle278279PLR0917 Too many positional arguments (14 > 5)280 --> packages/sevdesk-api/src/sevdesk_api/vouchers.py:355:9281 |282353 | conn.close()283354 |284355 | def _build_voucher_data(285 | ^^^^^^^^^^^^^^^^^^^286356 | self,287357 | credit_debit: CreditDebit,288 |289help: Consider adding `@typing.override` if changing the function signature would violate the Liskov Substitution Principle290291Found 22 errors.292293ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 1294295CPY001 Missing copyright notice at top of file296--> packages/transferwise/src/transferwise/__init__.py:1:1297298Found 1 error.299300ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 1301302CPY001 Missing copyright notice at top of file303--> packages/wise-exporter/src/wise_exporter/__init__.py:1:1304305Found 1 error.306307ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 1308309CPY001 Missing copyright notice at top of file310--> packages/paperless-cli/src/paperless_cli/__init__.py:1:1311312CPY001 Missing copyright notice at top of file313--> packages/paperless-cli/src/paperless_cli/api.py:1:1314315CPY001 Missing copyright notice at top of file316--> packages/paperless-cli/src/paperless_cli/cli/__init__.py:1:1317318CPY001 Missing copyright notice at top of file319--> packages/paperless-cli/src/paperless_cli/cli/documents.py:1:1320321CPY001 Missing copyright notice at top of file322--> packages/paperless-cli/src/paperless_cli/cli/formatter.py:1:1323324CPY001 Missing copyright notice at top of file325--> packages/paperless-cli/src/paperless_cli/cli/mail_accounts.py:1:1326327CPY001 Missing copyright notice at top of file328--> packages/paperless-cli/src/paperless_cli/cli/mail_rules.py:1:1329330CPY001 Missing copyright notice at top of file331--> packages/paperless-cli/src/paperless_cli/cli/main.py:1:1332333CPY001 Missing copyright notice at top of file334--> packages/paperless-cli/src/paperless_cli/cli/tags.py:1:1335336CPY001 Missing copyright notice at top of file337--> packages/paperless-cli/src/paperless_cli/errors.py:1:1338339CPY001 Missing copyright notice at top of file340--> packages/paperless-cli/src/paperless_cli/models/__init__.py:1:1341342CPY001 Missing copyright notice at top of file343--> packages/paperless-cli/src/paperless_cli/models/base.py:1:1344345CPY001 Missing copyright notice at top of file346--> packages/paperless-cli/src/paperless_cli/models/correspondent.py:1:1347348CPY001 Missing copyright notice at top of file349--> packages/paperless-cli/src/paperless_cli/models/document.py:1:1350351CPY001 Missing copyright notice at top of file352--> packages/paperless-cli/src/paperless_cli/models/mail.py:1:1353354CPY001 Missing copyright notice at top of file355--> packages/paperless-cli/src/paperless_cli/models/tag.py:1:1356357CPY001 Missing copyright notice at top of file358--> packages/paperless-cli/src/paperless_cli/models/task.py:1:1359360Found 17 errors.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 6.074s536Error: failed to finalise formatting: formatting failures detected