mirror of
https://github.com/Blockstream/satellite-api.git
synced 2025-02-20 12:54:28 +01:00
yapf: Update format to yapf 0.33
This commit is contained in:
parent
e3da7790d3
commit
44b318521f
3 changed files with 4 additions and 4 deletions
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue