Skip to main content

The RAISE lab code checker

Project description

raise-tools

This repository contains the source for raise, which check repositories by the RAISE lab for compliance with a template.

Usage

There are two primary use cases for this tool. The first is to check that a directory containing your code is compliant with a RAISE-provided template. To do so, use

raise --path .

The . can be replaced by the directory where your code lives. This will check that your code follows PEP8 standards, that it contains the required files, and that the README file contains the necessary sections.

A second use case is to initialize a new repo from a template, similar to npm init. The templates come with some working code already to give you a feel for how code is expected to be written. To initialize, use

raise --init --template dl4se

dl4se can be replaced by any template name (currently, it is the only one). If the template argument is not provided, dl4se is assumed. You can provide configuration options in a file. To do so, name the file .raise.conf in the current directory. The configuration file has the syntax below.

Note: The options in the configuration file have precedence over command-line args. This means that if you specify the same thing in both places, your command-line args will be ignored. This is to encourage the use of configuration files.

[init]
template = dl4se  # or any other template
token = GITHUB_ACCESS_TOKEN
fork = yes  # or "no"

[check]
max_line_length = 120

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

raise-tools-1.0.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

raise_tools-1.0.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file raise-tools-1.0.1.tar.gz.

File metadata

  • Download URL: raise-tools-1.0.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.6

File hashes

Hashes for raise-tools-1.0.1.tar.gz
Algorithm Hash digest
SHA256 01ce003c5f40b2ef542ccbc6492a09cafac1ac1d57dc35bfa98f25082817bffd
MD5 b028251fff436495ad98c551cec9c653
BLAKE2b-256 80bea4b719af48c561d696dda20cdba29291ba7e3c812f03d3bbc1fd14881ae0

See more details on using hashes here.

File details

Details for the file raise_tools-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: raise_tools-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.6

File hashes

Hashes for raise_tools-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0c8a08436b937060773a5f805c4227b63597153edea4412a250bcc9fdc75bc62
MD5 bcf9fc51e0c47e5bc5d4388cf18cf0d1
BLAKE2b-256 cedd809574f92179ff4e408017dc4c00d3cb1848bf70a0a9a962290798c8ab53

See more details on using hashes here.

Supported by

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