Review repos for compliance to the Scientific-Python development guidelines
Project description
sp-repo-review
sp-repo-review
provides checks based on the Scientific-Python Development
Guide at scientific-python/cookie for repo-review.
This tool can check the style of a repository. Use like this:
pipx run 'sp-repo-review[cli]' <path to repository>
This will produce a list of results - green checkmarks mean this rule is followed, red x’s mean the rule is not. A yellow warning sign means that the check was skipped because a previous required check failed. Some checks will fail, that’s okay - the goal is bring all possible issues to your attention, not to force compliance with arbitrary checks. Eventually there might be a way to mark checks as ignored.
For example, GH101
expects all your action files to have a nice name:
field.
If you are happy with the file-based names you see in CI, you should feel free
to simply ignore this check (just visually ignore it for the moment, a way to
specify ignored checks will likely be added eventually).
All checks are mentioned at least in some way in the Scientific-Python
Development Guide. You should read that first - if you are not attempting to
follow them, some of the checks might not work. For example, the guidelines
specify pytest configuration be placed in pyproject.toml
. If you place it
somewhere else, then all the pytest checks will be skipped.
This was originally developed for Scikit-HEP before moving to Scientific Python.
You can also use GitHub Actions:
- uses: scientific-python/cookie@<version>
Or pre-commit:
- repo: https://github.com/scientific-python/cookie
rev: <version>
hooks:
- id: sp-repo-review
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
File details
Details for the file sp_repo_review-2023.6.17.tar.gz
.
File metadata
- Download URL: sp_repo_review-2023.6.17.tar.gz
- Upload date:
- Size: 117.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2965be12ecef94f490ad2f1c759eaff1539aa58cd600d5a43f953cce7417e58f |
|
MD5 | 623b9d9b2b07b7310ccd6d8fa1c15199 |
|
BLAKE2b-256 | 0590b197bb1c7be24992ee6ec30c551bebab748edf244bff339a7371b2824504 |
File details
Details for the file sp_repo_review-2023.6.17-py3-none-any.whl
.
File metadata
- Download URL: sp_repo_review-2023.6.17-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8e6e75cd3294ae80638e3572d175f0d148ed64ed8dd378f05722e0d04c774ee |
|
MD5 | 4a3ba64df022f5fe2107b25010baaa57 |
|
BLAKE2b-256 | 2a6d9905e9e57933d78a2f744ab58e1b8e16fbcd24ce6d6bd98af0d22adffbf3 |