From: Raphael Michel Date: Wed, 3 Aug 2022 15:56:26 +0000 (+0200) Subject: Run black X-Git-Tag: 2.2.0~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F5%2Fhead;p=thirdparty%2Fpython-drafthorse.git Run black --- diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7c673e6..5a5c3bc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -49,5 +49,3 @@ jobs: run: python setup.py develop - name: Run black run: black --check . - - name: Run isort - run: isort -c . diff --git a/drafthorse/models/accounting.py b/drafthorse/models/accounting.py index ccd2808..f5d2865 100644 --- a/drafthorse/models/accounting.py +++ b/drafthorse/models/accounting.py @@ -1,8 +1,14 @@ from . import BASIC, COMFORT, EXTENDED, NS_RAM from .elements import Element from .fields import ( - CurrencyField, DateTimeField, DecimalField, IndicatorField, - MultiCurrencyField, MultiField, QuantityField, StringField, + CurrencyField, + DateTimeField, + DecimalField, + IndicatorField, + MultiCurrencyField, + MultiField, + QuantityField, + StringField, ) diff --git a/drafthorse/models/delivery.py b/drafthorse/models/delivery.py index 0bb88f4..e568b08 100644 --- a/drafthorse/models/delivery.py +++ b/drafthorse/models/delivery.py @@ -2,10 +2,13 @@ from . import BASIC, EXTENDED, NS_RAM from .elements import Element from .fields import DateTimeField, Field, StringField from .party import ( - ShipFromTradeParty, ShipToTradeParty, UltimateShipToTradeParty, + ShipFromTradeParty, + ShipToTradeParty, + UltimateShipToTradeParty, ) from .references import ( - DeliveryNoteReferencedDocument, DespatchAdviceReferencedDocument, + DeliveryNoteReferencedDocument, + DespatchAdviceReferencedDocument, ) diff --git a/drafthorse/models/document.py b/drafthorse/models/document.py index 25ce6f0..93f5c9b 100644 --- a/drafthorse/models/document.py +++ b/drafthorse/models/document.py @@ -5,7 +5,11 @@ from drafthorse.models.note import IncludedNote from . import BASIC, EXTENDED, NS_A, NS_QDT, NS_RAM, NS_RSM, NS_UDT from .elements import Element from .fields import ( - DateTimeField, Field, IndicatorField, MultiField, MultiStringField, + DateTimeField, + Field, + IndicatorField, + MultiField, + MultiStringField, StringField, ) from .trade import TradeTransaction diff --git a/drafthorse/models/fields.py b/drafthorse/models/fields.py index 77fd0be..c215a54 100644 --- a/drafthorse/models/fields.py +++ b/drafthorse/models/fields.py @@ -2,7 +2,10 @@ from decimal import Decimal from . import BASIC from .container import ( - Container, CurrencyContainer, IDContainer, StringContainer, + Container, + CurrencyContainer, + IDContainer, + StringContainer, ) diff --git a/drafthorse/models/payment.py b/drafthorse/models/payment.py index 28a8f50..613fc99 100644 --- a/drafthorse/models/payment.py +++ b/drafthorse/models/payment.py @@ -1,8 +1,13 @@ from . import BASIC, COMFORT, EXTENDED, NS_RAM from .elements import Element from .fields import ( - DateTimeField, DecimalField, Field, MultiCurrencyField, MultiStringField, - QuantityField, StringField, + DateTimeField, + DecimalField, + Field, + MultiCurrencyField, + MultiStringField, + QuantityField, + StringField, ) diff --git a/drafthorse/models/product.py b/drafthorse/models/product.py index 440a6b7..5a0ff93 100644 --- a/drafthorse/models/product.py +++ b/drafthorse/models/product.py @@ -1,7 +1,11 @@ from . import COMFORT, EXTENDED, NS_RAM from .elements import Element from .fields import ( - ClassificationField, IDField, MultiField, QuantityField, StringField, + ClassificationField, + IDField, + MultiField, + QuantityField, + StringField, ) diff --git a/drafthorse/models/trade.py b/drafthorse/models/trade.py index 6be8c3c..3044dac 100644 --- a/drafthorse/models/trade.py +++ b/drafthorse/models/trade.py @@ -1,23 +1,37 @@ from . import BASIC, COMFORT, EXTENDED, NS_RAM, NS_RSM from .accounting import ( - ApplicableTradeTax, AppliedTradeTax, BillingSpecifiedPeriod, - MonetarySummation, ReceivableAccountingAccount, - SellerOrderReferencedDocument, TradeAllowanceCharge, + ApplicableTradeTax, + AppliedTradeTax, + BillingSpecifiedPeriod, + MonetarySummation, + ReceivableAccountingAccount, + SellerOrderReferencedDocument, + TradeAllowanceCharge, ) from .delivery import TradeDelivery from .elements import Element from .fields import DateTimeField, DecimalField, Field, MultiField, StringField from .party import ( - BuyerTradeParty, EndUserTradeParty, InvoiceeTradeParty, InvoicerTradeParty, - PayeeTradeParty, SellerTaxRepresentativeTradeParty, SellerTradeParty, + BuyerTradeParty, + EndUserTradeParty, + InvoiceeTradeParty, + InvoicerTradeParty, + PayeeTradeParty, + SellerTaxRepresentativeTradeParty, + SellerTradeParty, ) from .payment import ( - PaymentMeans, PaymentTerms, TaxApplicableTradeCurrencyExchange, + PaymentMeans, + PaymentTerms, + TaxApplicableTradeCurrencyExchange, ) from .references import ( - AdditionalReferencedDocument, BuyerOrderReferencedDocument, - ContractReferencedDocument, InvoiceReferencedDocument, - ProcuringProjectType, UltimateCustomerOrderReferencedDocument, + AdditionalReferencedDocument, + BuyerOrderReferencedDocument, + ContractReferencedDocument, + InvoiceReferencedDocument, + ProcuringProjectType, + UltimateCustomerOrderReferencedDocument, ) from .tradelines import LineItem diff --git a/drafthorse/models/tradelines.py b/drafthorse/models/tradelines.py index c941deb..9d31040 100644 --- a/drafthorse/models/tradelines.py +++ b/drafthorse/models/tradelines.py @@ -1,20 +1,31 @@ from . import BASIC, COMFORT, EXTENDED, NS_RAM from .accounting import ( - AccountingAccount, ApplicableTradeTax, BillingSpecifiedPeriod, - ReceivableAccountingAccount, TradeAllowanceCharge, + AccountingAccount, + ApplicableTradeTax, + BillingSpecifiedPeriod, + ReceivableAccountingAccount, + TradeAllowanceCharge, ) from .delivery import SupplyChainEvent from .elements import Element from .fields import ( - DateTimeField, DecimalField, Field, MultiField, QuantityField, StringField, + DateTimeField, + DecimalField, + Field, + MultiField, + QuantityField, + StringField, ) from .note import IncludedNote from .party import ShipToTradeParty, UltimateShipToTradeParty from .product import TradeProduct from .references import ( - InvoiceReferencedDocument, LineAdditionalReferencedDocument, - LineBuyerOrderReferencedDocument, LineContractReferencedDocument, - LineDeliveryNoteReferencedDocument, LineDespatchAdviceReferencedDocument, + InvoiceReferencedDocument, + LineAdditionalReferencedDocument, + LineBuyerOrderReferencedDocument, + LineContractReferencedDocument, + LineDeliveryNoteReferencedDocument, + LineDespatchAdviceReferencedDocument, LineReceivingAdviceReferencedDocument, LineUltimateCustomerOrderReferencedDocument, ) diff --git a/drafthorse/pdf.py b/drafthorse/pdf.py index 78be49e..d0a2a41 100644 --- a/drafthorse/pdf.py +++ b/drafthorse/pdf.py @@ -30,7 +30,10 @@ from io import BytesIO from lxml import etree from PyPDF2 import PdfReader, PdfWriter from PyPDF2.generic import ( - ArrayObject, DecodedStreamObject, DictionaryObject, NameObject, + ArrayObject, + DecodedStreamObject, + DictionaryObject, + NameObject, createStringObject, )