nixbot

builds

failed treefmt-check x86_64-linux.formatting · build #112 · 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/rest/src/rest/__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/transferwise/src/transferwise/__init__.py:1:17475Found 1 error.7677ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 17879CPY001 Missing copyright notice at top of file80--> packages/sevdesk-api/src/sevdesk_api/__init__.py:1:18182CPY001 Missing copyright notice at top of file83--> packages/sevdesk-api/src/sevdesk_api/accounting_types.py:1:18485CPY001 Missing copyright notice at top of file86--> packages/sevdesk-api/src/sevdesk_api/api.py:1:18788CPY001 Missing copyright notice at top of file89--> packages/sevdesk-api/src/sevdesk_api/check_accounts.py:1:19091CPY001 Missing copyright notice at top of file92--> packages/sevdesk-api/src/sevdesk_api/client.py:1:19394CPY001 Missing copyright notice at top of file95--> packages/sevdesk-api/src/sevdesk_api/contacts.py:1:19697CPY001 Missing copyright notice at top of file98--> packages/sevdesk-api/src/sevdesk_api/invoices.py:1:199100PLR0917 Too many positional arguments (6 > 5)101 --> packages/sevdesk-api/src/sevdesk_api/invoices.py:64:9102 |10362 | raise ValueError(msg)10463 |10564 | def get_invoices(106 | ^^^^^^^^^^^^10765 | self,10866 | limit: int = 100,109 |110help: Consider adding `@typing.override` if changing the function signature would violate the Liskov Substitution Principle111112PLR0917 Too many positional arguments (6 > 5)113 --> packages/sevdesk-api/src/sevdesk_api/invoices.py:165:9114 |115163 | raise ValueError(msg)116164 |117165 | def send_invoice_by_email(118 | ^^^^^^^^^^^^^^^^^^^^^119166 | self,120167 | invoice_id: int,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/sevdesk-api/src/sevdesk_api/models/__init__.py:1:1126127CPY001 Missing copyright notice at top of file128--> packages/sevdesk-api/src/sevdesk_api/models/base.py:1:1129130CPY001 Missing copyright notice at top of file131--> packages/sevdesk-api/src/sevdesk_api/models/check_account.py:1:1132133CPY001 Missing copyright notice at top of file134--> packages/sevdesk-api/src/sevdesk_api/models/contact.py:1:1135136CPY001 Missing copyright notice at top of file137--> packages/sevdesk-api/src/sevdesk_api/models/invoice.py:1:1138139CPY001 Missing copyright notice at top of file140--> packages/sevdesk-api/src/sevdesk_api/object_resolver.py:1:1141142CPY001 Missing copyright notice at top of file143--> packages/sevdesk-api/src/sevdesk_api/transactions.py:1:1144145PLR0917 Too many positional arguments (7 > 5)146 --> packages/sevdesk-api/src/sevdesk_api/transactions.py:25:9147 |14823 | self.client = client14924 |15025 | def get_transactions(151 | ^^^^^^^^^^^^^^^^15226 | self,15327 | check_account_id: int | None = None,154 |155help: Consider adding `@typing.override` if changing the function signature would violate the Liskov Substitution Principle156157PLR0917 Too many positional arguments (9 > 5)158 --> packages/sevdesk-api/src/sevdesk_api/transactions.py:81:9159 |16079 | return self.client.get(f"CheckAccountTransaction/{transaction_id}")16180 |16281 | def create_transaction(163 | ^^^^^^^^^^^^^^^^^^16482 | self,16583 | check_account_id: int,166 |167help: Consider adding `@typing.override` if changing the function signature would violate the Liskov Substitution Principle168169PLR0917 Too many positional arguments (8 > 5)170 --> packages/sevdesk-api/src/sevdesk_api/transactions.py:132:9171 |172130 | return self.client.post("CheckAccountTransaction", json_data=data)173131 |174132 | def update_transaction(175 | ^^^^^^^^^^^^^^^^^^176133 | self,177134 | transaction_id: int,178 |179help: Consider adding `@typing.override` if changing the function signature would violate the Liskov Substitution Principle180181CPY001 Missing copyright notice at top of file182--> packages/sevdesk-api/src/sevdesk_api/vouchers.py:1:1183184PLR0917 Too many positional arguments (8 > 5)185 --> packages/sevdesk-api/src/sevdesk_api/vouchers.py:185:9186 |187183 | self.accounting_types = accounting_types188184 |189185 | def get_vouchers(190 | ^^^^^^^^^^^^191186 | self,192187 | status: VoucherStatus | None = None,193 |194help: Consider adding `@typing.override` if changing the function signature would violate the Liskov Substitution Principle195196PLR0917 Too many positional arguments (14 > 5)197 --> packages/sevdesk-api/src/sevdesk_api/vouchers.py:355:9198 |199353 | conn.close()200354 |201355 | def _build_voucher_data(202 | ^^^^^^^^^^^^^^^^^^^203356 | self,204357 | credit_debit: CreditDebit,205 |206help: Consider adding `@typing.override` if changing the function signature would violate the Liskov Substitution Principle207208Found 22 errors.209210ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 1211212CPY001 Missing copyright notice at top of file213--> packages/sevdesk-invoicer/src/sevdesk_invoicer/__init__.py:1:1214215CPY001 Missing copyright notice at top of file216--> packages/sevdesk-invoicer/src/sevdesk_tax_estimator/__init__.py:1:1217218CPY001 Missing copyright notice at top of file219--> packages/sevdesk-invoicer/src/sevdesk_wise_importer/__init__.py:1:1220221PLR0917 Too many positional arguments (7 > 5)222 --> packages/sevdesk-invoicer/src/sevdesk_wise_importer/__init__.py:144:5223 |224144 | def import_record(225 | ^^^^^^^^^^^^^226145 | api: SevDeskAPI,227146 | accounts: Accounts,228 |229230Found 4 errors.231232ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 1233234CPY001 Missing copyright notice at top of file235--> packages/kimai/src/kimai/__init__.py:1:1236237CPY001 Missing copyright notice at top of file238--> packages/kimai/src/kimai/api.py:1:1239240PLR0917 Too many positional arguments (6 > 5)241 --> packages/kimai/src/kimai/api.py:84:9242 |24382 | return ActivityInfo.from_json(activity_data[0])24483 |24584 | def get_time_entries(246 | ^^^^^^^^^^^^^^^^24785 | self,24886 | from_date: datetime,249 |250help: Consider adding `@typing.override` if changing the function signature would violate the Liskov Substitution Principle251252CPY001 Missing copyright notice at top of file253--> packages/kimai/src/kimai/data.py:1:1254255CPY001 Missing copyright notice at top of file256--> packages/kimai/src/kimai/jsonserializer.py:1:1257258CPY001 Missing copyright notice at top of file259--> packages/kimai/src/kimai_exporter/__init__.py:1:1260261CPY001 Missing copyright notice at top of file262--> packages/kimai/src/kimai_exporter/cli.py:1:1263264Found 7 errors.265266ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 1267268CPY001 Missing copyright notice at top of file269--> packages/paperless-cli/src/paperless_cli/__init__.py:1:1270271CPY001 Missing copyright notice at top of file272--> packages/paperless-cli/src/paperless_cli/api.py:1:1273274CPY001 Missing copyright notice at top of file275--> packages/paperless-cli/src/paperless_cli/cli/__init__.py:1:1276277CPY001 Missing copyright notice at top of file278--> packages/paperless-cli/src/paperless_cli/cli/documents.py:1:1279280CPY001 Missing copyright notice at top of file281--> packages/paperless-cli/src/paperless_cli/cli/formatter.py:1:1282283CPY001 Missing copyright notice at top of file284--> packages/paperless-cli/src/paperless_cli/cli/mail_accounts.py:1:1285286CPY001 Missing copyright notice at top of file287--> packages/paperless-cli/src/paperless_cli/cli/mail_rules.py:1:1288289CPY001 Missing copyright notice at top of file290--> packages/paperless-cli/src/paperless_cli/cli/main.py:1:1291292CPY001 Missing copyright notice at top of file293--> packages/paperless-cli/src/paperless_cli/cli/tags.py:1:1294295CPY001 Missing copyright notice at top of file296--> packages/paperless-cli/src/paperless_cli/errors.py:1:1297298CPY001 Missing copyright notice at top of file299--> packages/paperless-cli/src/paperless_cli/models/__init__.py:1:1300301CPY001 Missing copyright notice at top of file302--> packages/paperless-cli/src/paperless_cli/models/base.py:1:1303304CPY001 Missing copyright notice at top of file305--> packages/paperless-cli/src/paperless_cli/models/correspondent.py:1:1306307CPY001 Missing copyright notice at top of file308--> packages/paperless-cli/src/paperless_cli/models/document.py:1:1309310CPY001 Missing copyright notice at top of file311--> packages/paperless-cli/src/paperless_cli/models/mail.py:1:1312313CPY001 Missing copyright notice at top of file314--> packages/paperless-cli/src/paperless_cli/models/tag.py:1:1315316CPY001 Missing copyright notice at top of file317--> packages/paperless-cli/src/paperless_cli/models/task.py:1:1318319Found 17 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/quipu-invoicer/src/quipu_api/__init__.py:1:1359360CPY001 Missing copyright notice at top of file361--> packages/quipu-invoicer/src/quipu_api/cli.py:1:1362363CPY001 Missing copyright notice at top of file364--> packages/quipu-invoicer/src/quipu_invoicer/__init__.py:1:1365366PLR0917 Too many positional arguments (10 > 5)367 --> packages/quipu-invoicer/src/quipu_invoicer/__init__.py:47:5368 |36945 | )37046 | @click.argument("json_file", type=click.Path(exists=True))37147 | def main(372 | ^^^^37348 | quipu_app_id: str,37449 | quipu_app_secret: str,375 |376377PLR0917 Too many positional arguments (10 > 5)378 --> packages/quipu-invoicer/src/quipu_invoicer/__init__.py:75:5379 |38075 | def create_invoice(381 | ^^^^^^^^^^^^^^38276 | app_id: str,38377 | app_secret: str,384 |385386Found 5 errors.387388ERRO formatter | ruff-check: failed to apply with options '[check --fix]': exit status 1389390CPY001 Missing copyright notice at top of file391--> packages/wise-exporter/src/wise_exporter/__init__.py:1:1392393Found 1 error.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.266s536Error: failed to finalise formatting: formatting failures detected