Skip to main content

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

Poetry Ruff CI

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

  1. If you don't have poetry, download and install Poetry following the instructions for your OS.

  2. Clone your repository and make it your working directory.

  3. To install the project, its development dependencies, and the pre-commit hooks, just run:

    poetry install
    poetry shell
    
  4. 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, try task test.

  5. Assert that everything is up and running:

    task qa
    
  6. 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
    
  7. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

git_repository_review-0.1.0a0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

git_repository_review-0.1.0a0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file git_repository_review-0.1.0a0.tar.gz.

File metadata

  • Download URL: git_repository_review-0.1.0a0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Linux/6.5.0-1017-azure

File hashes

Hashes for git_repository_review-0.1.0a0.tar.gz
Algorithm Hash digest
SHA256 13b80befa86ca5e3e7a4b3bde4353a0ffad0fa161bf2212866bdc952c6b1fb5a
MD5 8fe4bbc7ec441e09f5064bc4bb6743f0
BLAKE2b-256 33c7ad73afa923daef840c236694f2d1d5707a79c802119d6a5e79f7962401ef

See more details on using hashes here.

File details

Details for the file git_repository_review-0.1.0a0-py3-none-any.whl.

File metadata

File hashes

Hashes for git_repository_review-0.1.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 1b90dbd8f4c651a0967c5a39594042609da8e2896a16fec88eb8123ffc14f343
MD5 3e08eda20a0664c37396591bd252b12e
BLAKE2b-256 0a027a690305d4cfd20c00818dbcafc00e5865b67feebac418c5809f160a0919

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page