-
Notifications
You must be signed in to change notification settings - Fork 4
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
Your Name
committed
May 2, 2024
1 parent
6232279
commit 344df6b
Showing
2 changed files
with
8 additions
and
30 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,33 +1,19 @@ | ||
install: | ||
@echo "Installing package and required dependencies" | ||
pip install -e .[dev,test,docs] | ||
validate-datasets: | ||
@echo "Validate that all datasets are correctly formatted" | ||
@echo "Note that this command assumed you have the 'dfm-data' folder and the github repo folder 'danish-foundation-models' during UCloud setup" | ||
python data-processing/scripts/dataset_validator.py --dataset_folder /work/dfm-data/pre-training --datasheets_folder /work/danish-foundation-models/docs/datasheets | ||
|
||
test: | ||
@echo "Running tests" | ||
pytest src | ||
data-processing-install: | ||
@echo "Installing package and required dependencies" | ||
pip install -e "data-processing/.[dev,test,docs]" | ||
|
||
lint: | ||
@echo "Linting code" | ||
ruff check src --fix | ||
black . | ||
|
||
type-check: | ||
@echo "Type-checking code-base" | ||
pyright src | ||
|
||
validate: | ||
@echo "Running all checks" | ||
make lint | ||
make type-check | ||
make test | ||
|
||
pr: | ||
@echo "Running relevant checks before PR" | ||
make validate | ||
gh pr create -w | ||
|
||
docs-serve: | ||
@echo "Serving documentation" | ||
@echo "Make sure you have installed docs:" | ||
@echo "pip install -e .[docs]" | ||
@echo "pip install -r docs/requirements.txt" | ||
mkdocs serve |