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 .

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

Release

To release a new version, ensure you have a .pypirc file setup as follows:

[distutils]
  index-servers =
    pypi
    raise-tools

[pypi]
  username = __token__
  password = YOUR_TOKEN_HERE

[raise-tools]
  repository = https://upload.pypi.org/legacy/
  username = __token__
  password = YOUR_TOKEN_HERE

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.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

raise_tools-1.0.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: raise-tools-1.0.0.tar.gz
  • Upload date:
  • Size: 5.0 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.0.tar.gz
Algorithm Hash digest
SHA256 414b6a46cd813c098171658713f044c3a8bd106a9bccfbf40b91dafc36a4c230
MD5 b87bdb3e5f8ad8dcddde68ba3ab911b5
BLAKE2b-256 882399a14843293f520ad0617fb0819c4b3c792a4d42afc55fb0a3190c15d1d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: raise_tools-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4aec1c8b8c8d2ed7e4bcf4d7ad888c6f5a0be20cd4b44c4ab080152a78aaa232
MD5 6a5382d274d686a638593b80c264ee44
BLAKE2b-256 dbd65af25a7f638f718dd2e4755e3314ef9ee858a2f928ea2c554639be89dc4a

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