-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from EBI-Metagenomics/dev
Dev
- Loading branch information
Showing
86 changed files
with
1,973 additions
and
641 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Python Tests | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main, dev] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
python-version: [3.9] | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install -r requirements-dev.txt | ||
- name: Run tests | ||
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 |
---|---|---|
@@ -1,9 +1,46 @@ | ||
# Ignore Nextflow-specific files, including logs, cache, and temporary files | ||
.nextflow* | ||
|
||
# Ignore Nextflow's work directory where intermediate files are stored | ||
work/ | ||
data/ | ||
|
||
# Ignore results directory, as this is typically generated output that can be large and recreated | ||
results/ | ||
|
||
# MacOS specific hidden file that stores folder view settings | ||
.DS_Store | ||
|
||
testing/ | ||
testing* | ||
*.pyc | ||
|
||
dbs/ | ||
|
||
node_modules/ | ||
|
||
# Optional: ignore any temporary files created by Python or text editors | ||
__pycache__/ # Python cache directory | ||
*.pyc | ||
*.pyo # Python optimized bytecode files | ||
*.pkl # Pickle files (often generated during data processing) | ||
|
||
# Ignore any virtual environment directories used to isolate Python dependencies | ||
venv/ | ||
env/ | ||
*.venv/ | ||
|
||
# Ignore Jupyter Notebook checkpoints, if notebooks are used for analysis or reporting | ||
.ipynb_checkpoints/ | ||
|
||
# Ignore any temporary, swap, or backup files created by editors like Vim or Emacs | ||
*~ | ||
*.swp | ||
*.swo | ||
*.bak | ||
|
||
.coverage | ||
htmlcov/ | ||
*.cover | ||
reports/ | ||
trace/ | ||
.cache/ | ||
logs/ |
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,5 +1,20 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: "v2.7.1" | ||
rev: "v4.0.0-alpha.8" | ||
hooks: | ||
- id: prettier | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- repo: https://github.com/psf/black | ||
rev: 24.8.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.6.8 | ||
hooks: | ||
- id: ruff | ||
args: [--fix] |
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,12 @@ | ||
line-length = 120 | ||
target-version = "py38" | ||
cache-dir = "~/.cache/ruff" | ||
|
||
[lint] | ||
select = ["I", "E1", "E4", "E7", "E9", "F", "UP", "N"] | ||
|
||
[lint.isort] | ||
known-first-party = ["nf_core"] | ||
|
||
[lint.per-file-ignores] | ||
"__init__.py" = ["E402", "F401"] |
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
Empty file.
Oops, something went wrong.