Skip to content

Clay-foundation/earth-text

Folders and files

NameName
Last commit message
Last commit date
Jun 10, 2024
Jun 14, 2024
Mar 19, 2024
Jun 10, 2024
Mar 11, 2024
Mar 12, 2024
Mar 11, 2024
Mar 13, 2024
May 22, 2024
Apr 4, 2024
Apr 11, 2024

Repository files navigation

earth-text

Adding language to Clay

Installation

Install Miniconda from here and then run the following commands to create the earth-text-env environment:

conda env create -f environment.yml

conda activate earth-text-env

Next, install the package:

pip install -e .

or if you want development dependencies as well:

pip install -e .[dev]

Optional, but highly recommended

Install pre-commit by running the following command to automatically run code formatting and linting before each commit:

pre-commit install

If using pre-commit, each time you commit, your code will be formatted, linted, checked for imports, merge conflicts, and more. If any of these checks fail, the commit will be aborted.

Adding a new package

To add a new package to the environment, open pyproject.toml file and add the package name to "dependencies" list. Then, run the following command to install the new package:

pip install -e . # or .[dev]