Skip to content

Commit

Permalink
Merge branch 'main' into hic-converter
Browse files Browse the repository at this point in the history
  • Loading branch information
droumis committed Dec 12, 2024
2 parents 4e76003 + 2066983 commit d88b3b6
Show file tree
Hide file tree
Showing 26 changed files with 783 additions and 317 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Run tests
on:
pull_request:
push:
branches: [main]
paths-ignore:
- "docs/"
- "notebooks/"
- "scripts/"

jobs:
test:
strategy:
matrix:
os: [ubuntu-latest]
version: ["3.10", "3.11", "3.12"]

runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev,test]
- name: Run ruff
uses: astral-sh/ruff-action@v2

- name: Run tests
run: |
pytest -v tests --cov=src/holoseq --cov-append
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ share/python-wheels/
.installed.cfg
*.egg
MANIFEST
environment.yaml

# PyInstaller
# Usually these files are written by a python script from a template
Expand Down
45 changes: 45 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-toml
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
- id: check-illegal-windows-names
- id: check-json
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
- id: no-commit-to-branch
- id: pretty-format-json
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.0
hooks:
- id: ruff
types_or:
- python
- pyi
args:
- --fix
- --exit-non-zero-on-fix
- id: ruff-format
types_or:
- python
- pyi

- repo: https://github.com/executablebooks/mdformat
rev: 0.7.19
hooks:
- id: mdformat
types:
- markdown
language: python
args:
- --wrap
- "100"
119 changes: 0 additions & 119 deletions HoloSeqOverview.md

This file was deleted.

Loading

0 comments on commit d88b3b6

Please sign in to comment.