Skip to main content

Review Sublime Text packages

Project description

# st_package_reviewer

[![Build Status](https://travis-ci.org/packagecontrol/st_package_reviewer.svg?branch=master)](https://travis-ci.org/packagecontrol/st_package_reviewer)
[![Coverage Status](https://coveralls.io/repos/github/packagecontrol/st_package_reviewer/badge.svg?branch=master)](https://coveralls.io/github/packagecontrol/st_package_reviewer?branch=master)
[![PyPI](https://img.shields.io/pypi/v/st-package-reviewer.svg)](https://pypi.python.org/pypi/st-package-reviewer)
[![Python Versions](https://img.shields.io/pypi/pyversions/st-package-reviewer.svg)](https://pypi.python.org/pypi/st-package-reviewer)

A tool to review packages for [Sublime Text 3][]
(and its package manager [Package Control][]).
Supports passing local file paths
or URLs to GitHub repositories.

This README focuses on installation and usage of the tool.
For how to *resolve* failures or warnings
reported by the tool,
[refer to the wiki][wiki].

Sublime Text 2 has essentially been deprecated
a long time ago,
which is why it is not considered.


## Installation

Requires **Python 3.4** or higher.

```bash
$ pip install st-package-reviewer
```


## Usage

```
usage: st_package_reviewer [-h] [--version] [--clip] [--repo-only] [-w] [-v]
[--debug]
[path_or_URL [path_or_URL ...]]

Check a Sublime Text package for common errors.

positional arguments:
path_or_URL URL to the repository or path to the package to be checked. If not provided, runs in interactive mode.

optional arguments:
-h, --help show this help message and exit
--version show program's version number and exit
--clip Copy report to clipboard.
--repo-only Do not check the package itself and only its repository.
-w, --fail-on-warnings
Return a non-zero exit code for warnings as well.
-v, --verbose Increase verbosity.
--debug Enter pdb on exceptions. Implies --verbose.

Return values:
0: No errors
-1: Invalid command line arguments

Additional return values in non-interactive mode (a combination of bit flags):
1: Package check finished with failures
2: Repository check finished with failures
4: Unable to download repository

Interactive mode:
Enter package paths or repository URLS continuously.
Type `c` to copy the last report to your clipboard.
```


[Sublime Text 3]: https://sublimetext.com/
[Package Control]: https://packagecontrol.io/
[wiki]: https://github.com/packagecontrol/st_package_reviewer/wiki


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

st_package_reviewer-0.3.0.tar.gz (38.0 kB view details)

Uploaded Source

Built Distribution

st_package_reviewer-0.3.0-py3-none-any.whl (49.2 kB view details)

Uploaded Python 3

File details

Details for the file st_package_reviewer-0.3.0.tar.gz.

File metadata

File hashes

Hashes for st_package_reviewer-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6b4a14028858ac2b9a3491221bc3999abdb349b8f1c76ae60d36134b6591151b
MD5 f095b277a672bd569fbc3cac72b644ce
BLAKE2b-256 13cbf57dc078ade978e6f8ac7ddeb0d232659768d1417137f18d312abe3cab8f

See more details on using hashes here.

File details

Details for the file st_package_reviewer-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for st_package_reviewer-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 db7df714ea0dbd1befc8e33886274fc257aa71a47f96daedd9a1bcc59f25421c
MD5 e4bb95676bda0dc57e38fc046037aeba
BLAKE2b-256 1026e012b3c4863af6adcd5f43fc27577e957ab067f72e77f976f90c38946150

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