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
slyp-0.0.1.tar.gz
(9.7 kB
view hashes)
Built Distribution
slyp-0.0.1-py3-none-any.whl
(9.3 kB
view hashes)