Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# .coveragerc to control coverage.py
[run]
branch = True
source = expressionatlas
source = pyexpressionatlas
# omit = bad_file.py

[paths]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Cache Expression Atlas data
uses: actions/cache@v4
with:
path: ~/.cache/pyexpressionatlas_bfc
key: ${{ runner.os }}-pyexpressionatlas-bfc-${{ hashFiles('tests/**') }}
restore-keys: |
${{ runner.os }}-pyexpressionatlas-bfc-

- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
Expand Down
8 changes: 8 additions & 0 deletions .github/run-tests.yml → .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Cache Expression Atlas data
uses: actions/cache@v4
with:
path: ~/.cache/pyexpressionatlas_bfc
key: ${{ runner.os }}-pyexpressionatlas-bfc-${{ hashFiles('tests/**') }}
restore-keys: |
${{ runner.os }}-pyexpressionatlas-bfc-

- uses: actions/setup-python@v5
id: setup-python
with:
Expand Down
31 changes: 27 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ exclude: '^docs/conf.py'

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: check-added-large-files
Expand All @@ -17,14 +17,37 @@ repos:
- id: mixed-line-ending
args: ['--fix=auto'] # replace 'auto' with 'lf' to enforce Linux/Mac line endings or 'crlf' for Windows

# - repo: https://github.com/PyCQA/docformatter
# rev: master
# hooks:
# - id: docformatter
# additional_dependencies: [tomli]
# args: [--in-place, --wrap-descriptions=120, --wrap-summaries=120]
# # --config, ./pyproject.toml

# - repo: https://github.com/psf/black
# rev: 24.8.0
# hooks:
# - id: black
# language_version: python3

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.8.2
rev: v0.16.2
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
# Run the linter.
- id: ruff-check
args: [--fix, --exit-zero]
# Run the formatter.
- id: ruff-format

## If like to embrace black styles even in the docs:
# - repo: https://github.com/asottile/blacken-docs
# rev: v1.13.0
# hooks:
# - id: blacken-docs
# additional_dependencies: [black]

## Check for misspells in documentation files:
# - repo: https://github.com/codespell-project/codespell
# rev: v2.2.5
Expand Down
7 changes: 3 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Changelog

## Version 0.1 (development)
## Version 0.0.1

- Feature A added
- FIX: nasty bug #1729 fixed
- add your changes here!
- Initial version of the package to support access to datasets from expression atlas.
- Uses `rd2py` to read RDS files and supports bulk RNA-seq, and single-cell RNA-seq datasets.
26 changes: 13 additions & 13 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

# Contributing

Welcome to `expressionatlas` contributor's guide.
Welcome to `pyexpressionatlas` contributor's guide.

This document focuses on getting any potential contributor familiarized with
the development processes, but [other kinds of contributions] are also appreciated.
Expand All @@ -43,7 +43,7 @@ behavior guidelines.

## Issue Reports

If you experience bugs or general issues with `expressionatlas`, please have a look
If you experience bugs or general issues with `pyexpressionatlas`, please have a look
on the [issue tracker].
If you don't see anything useful there, please feel free to fire an issue report.

Expand All @@ -61,10 +61,10 @@ you help us to identify the root cause of the issue.

## Documentation Improvements

You can help improve `expressionatlas` docs by making them more readable and coherent, or
You can help improve `pyexpressionatlas` docs by making them more readable and coherent, or
by adding missing information and correcting mistakes.

`expressionatlas` documentation uses [Sphinx] as its main documentation compiler.
`pyexpressionatlas` documentation uses [Sphinx] as its main documentation compiler.
This means that the docs are kept in the same repository as the project code, and
that any documentation update is done in the same way was a code contribution.

Expand All @@ -77,7 +77,7 @@ that any documentation update is done in the same way was a code contribution.

:::{tip}
Please notice that the [GitHub web interface] provides a quick way of
propose changes in `expressionatlas`'s files. While this mechanism can
propose changes in `pyexpressionatlas`'s files. While this mechanism can
be tricky for normal code contributions, it works perfectly fine for
contributing to the docs, and can be quite handy.

Expand Down Expand Up @@ -134,8 +134,8 @@ source <PATH TO VENV>/bin/activate
or [Miniconda]:

```
conda create -n expressionatlas python=3 six virtualenv pytest pytest-cov
conda activate expressionatlas
conda create -n pyexpressionatlas python=3 six virtualenv pytest pytest-cov
conda activate pyexpressionatlas
```

### Clone the repository
Expand All @@ -148,8 +148,8 @@ conda activate expressionatlas
3. Clone this copy to your local disk:

```
git clone git@github.com:YourLogin/expressionatlas.git
cd expressionatlas
git clone git@github.com:YourLogin/pyexpressionatlas.git
cd pyexpressionatlas
```

4. You should run:
Expand All @@ -170,7 +170,7 @@ conda activate expressionatlas
pre-commit install
```

`expressionatlas` comes with a lot of hooks configured to automatically help the
`pyexpressionatlas` comes with a lot of hooks configured to automatically help the
developer to check the code being written.

### Implement your changes
Expand Down Expand Up @@ -314,7 +314,7 @@ package:

If you are part of the group of maintainers and have correct user permissions
on [PyPI], the following steps can be used to release a new version for
`expressionatlas`:
`pyexpressionatlas`:

1. Make sure all unit tests are successful.
2. Tag the current commit on the main branch with a release tag, e.g., `v1.2.3`.
Expand Down Expand Up @@ -367,5 +367,5 @@ on [PyPI], the following steps can be used to release a new version for
```{todo} Please review and change the following definitions:
```

[repository]: https://github.com/<USERNAME>/expressionatlas
[issue tracker]: https://github.com/<USERNAME>/expressionatlas/issues
[repository]: https://github.com/<USERNAME>/pyexpressionatlas
[issue tracker]: https://github.com/<USERNAME>/pyexpressionatlas/issues
Loading
Loading