Skip to content

Commit 8218b9e

Browse files
committed
Add CODECOV_TOKEN to GitHub Actions
1 parent 94a5291 commit 8218b9e

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
- name: Upload coverage to Codecov
4848
uses: codecov/codecov-action@v5
4949
with:
50+
token: ${{ secrets.CODECOV_TOKEN }}
5051
file: ./coverage.xml
5152
flags: unittests
5253
name: codecov-umbrella

facturapi/http/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Client:
3030
host: str = API_HOST
3131
client: httpx.Client
3232

33-
def __init__(self):
33+
def __init__(self) -> None:
3434
self.client = httpx.Client()
3535
self.client.headers.update(
3636
{
@@ -43,7 +43,7 @@ def __init__(self):
4343
self.api_key = os.getenv('FACTURAPI_KEY', '')
4444
self.client.auth = httpx.BasicAuth(self.api_key, '')
4545

46-
def configure(self, api_key: str):
46+
def configure(self, api_key: str) -> None:
4747
"""Configure the http client.
4848
4949
Import the client and configure it passing the `API_KEY`
@@ -142,7 +142,7 @@ def download_request(
142142
return response.content
143143

144144
@staticmethod
145-
def _check_response(response: Response):
145+
def _check_response(response: Response) -> None:
146146
if not response.is_success:
147147
raise FacturapiResponseException(
148148
json=response.json(),

facturapi/resources/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def retrieve(cls, id: str) -> Resource:
9090
response = client.get(f'/{cls._resource}/{id}')
9191
return cls._from_dict(response)
9292

93-
def refresh(self):
93+
def refresh(self) -> None:
9494
"""Refresh a resource
9595
9696
Refresh resource's data to be sure its the latest. It

0 commit comments

Comments
 (0)