The most strict and opinionated python linter ever
Project description
wemake-python-styleguide
Welcome to the most strict and opinionated python linter ever.
wemake-python-styleguide
is actually a flake8
plugin
with some other plugins as dependencies.
The Zen of Python, by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
Installation
pip install wemake-python-styleguide
You will also need to create a setup.cfg
file with the following contents.
This file is required to configure our linter and all 3rd party plugins it uses. However, this is a temporary solution. We are working at providing the required configuration for you in the future.
See "Usage" section in the docs for examples and integrations.
What we are about
We have several primary objectives:
- Enforce
python3.6+
usage - Significantly reduce complexity of your code and make it more maintainable
- Enforce "There should be one-- and preferably only one --obvious way to do it" rule
- Create consistent coding and naming style
You can find all error codes and plugins in the docs.
What we are not
We are not planning to do the following things:
- Assume or check types, use
mypy
instead - Reformat code, since we believe that developers should do that
- Check for
SyntaxError
or exceptions, write tests instead - Appeal to everyone, this is our linter. But, you can switch off any rules that you don't like
Contributing
See "Contributing" section in the documentation if you want to contribute. You can also check which issues need some help right now.
License
MIT. See LICENSE for more details.
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 wemake-python-styleguide-0.3.0.tar.gz
.
File metadata
- Download URL: wemake-python-styleguide-0.3.0.tar.gz
- Upload date:
- Size: 46.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.3 CPython/3.6.6 Darwin/15.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a973e36c3e837838014227115eaa5609e580461f4c4c6249520f4dc789c1259 |
|
MD5 | 8ad88bbaf40f0689baf8199c1a1a8452 |
|
BLAKE2b-256 | 4f31482eabde32e2dfe5f29b2f2d7454cfc3f48b694126c49cc1da9643defe9a |
File details
Details for the file wemake_python_styleguide-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: wemake_python_styleguide-0.3.0-py3-none-any.whl
- Upload date:
- Size: 188.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.3 CPython/3.6.6 Darwin/15.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08f28fbb1ae57160ecc294bfc03d49ab1fe68d8411b0193853b01a4a05eb40f8 |
|
MD5 | 1194c3aaa90db4a16a8f39eede8978b8 |
|
BLAKE2b-256 | 2e625347f92e8dd3765b350254747e32080ffd0290bdfae0325b5a8fd4db0eaf |