Skip to content

Commit 7fcd1dd

Browse files
committed
uv
1 parent 8ae61a2 commit 7fcd1dd

3 files changed

Lines changed: 959 additions & 7 deletions

File tree

README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ A typical use case is determining whether reordered, renamed or otherwise bit-in
88

99
By default, seqsum outputs both individual and aggregate checksums when supplied with more than one sequence. This can be modified with the flags `--individual` (`-i`) or `--aggregate` (`-a`).
1010

11+
Uses the excellent library [`dnaio`](https://github.com/marcelm/dnaio) efficient sequence parsing.
12+
1113

1214

1315
## Install
@@ -20,13 +22,17 @@ pip install seqsum
2022

2123

2224

23-
**Development install**
25+
## Development
26+
27+
Development uses [uv](https://docs.astral.sh/uv/).
2428

25-
```# Development
29+
```bash
2630
git clone https://github.com/bede/seqsum.git
2731
cd seqsum
28-
pip install --editable '.[dev]'
29-
pytest
32+
uv sync
33+
uv run pytest
34+
uv run pre-commit install
35+
uv run pre-commit run --all-files
3036
```
3137

3238

@@ -41,7 +47,7 @@ MN908947.3 ca5e95436b957f93
4147
# Fasta with two records
4248
$ seqsum nt MN908947-BA_2_86_1.fasta
4349
MN908947.3 ca5e95436b957f93
44-
BA.2.86.1 d5f014ee6745cb77
50+
BA.2.86.1 d5f014ee6745cb77
4551
aggregate 837cfd6836b9a406
4652

4753
# Fasta with two records, only show the aggregate checksum
@@ -116,4 +122,3 @@ print(aggregate_checksum)
116122
# {'MN908947.3': 'ca5e95436b957f93', 'BA.2.86.1': 'd5f014ee6745cb77'}
117123
# 837cfd6836b9a406
118124
```
119-

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,13 @@ Home = "https://github.com/bede/seqsum"
2424
[project.scripts]
2525
seqsum = "seqsum.cli:main"
2626

27-
[project.optional-dependencies]
27+
[dependency-groups]
2828
dev = [
2929
"pytest>=7.4.3",
3030
"pre-commit>=3.5.0",
3131
"ruff>=0.1.5",
3232
"flit>=3.9.0"
3333
]
34+
35+
[tool.uv]
36+
default-groups = ["dev"]

0 commit comments

Comments
 (0)