Skip to content

Commit 1793a08

Browse files
clean: remove unused imports (#147)
- Remove unused imports - Standardize spelling of "analysing" throughout code and docs
1 parent a1c2902 commit 1793a08

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The architecture for the full workflow is the following:
1616
![Full workflow architecture](docs/archi-idd-IDD.drawio.png)
1717

1818

19-
The hydra crawler is one of the components of the architecture. It will check if resource is available, analyze the type of file if the resource has been modified, and analyze the CSV content. It will also convert CSV resources to database tables and send the data to a udata instance.
19+
The hydra crawler is one of the components of the architecture. It will check if resource is available, analyse the type of file if the resource has been modified, and analyse the CSV content. It will also convert CSV resources to database tables and send the data to a udata instance.
2020

2121
![Crawler architecture](docs/hydra.drawio.png)
2222

@@ -302,7 +302,7 @@ UDATA_URI_API_KEY = "example.api.key"
302302
SENTRY_DSN = "https://{my-sentry-dsn}"
303303
```
304304

305-
The webhook integration sends HTTP messages to `udata` when resources are analyzed or checked to fill resources extras.
305+
The webhook integration sends HTTP messages to `udata` when resources are analysed or checked to fill resources extras.
306306

307307
Regarding analysis, there is a phase called "change detection". It will try to guess if a resource has been modified based on different criterions:
308308
- harvest modified date in catalog

tests/test_api.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from yarl import URL
1515

1616
from tests.conftest import DATASET_ID, RESOURCE_ID
17-
from udata_hydra.crawl import RESOURCE_RESPONSE_STATUSES
1817
from udata_hydra.db.resource import Resource
1918

2019
pytestmark = pytest.mark.asyncio

udata_hydra/routes/checks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from marshmallow import ValidationError
77

88
from udata_hydra import config, context
9-
from udata_hydra.crawl import RESOURCE_RESPONSE_STATUSES, check_url
9+
from udata_hydra.crawl import check_url
1010
from udata_hydra.db.check import Check
1111
from udata_hydra.db.resource import Resource
1212
from udata_hydra.schemas import CheckSchema

0 commit comments

Comments
 (0)