Skip to content

Commit

Permalink
Merge pull request #348 from allcaps/test-actions
Browse files Browse the repository at this point in the history
Black
  • Loading branch information
geertjanvdenbosch authored Jul 12, 2024
2 parents 957b44f + 625b079 commit aedc634
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ jobs:
run: python -m pytest --cov-fail-under=90

- name: Verify dependencies
run: python -m safety check
# Jinja, https://data.safetycli.com/v/70612/97c
run: python -m safety check --ignore 70612

- name: Verify code style
run: python -m flake8 -v
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ test: develop
$(PYTHON) -m flake8
$(PYTHON) -m mypy --config mypy.ini mollie/
$(PYTHON) -m pytest
$(PYTHON) -m safety check
# Jinja, https://data.safetycli.com/v/70612/97c
$(PYTHON) -m safety check --ignore 70612


dist/mollie_api_python-*-py3-none-any.whl: virtualenv
Expand Down
2 changes: 1 addition & 1 deletion examples/01-new-payment-using-qrcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def main():
{
"amount": {"currency": "EUR", "value": "120.00"},
"description": "My first API payment",
"method": "ideal", # for the QR code to work, this must be either ideal or bancontact
"method": "ideal", # for the QR code to work, this must be either ideal or bancontact
"webhookUrl": f"{PUBLIC_URL}02-webhook-verification",
"redirectUrl": f"{PUBLIC_URL}03-return-page?my_webshop_id={my_webshop_id}",
"metadata": {"my_webshop_id": str(my_webshop_id)},
Expand Down
12 changes: 4 additions & 8 deletions mollie/api/objects/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,21 +72,17 @@ def has_previous(self):
return self._get_link("previous") is not None

@abstractmethod
def get_next(self):
...
def get_next(self): ...

@abstractmethod
def get_previous(self):
...
def get_previous(self): ...

@property
@abstractmethod
def object_type(self):
...
def object_type(self): ...

@abstractmethod
def new(self, result):
...
def new(self, result): ...


class PaginationList(ListBase):
Expand Down

0 comments on commit aedc634

Please sign in to comment.