-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
incorporating pre-commit checks (#48)
* formatted everything with ruff * incorporating pre-commit checks
- Loading branch information
1 parent
249c0eb
commit deaada0
Showing
31 changed files
with
1,421 additions
and
3,360 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,4 +40,3 @@ jobs: | |
|
||
- name: Pytest | ||
run: pytest | ||
|
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.2.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
exclude: 'tests/test_data/.*' | ||
|
||
- id: end-of-file-fixer | ||
exclude: 'tests/test_data/.*' | ||
|
||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.6.6 | ||
hooks: | ||
- id: ruff | ||
args: [ --fix ] | ||
exclude: 'tests/test_data/.*' | ||
|
||
- id: ruff-format | ||
exclude: 'tests/test_data/.*' |
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,28 +1,28 @@ | ||
# Setting up the environment | ||
# Setting up the environment | ||
|
||
1. Clone the repository and enter it: | ||
1. Clone the repository and enter it: | ||
```shell | ||
git clone [email protected]:raphael-group/paste3.git | ||
cd paste3 | ||
``` | ||
2. Create and activate a conda environment using the provided `environment.yml` file: | ||
2. Create and activate a conda environment using the provided `environment.yml` file: | ||
```shell | ||
conda env create --file environment.yml | ||
conda activate paste | ||
``` | ||
The command prompt will change to indicate the new conda environment by prepending `(paste)`. | ||
3. When you are done using the package, deactivate the `paste` environment and return to `(base)` by entering the following command: | ||
The command prompt will change to indicate the new conda environment by prepending `(paste)`. | ||
3. When you are done using the package, deactivate the `paste` environment and return to `(base)` by entering the following command: | ||
```shell | ||
conda deactivate | ||
``` | ||
|
||
# Installation | ||
# Installation | ||
|
||
1. Enter the `paste3` repository cloned before setting up the environment | ||
```shell | ||
cd paste3 | ||
``` | ||
2. Install the package: | ||
```shell | ||
pip install . | ||
``` | ||
pip install . | ||
``` |
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 |
---|---|---|
|
@@ -70,4 +70,3 @@ Miscellaneous | |
|
||
helper.filter_for_common_genes | ||
helper.match_spots_using_spatial_heuristic | ||
|
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.