Skip to main content

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:

  1. Make sure to git pull before running this code.
  2. This will get branch information for all branches.
  3. This will only run the analysis (pyflakes on python files) for the code in the current branch. So if you run this while your current branch is main it will run on main.

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


Download files

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

Source Distribution

dsi-cocoa-0.0.9.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

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

dsi_cocoa-0.0.9-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

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

Hashes for dsi-cocoa-0.0.9.tar.gz
Algorithm Hash digest
SHA256 8039e1a4800b02466bbafa75db3db364cc29744b36e55da78b78d18053b60bda
MD5 800675dce5bbd3c1cce6a87dee901f6c
BLAKE2b-256 68fc13a46c17edf8c0d908baf1215dbf9bd71d1a7770702bf1a3d56f3ddce1ce

See more details on using hashes here.

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

Hashes for dsi_cocoa-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 5960db98b75a49473df2df248c591405ea7c7e6d8768a2f02f62d736250186ee
MD5 a364aa83dc5fbcb99eb2deccd904ebe5
BLAKE2b-256 6980790a79cceab19ac44ecac12c70356f35e856dd7c2c84d5fc2777263c4c53

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