-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
368 changed files
with
439 additions
and
670 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,12 +49,10 @@ hatch shell | |
Use the following command to build the container: | ||
|
||
```bash tabs=CLI | ||
make docker | ||
hatch run image | ||
``` | ||
|
||
This should take care of setting up everything. If the container is | ||
built without errors, you can then run commands like `make` inside the | ||
container to accomplish various tasks (see the next section for details). | ||
This should take care of setting up everything. If the container is built without errors, you can then run commands like `hatch` inside the container to accomplish various tasks (see the next section for details). | ||
|
||
To make things easier, we can create an alias: | ||
|
||
|
@@ -65,7 +63,7 @@ alias "frictionless-dev=docker run --rm -v $PWD:/home/frictionless -it frictionl | |
Then, for example, to run the tests, we can use: | ||
|
||
```bash tabs=CLI | ||
frictionless-dev make test | ||
frictionless-dev hatch run test | ||
``` | ||
|
||
## Development | ||
|
@@ -74,13 +72,11 @@ frictionless-dev make test | |
|
||
Frictionless is a Python3.8+ framework, and it uses some common Python tools for the development process (we recommend enabling support of these tools in your IDE): | ||
|
||
- code linting: `ruff` | ||
- import sorting: `isort` | ||
- code formatting: `black` | ||
- linting/formatting: `ruff` | ||
- type checking: `pyright` | ||
- code testing: `pytest` | ||
|
||
You also need `git` to work on the project, and `make` is recommended. | ||
You also need `git` to work on the project. | ||
|
||
### Documentation | ||
|
||
|
@@ -117,33 +113,44 @@ def vcr_config(): | |
- Setup CKAN local instance: https://github.com/okfn/docker-ckan | ||
- Create a sysadmin account and generate api token | ||
- Set apikey token in .env file | ||
|
||
``` | ||
CKAN_APIKEY=*************************** | ||
``` | ||
|
||
#### Regenerating cassettes for Zenodo | ||
|
||
**Read** | ||
|
||
- To read, we need to use live site, the api library uses it by default. | ||
- Login to zenodo if you have an account and create an access token. | ||
- Set access token in .env file. | ||
|
||
``` | ||
ZENODO_ACCESS_TOKEN=*************************** | ||
``` | ||
|
||
**Write** | ||
|
||
- To write we can use either live site or sandbox. We recommend to use sandbox (https://sandbox.zenodo.org/api/). | ||
- Login to zenodo(sandbox) if you have an account and create an access token. | ||
- Set access token in .env file. | ||
|
||
``` | ||
ZENODO_SANDBOX_ACCESS_TOKEN=*************************** | ||
``` | ||
|
||
- Set base_url in the control params | ||
|
||
``` | ||
base_url='base_url="https://sandbox.zenodo.org/api/' | ||
``` | ||
|
||
#### Regenerating cassettes for Github | ||
|
||
- Login to github if you have an account and create an access token(Developer settings > Personal access tokens > Tokens). | ||
- Set access token and other details in .env file. If email/name of the user is hidden we need to provide those details as well. | ||
|
||
``` | ||
GITHUB_NAME=FD | ||
[email protected] | ||
|
@@ -153,8 +160,9 @@ GITHUB_ACCESS_TOKEN=*************************** | |
## Releasing | ||
|
||
To release a new version: | ||
|
||
- check that you have push access to the `main` branch | ||
- run `hatch version <major|minor|micro>` to update the version | ||
- add changes to `CHANGELOG.md` if it's not a patch release (major or minor) | ||
- run `make release` which create a release commit and tag and push it to Github | ||
- run `hatch run release` which create a release commit and tag and push it to Github | ||
- an actual release will happen on the Github CI platform after running the tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,43 @@ | ||
from .actions import convert, describe, extract, index, list, transform, validate | ||
from .analyzer import Analyzer | ||
from .catalog import Catalog, Dataset | ||
from .checklist import Check, Checklist | ||
from .detector import Detector | ||
from .dialect import Control, Dialect | ||
from .error import Error | ||
from .exception import FrictionlessException | ||
from .indexer import Indexer | ||
from .inquiry import Inquiry, InquiryTask | ||
from .metadata import Metadata | ||
from .package import Package | ||
from .pipeline import Pipeline, Step | ||
from .platform import Platform, platform | ||
from .report import Report, ReportTask | ||
from .resource import Resource | ||
from .schema import Field, Schema | ||
from .actions import convert as convert | ||
from .actions import describe as describe | ||
from .actions import extract as extract | ||
from .actions import list as list | ||
from .actions import transform as transform | ||
from .actions import validate as validate | ||
from .analyzer import Analyzer as Analyzer | ||
from .catalog import Catalog as Catalog | ||
from .catalog import Dataset as Dataset | ||
from .checklist import Check as Check | ||
from .checklist import Checklist as Checklist | ||
from .detector import Detector as Detector | ||
from .dialect import Control as Control | ||
from .dialect import Dialect as Dialect | ||
from .error import Error as Error | ||
from .exception import FrictionlessException as FrictionlessException | ||
from .indexer import Indexer as Indexer | ||
from .inquiry import Inquiry as Inquiry | ||
from .inquiry import InquiryTask as InquiryTask | ||
from .metadata import Metadata as Metadata | ||
from .package import Package as Package | ||
from .pipeline import Pipeline as Pipeline | ||
from .pipeline import Step as Step | ||
from .platform import Platform as Platform | ||
from .platform import platform as platform | ||
from .report import Report as Report | ||
from .report import ReportTask as ReportTask | ||
from .resource import Resource as Resource | ||
from .schema import Field as Field | ||
from .schema import Schema as Schema | ||
from .settings import VERSION as __version__ | ||
from .system import Adapter, Loader, Mapper, Parser, Plugin, System, system | ||
from .table import Header, Lookup, Row | ||
from .transformer import Transformer | ||
from .validator import Validator | ||
|
||
__all__ = [ | ||
"Adapter", | ||
"Analyzer", | ||
"Catalog", | ||
"Check", | ||
"Checklist", | ||
"Control", | ||
"Dataset", | ||
"Detector", | ||
"Dialect", | ||
"Error", | ||
"Field", | ||
"FrictionlessException", | ||
"Header", | ||
"Indexer", | ||
"Inquiry", | ||
"InquiryTask", | ||
"Loader", | ||
"Lookup", | ||
"Mapper", | ||
"Metadata", | ||
"Package", | ||
"Parser", | ||
"Pipeline", | ||
"Platform", | ||
"Plugin", | ||
"Report", | ||
"ReportTask", | ||
"Resource", | ||
"Row", | ||
"Schema", | ||
"Step", | ||
"System", | ||
"Transformer", | ||
"Validator", | ||
"convert", | ||
"describe", | ||
"extract", | ||
"index", | ||
"list", | ||
"platform", | ||
"system", | ||
"transform", | ||
"validate", | ||
] | ||
from .system import Adapter as Adapter | ||
from .system import Loader as Loader | ||
from .system import Mapper as Mapper | ||
from .system import Parser as Parser | ||
from .system import Plugin as Plugin | ||
from .system import System as System | ||
from .system import system as system | ||
from .table import Header as Header | ||
from .table import Lookup as Lookup | ||
from .table import Row as Row | ||
from .transformer import Transformer as Transformer | ||
from .validator import Validator as Validator |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,4 @@ | ||
from .baseline import baseline | ||
from .baseline import baseline as baseline | ||
from .cell import * | ||
from .row import * | ||
from .table import * | ||
|
||
__all__ = [ | ||
"ascii_value", | ||
"baseline", | ||
"deviated_cell", | ||
"deviated_value", | ||
"duplicate_row", | ||
"forbidden_value", | ||
"required_value", | ||
"row_constraint", | ||
"sequential_value", | ||
"table_dimensions", | ||
"truncated_value", | ||
] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
# Register modules | ||
from . import convert, describe, explore, extract, index, inspect, list, publish, query | ||
from . import script, summary, transform, validate | ||
from . import ( | ||
convert, | ||
describe, | ||
explore, | ||
extract, | ||
index, | ||
inspect, | ||
list, | ||
publish, | ||
query, | ||
script, | ||
summary, | ||
transform, | ||
validate, | ||
) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.