Right now the project is in experimental phase, so it can be used but I cannot vouch for how stable or reliable it is.
Having said that, I am happy to hear what improvements you would like from it so feel free to open an issue and let me know.
Issue types:
- Feature requests
- Bug reports to make one of these, please include:
- a description of the problem
- a way to reproduce the problem (files/file contents)
- a description of the expected behavior
- General issues
- Questions
Most certainly PRs are welcome, but I would encourage opening an issue first to discuss what would be implemented in the pull request.
This repo uses two main tools to make the developer experience nice.
- Poetry
- Poetry helps with the dependency management, installation, publishing, local environment ...
- pre-commit
- pre-commit helps run all the checks before they get to the main repository.
- formats the code and files.
- runs unit testing.
- organizes dependencies
- runs style checks ...
So if i wanted to start a development environment from scratch I would run ...
pip install pipx
pipx install poetry
pipx install pre-commit
git clone https://github.com/{{YOURUSERNAME}}/mkquartodocs
cd mkquartodocs
pre-commit install
poetry shell
poetry install --all-extras
Then I could start editing ... thoughout the edditing process I would run:
# To fix the styling
poetry run black ./THE_FILE_I_MODIFIED.py
poetry run isort ./THE_FILE_I_MODIFIED.py
# To look at some of the suggested coding conventions
poetry run flake8 ./MODIFIED_FILE.py
# To run the unit tests
poetry run python -m pytest
Once you stage the files with git add
you can run pre-commit run
to run all the checks.
All checks will run again when you generate your commit with pre-commit and will ask you to add the files again before generating the commit.
Most of the standards are enforced automatically but ...
black
for styleisort
for import sortingflake8
for basic lintingpylint
for additional lintingnumpydoc
for docstringsmdformat
for markdown document formatting