Review a Git repository to make sure it matches expected style settings and is not doing anything that is not cross-platform compatible.
Project description
Git Repository Review
This is a general-purpose Python library for reviewing a Git repository to make sure it matches expected style settings and is not doing anything that is not cross-platform compatible.
To ensure code quality, several tools are configured:
- mypy for static type checking
- ruff as the linter and code formatter
- codespell to check spelling
- pytest as the test engine
In addition, Git hooks can be used to guarantee consistency and leverage the aforementioned tools. The workflow test-package.yaml runs them automatically for you.
The documentation is initialized with Jupyter Books, providing a promising approach for interactive tutorials.
Quick Start
-
If you don't have poetry, download and install Poetry following the instructions for your OS.
-
Clone your repository and make it your working directory.
-
To install the project, its development dependencies, and the pre-commit hooks, just run:
poetry install poetry shell
-
The regular maintenance tasks are handled by taskipy. You can see the available tasks by running:
$ task --list pre_commit_install pre-commit install test pytest pre_lint task pre_commit_install lint pre-commit run --all-files qa task lint && task test pre_docs poetry install --with docs docs jupyter-book build docs --path-output build pre_docs_serve task pre_docs docs_serve sphinx-autobuild docs build/_build/html wizard python ./scripts/rename_project_content.py
Type
task <task_name>
to run a task. For example, to run the tests, trytask test
. -
Assert that everything is up and running:
task qa
-
A helper script is included to rename the git username and project name from the template to your new project, try it with:
task wizard
-
You can now review the changes, stage, and commit them on your repo. Run
task qa
another time to assert everything is still all right.
Copyright and License
© 2024 Joel Van Eenwyk. © 2023 Felipe N. Schuch.
All content is under MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for git_repository_review-0.1.0a0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13b80befa86ca5e3e7a4b3bde4353a0ffad0fa161bf2212866bdc952c6b1fb5a |
|
MD5 | 8fe4bbc7ec441e09f5064bc4bb6743f0 |
|
BLAKE2b-256 | 33c7ad73afa923daef840c236694f2d1d5707a79c802119d6a5e79f7962401ef |
Hashes for git_repository_review-0.1.0a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b90dbd8f4c651a0967c5a39594042609da8e2896a16fec88eb8123ffc14f343 |
|
MD5 | 3e08eda20a0664c37396591bd252b12e |
|
BLAKE2b-256 | 0a027a690305d4cfd20c00818dbcafc00e5865b67feebac418c5809f160a0919 |