issues
search
irtazahashmi
/
pytspl
A Python library for Topological Signal Processing and Learning.
MIT License
4
stars
0
forks
source link
Library improvements
#11
Closed
irtazahashmi
closed
6 months ago
irtazahashmi
commented
8 months ago
Recommended improvements:
Poetry for managing dependencies and building packages (including publishing them to PyPI):
https://python-poetry.org/
Guides on scientific Python packages:
https://www.pyopensci.org/python-packaging-science.html
The guides are very comprehensive. This part touches on the recommended package layout that I mentioned (“src/package” layout):
https://www.pyopensci.org/python-package-guide/package-structure-code/python-package-structure.html
Make sure you add a
init
.py inside “sclibrary” (Done)
Use pre-commit hooks to automatically run formatter, linter etc. before committing code:
https://www.pyopensci.org/python-package-guide/package-structure-code/code-style-linting-format.html
They also mention “ruff” which I can really recommend:
https://docs.astral.sh/ruff/
. It can replace multiple tools like black, isort, flake8. It can be configured in pyproject.toml and has IDE extension.
Recommended improvements: