Skip to content

Commit

Permalink
Merge pull request #29 from mbhall88/feat/force-ignore
Browse files Browse the repository at this point in the history
feat: rework force and ignore
  • Loading branch information
rpetit3 authored Sep 29, 2024
2 parents b9f1622 + fbae091 commit f1d899d
Show file tree
Hide file tree
Showing 11 changed files with 872 additions and 699 deletions.
1 change: 1 addition & 0 deletions .github/workflows/fastq-dl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
run: |
fastq-dl --version
fastq-dl --help
just test --verbosity=2
- name: Test ENA Download
run: |
Expand Down
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### TODO

- rework version to centralize it to the `pyproject.toml` file
- lint
- consider refactoring more
- consider adding back aspera support (now available from bioconda)
- major bump in version

### Added

- `--ignore` to ignore MD5 checksums

### Changed

- (**BREAKING**) the `--force` flag now overwrites existing files, but will check the MD5
checksums of the downloaded files. Previously, it would force download the file, but
ignore the MD5 as well. See https://github.com/rpetit3/fastq-dl/issues/21#issuecomment-2190686184
for more details. Use the newly added `--ignore` flag to ignore MD5 checksums too.

## [2.0.4]

### Fixed
Expand Down
11 changes: 11 additions & 0 deletions fastq_dl/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from pathlib import Path
from typing import Union

PROGRAM = "fastq-dl"
VERSION = "2.0.4"
ENA_FAILED = "ENA_NOT_FOUND"
SRA_FAILED = "SRA_NOT_FOUND"
SRA = "SRA"
ENA = "ENA"
ENA_URL = "https://www.ebi.ac.uk/ena/portal/api/search?result=read_run&format=tsv"
PathLike = Union[str, Path]
Loading

0 comments on commit f1d899d

Please sign in to comment.