Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (16.0%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: RECETOX
- License: mit
- Language: Python
- Default Branch: master
- Size: 186 KB
Statistics
- Stars: 0
- Watchers: 6
- Forks: 2
- Open Issues: 2
- Releases: 1
Metadata Files
README.dev.md
rcx_tk developer documentation
If you're looking for user documentation, go here.
Package installation
To create a new environment, use the micromamba:
console
micromamba create -n rcx-tk poetry
micromamba activate rcx-tk
To install all dependencies specified in the pyproject.toml file, use poetry:
console
poetry install
A command line interface was also implemented using Click, so the package can be run by either using python3:
console
python3 -m rcx_tk --method='' <path-to-input-data> <path-to-output-data>
or using poetry:
console
poetry run rcx_tk --method='' <file-path-to-input-data> <file-path-to-output-data>
Running the tests
There are two ways to run tests.
The first way requires an activated virtual environment with the development tools installed:
shell
pytest -v
The second is to use tox, which can be installed separately (e.g. with pip install tox), i.e. not necessarily inside the virtual environment you use for installing rcx_tk, but then builds the necessary virtual environments itself by simply running:
shell
tox
Testing with tox allows for keeping the testing environment separate from your development environment.
The development environment will typically accumulate (old) packages during development that interfere with testing; this problem is avoided by testing with tox.
Test coverage
In addition to just running the tests to see if they pass, they can be used for coverage statistics, i.e. to determine how much of the package's code is actually executed during tests. In an activated virtual environment with the development tools installed, inside the package directory, run:
shell
coverage run
This runs tests and stores the result in a .coverage file.
To see the results on the command line, run
shell
coverage report
coverage can also generate output in HTML and other formats; see coverage help for more information.
Running linters locally
For linting and sorting imports we will use ruff. Running the linters requires an activated virtual environment with the development tools installed.
```shell
linter
ruff .
linter with automatic fixing
ruff . --fix ```
To fix readability of your code style you can use yapf.
You can enable automatic linting with ruff on commit by enabling the git hook from .githooks/pre-commit, like so:
shell
git config --local core.hooksPath .githooks
Generating the API docs
shell
cd docs
make html
The documentation will be in docs/_build/html
If you do not have make use
shell
sphinx-build -b html docs docs/_build/html
To find undocumented Python objects run
shell
cd docs
make coverage
cat _build/coverage/python.txt
To test snippets in documentation run
shell
cd docs
make doctest
Versioning
Bumping the version across all files is done with bump-my-version, e.g.
shell
poetry version major # bumps from e.g. 0.3.2 to 1.0.0
poetry version minor # bumps from e.g. 0.3.2 to 0.4.0
poetry version patch # bumps from e.g. 0.3.2 to 0.3.3
Making a release
This section describes how to make a release in 3 parts:
- preparation
- making a release on PyPI
- making a release on GitHub
(1/3) Preparation
- Update the
(don't forget to update links at bottom of page) - Verify that the information in
CITATION.cffis correct. - Make sure the version has been updated.
- Run the unit tests with
pytest -v
(2/3) PyPI
In a new terminal:
```shell
OPTIONAL: prepare a new directory with fresh git clone to ensure the release
has the state of origin/main branch
cd $(mktemp -d rcx_tk.XXXXXX) git clone git@github.com:RECETOX/rcx-tk . ```
Create and activate a new environment:
console
micromamba create -n rcx-tk-pypi poetry
micromamba activate rcx-tk-pypi
Create an account on PyPI.
In the Account settings, find the API tokens section and click on "Add API token". Copy your token.
Add your API token to Poetry:
console
poetry config pypi-token.pypi your-api-token
Build your project:
console
poetry build
Publish your package to PyPI:
console
poetry publish
(3/3) GitHub
Don't forget to also make a release on GitHub. If your repository uses the GitHub-Zenodo integration this will also trigger Zenodo into making a snapshot of your repository and sticking a DOI on it.
Owner
- Name: RECETOX
- Login: RECETOX
- Kind: organization
- Location: Brno, Czechia
- Website: https://www.recetox.muni.cz/
- Twitter: RECETOX
- Repositories: 17
- Profile: https://github.com/RECETOX
At RECETOX we are engaged in research and education in the management of environmental and health risks associated with the chemicals around us.
Citation (CITATION.cff)
# YAML 1.2
---
cff-version: "1.2.0"
title: "rcx_tk"
authors:
-
family-names: Ahmad
given-names: Zargham
orcid: "https://orcid.org/0000-0000-0000-0000"
date-released: 2024-06-19
version: "0.1.0"
repository-code: "https://github.com/RECETOX/rcx-tk"
keywords:
- rcx
- process metadata
- alkanes
- metabolomics
message: "If you use this software, please cite it using these metadata."
license: MIT
GitHub Events
Total
- Issues event: 1
- Member event: 2
Last Year
- Issues event: 1
- Member event: 2
Packages
- Total packages: 1
-
Total downloads:
- pypi 11 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 1
- Total maintainers: 1
pypi.org: rcx-tk
This package adjusts and cleans the metadata file provided by a user.
- Documentation: https://rcx-tk.readthedocs.io/
- License: MIT
-
Latest release: 0.1.0
published almost 2 years ago
Rankings
Maintainers (1)
Dependencies
- actions/checkout v3 composite
- actions/setup-python v3 composite
- actions/checkout v3 composite
- citation-file-format/cffconvert-github-action 2.0.0 composite
- actions/checkout v2 composite
- actions/setup-python v3 composite
- actions/checkout v3 composite
- gaurav-nelson/github-action-markdown-link-check v1 composite
- SonarSource/sonarcloud-github-action master composite
- actions/checkout v3 composite
- actions/setup-python v3 composite