Clinic Opinionated Codebase Oversight and Analysis
Project description
Clinic Opinionated Codebase Oversight and Analysis
This repository was developed in order to generate automated reports on how well codebases adhere to the coding standards of the University of Chicago's DSI Clinic course.
The goals of this codebase is to provide a quick and easy way to review code and to alert contributors where their code may be failing.
Installation
pip install cocoa
cocoa
This package contains a module evaluate_repo which runs code testing libraries against a repository.
How to run
Via command line:
cocoa /path/to/repo
As a python module:
from cocoa.evaluate_repo import main
main(["path/to/repo"])
A few important notes:
- Make sure to
git pullbefore running this code. - This will get branch information for all branches.
- This will only run the analysis (
pyflakeson python files) for the code in the current branch. So if you run this while your current branch ismainit will run onmain.
If you want to do a full linting, then you can add the argument "LINT" to the run-code-analysis command, such as:
cocoa /path-to-repo LINT
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dsi-cocoa-0.0.9.tar.gz.
File metadata
- Download URL: dsi-cocoa-0.0.9.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8039e1a4800b02466bbafa75db3db364cc29744b36e55da78b78d18053b60bda
|
|
| MD5 |
800675dce5bbd3c1cce6a87dee901f6c
|
|
| BLAKE2b-256 |
68fc13a46c17edf8c0d908baf1215dbf9bd71d1a7770702bf1a3d56f3ddce1ce
|
File details
Details for the file dsi_cocoa-0.0.9-py3-none-any.whl.
File metadata
- Download URL: dsi_cocoa-0.0.9-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5960db98b75a49473df2df248c591405ea7c7e6d8768a2f02f62d736250186ee
|
|
| MD5 |
a364aa83dc5fbcb99eb2deccd904ebe5
|
|
| BLAKE2b-256 |
6980790a79cceab19ac44ecac12c70356f35e856dd7c2c84d5fc2777263c4c53
|