-
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.
fix: switch from setup.py to pyproject toml (#526)
- Loading branch information
Showing
236 changed files
with
596 additions
and
864 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
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 |
---|---|---|
|
@@ -37,34 +37,47 @@ You can of course clone the code anywhere you like. | |
$ cd ~/Development/pipeline_dev | ||
$ git clone [email protected]:bihealth/snappy-pipeline.git | ||
$ cd snappy_pipeline | ||
$ pip install -e . | ||
$ pip install -r requirements/dev.txt | ||
$ conda env create -n snappy_dev --file environment.yaml | ||
$ conda activate snappy_dev | ||
$ pip install -e ".[all]" | ||
It's also a good idea to install some packages required for testing through conda: | ||
Installing pre-commit-hooks | ||
=========================== | ||
To make it easier to follow the coding style, we use `pre-commit <https://pre-commit.com>`_ hooks. | ||
These hooks will run the style checks before you commit your changes and will automatically fix some issues. | ||
|
||
First, install the pre-commit package (if not already installed, part of the optional dependency group ``dev``): | ||
|
||
.. code-block:: shell | ||
$ conda install pre-commit # or pip install pre-commit | ||
Then, install the pre-commit hooks: | ||
|
||
.. code-block:: shell | ||
$ conda env update --name root --file environment.yaml | ||
$ pre-commit install | ||
(If you do not do this, please make sure that you have git-lfs in your PATH through other means) | ||
The next time you commit changes, the pre-commit hooks will run automatically. | ||
|
||
Running the Tests | ||
================= | ||
|
||
To run the tests, you need to add the packages in ``requirements/test.txt``. | ||
To run the tests, simply invoke ``pytest`` (part of the optional dependency group ``test``): | ||
|
||
.. code-block:: shell | ||
$ cd ~/Development/pipeline_dev | ||
$ py.test | ||
$ pytest | ||
Running the Style Checks | ||
======================== | ||
|
||
.. code-block:: shell | ||
$ cd ~/Development/pipeline_dev | ||
$ flake8 | ||
$ make lint | ||
Developer Documentation | ||
======================= | ||
|
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.