Stephen Lints Your Python
Project description
SLYP
Table of Contents
Hi
:wave:
I'm Stephen. I'm going to lint your Python code.
Installation
slyp
is a python package and can be run as a pre-commit hook.
On supported python versions, it should be installed with
pip install slyp
Usage
Either use it as a CLI tool:
slyp src/
Or as a pre-commit hook using the following pre-commit-config.yaml
:
</code></pre>
<h2>Implemented Rules</h2>
<p>E100: unnecessary string concat</p>
<pre><code>x = "foo " "bar"
E101: unparenthesized multiline string concat in keyword arg
foo(
bar="alpha "
"beta"
)
E102: unparenthesized multiline string concat in dict value
{
"foo": "alpha "
"beta"
}
E103: unparenthesized multiline string concat in collection type
x = ( # a tuple, set or list
"alpha "
"beta",
"gamma"
)
x = { # e.g. a set
"alpha "
"beta",
}
License
slyp
is distributed under the terms of the MIT license.
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
File details
Details for the file slyp-0.0.1.tar.gz
.
File metadata
- Download URL: slyp-0.0.1.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 147b14ab0c8eb72a173f2fa9f5d336640c98326c6872e1d16d0f1fb757ff1bbe |
|
MD5 | 47cfca3c395cfb17d38b62ef88566396 |
|
BLAKE2b-256 | f57bf57700e2177ff939370e11b68735f6f4547d24c59be3d4af7025071252af |
Provenance
File details
Details for the file slyp-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: slyp-0.0.1-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0548f28aebc3d018c8d3de0a6aa19c56e982a67e323ea5d777452b203d8bfb9 |
|
MD5 | 4bc230689500292320abf7cf1b26ccf4 |
|
BLAKE2b-256 | f487d41524198617a994eadfc7c55b9e9e0cce7abb164f716af948ed5945b438 |