-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
3daf71b
commit d16b209
Showing
32 changed files
with
75 additions
and
68 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[run] | ||
omit = | ||
bam_data_store/_version.py | ||
bam_masterdata/_version.py | ||
*/__init__.py |
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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[submodule "bam_data_store/dependencies/openbisschema"] | ||
path = bam_data_store/dependencies/openbisschema | ||
[submodule "bam_masterdata/dependencies/openbisschema"] | ||
path = bam_masterdata/dependencies/openbisschema | ||
url = https://git.bam.de/bam-data-store/development/openbisschema.git |
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
# BAMDataStore | ||
|
||
This is the main repository of the BAM Data Store project. This is both a Python package and a web connecting the different resources for the Data Store. | ||
# BAM Masterdata | ||
|
||
The BAM Masterdata is a repository containing all the masterdata schema defining in BAM, as well as some utility functions to handle the masterdata. | ||
|
||
<!-- | ||
## Getting started | ||
|
@@ -11,45 +10,51 @@ This is the main repository of the BAM Data Store project. This is both a Python | |
## Development | ||
|
||
If you want to develop locally this package, clone the project and enter in the workspace folder: | ||
|
||
```sh | ||
git clone https://git.bam.de/bam-data-store/bam-data-store.git | ||
cd bam-data-store | ||
git clone https://git.bam.de/bam-data-store/bam-masterdata.git | ||
cd bam-masterdata | ||
``` | ||
|
||
Create a virtual environment (you can use Python>3.9) in your workspace: | ||
|
||
```sh | ||
python3 -m venv .venv | ||
source .venv/bin/activate | ||
``` | ||
|
||
Run the following script: | ||
|
||
```sh | ||
./scripts/install_python_dependencies | ||
``` | ||
|
||
|
||
### Run the tests | ||
|
||
You can locally run the tests by doing: | ||
|
||
```sh | ||
python -m pytest -sv tests | ||
``` | ||
|
||
where the `-s` and `-v` options toggle the output verbosity. | ||
|
||
You can also generate a local coverage report: | ||
|
||
```sh | ||
python -m pytest --cov=src tests | ||
``` | ||
|
||
### Run auto-formatting and linting | ||
|
||
We use [Ruff](https://docs.astral.sh/ruff/) for formatting and linting the code following the rules specified in the `pyproject.toml`. You can run locally: | ||
|
||
```sh | ||
ruff check . | ||
``` | ||
|
||
This will produce an output with the specific issues found. In order to auto-fix them, run: | ||
|
||
```sh | ||
ruff format . --check | ||
``` | ||
|
@@ -93,21 +98,25 @@ The settings configuration file `.vscode/settings.json` automatically applies th | |
### Documentation on Github pages | ||
|
||
To view the documentation locally, make sure to have installed the extra packages (this is part of the `scripts/install_python_dependencies.sh`, so if you ran this script before, you don't need to do it again now): | ||
|
||
```sh | ||
uv pip install -e '[docu]' | ||
``` | ||
|
||
The first time, build the server: | ||
|
||
```sh | ||
mkdocs build | ||
``` | ||
|
||
Run the documentation server: | ||
|
||
```sh | ||
mkdocs serve | ||
``` | ||
|
||
The output looks like: | ||
|
||
```sh | ||
INFO - Building documentation... | ||
INFO - Cleaning site directory | ||
|
@@ -119,12 +128,12 @@ Simply click on `http://127.0.0.1:8000/`. The changes in the `md` files of the d | |
|
||
## Main contributors | ||
|
||
| Name | E-mail | Role | | ||
|------|------------|--------| | ||
| Dr. Angela Ariza | [[email protected]](mailto:[email protected]) | Outreach and Training | | ||
| Caroline Demidova | [[email protected]](mailto:[email protected]) | Outreach and Training | | ||
| Daniel Kosztyla | [[email protected]](mailto:[email protected]) | IT | | ||
| Carlos Madariaga | [[email protected]](mailto:[email protected]) | Software Developer | | ||
| Kristina Meindl | [[email protected]](mailto:[email protected]) | Project Manager | | ||
| Dr. Jose M. Pizarro | [[email protected]](mailto:[email protected]) | Data Management | | ||
| Jörg Rädler | [[email protected]](mailto:[email protected]) | IT | | ||
| Name | E-mail | Role | | ||
| ------------------- | ------------------------------------------------------------ | --------------------- | | ||
| Dr. Angela Ariza | [[email protected]](mailto:[email protected]) | Outreach and Training | | ||
| Caroline Demidova | [[email protected]](mailto:[email protected]) | Outreach and Training | | ||
| Daniel Kosztyla | [[email protected]](mailto:[email protected]) | IT | | ||
| Carlos Madariaga | [[email protected]](mailto:[email protected]) | Software Developer | | ||
| Kristina Meindl | [[email protected]](mailto:[email protected]) | Project Manager | | ||
| Dr. Jose M. Pizarro | [[email protected]](mailto:[email protected]) | Data Management | | ||
| Jörg Rädler | [[email protected]](mailto:[email protected]) | IT | |
Submodule openbisschema
deleted from
f27dda
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
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.
4 changes: 2 additions & 2 deletions
4
bam_data_store/datamodel/collection_types.py → bam_masterdata/datamodel/collection_types.py
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.
4 changes: 2 additions & 2 deletions
4
bam_data_store/datamodel/object_types.py → bam_masterdata/datamodel/object_types.py
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
2 changes: 1 addition & 1 deletion
2
bam_data_store/datamodel/property_types.py → bam_masterdata/datamodel/property_types.py
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
4 changes: 2 additions & 2 deletions
4
bam_data_store/datamodel/vocabulary_types.py → bam_masterdata/datamodel/vocabulary_types.py
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.
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.
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
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
Oops, something went wrong.
d16b209
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage Report