yapf: Update format to yapf 0.33

This commit is contained in:
Blockstream Satellite 2023-05-22 12:34:35 -03:00
parent e3da7790d3
commit 44b318521f
3 changed files with 4 additions and 4 deletions

View file

@ -14,7 +14,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 yapf pytest pytest-cov
pip install flake8 "yapf>=0.33" pytest pytest-cov
pip install -r server/requirements.txt
pip install -r server/test_requirements.txt
- name: Lint with flake8

View file

@ -36,7 +36,7 @@ unit_tests:
- /^testnet_prod_.*/
- /^misc_.*/
before_script:
- pip install flake8 yapf pytest pytest-cov
- pip install flake8 "yapf>=0.33" pytest pytest-cov
- pip install -r server/requirements.txt
- pip install -r server/test_requirements.txt
script:

View file

@ -140,8 +140,8 @@ def expire_unpaid_invoices():
"""
invoices_to_expire = Invoice.query.filter(
and_(Invoice.status == constants.InvoiceStatus.pending.value,
func.datetime(Invoice.expires_at) <
datetime.datetime.utcnow())).all()
func.datetime(Invoice.expires_at)
< datetime.datetime.utcnow())).all()
expired_orders = []
for invoice in invoices_to_expire:
expire_invoice(invoice)