Yet another styleguide.
Project description
yastyleguide
Yet another styleguide
Install
poetry add -D yastyleguide
pip install yastyleguide
Nitpick styleguide
You can use base settings for linters with nitpick:
[tool.nitpick]
style = "https://gitlab.com/ds.team/general/yastyleguide/-/blob/master/styles/nitpick-yastyle.toml"
Публичный вариант
[tool.nitpick]
style = "https://raw.githubusercontent.com/levkovalenko/yastyleguide/master/styles/nitpick-yastyle.toml"
Running
It's just plugin flake8, so:
flake8 .
Violations
Our own codes:
Code | Description |
---|---|
YAS101 | Don't use any 'for' loops. |
YAS102 | Don't use any 'while' loops. |
YAS201 | Line is to complex, {0} > {1}. To many ast nodes per line. |
YAS202 | To big median line complexity in module, {0} > {1}. |
YAS203 | To many lines per module, {0} > {1}. |
YAS204 | To many function definitions per module, {0} > {1}. |
YAS205 | To many class definitions per module, {0} > {1}. |
You can read about external plugins violations at /docs/eng/plugin_list.md
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
yastyleguide-0.2.0a0.tar.gz
(8.4 kB
view hashes)
Built Distribution
Close
Hashes for yastyleguide-0.2.0a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7d1020d796d2952f8f2452ed39d4a9d6fee8b22f9336c40d1711954dcbc6a07 |
|
MD5 | 02104b6fb5f95fb06e9144584e0610c9 |
|
BLAKE2b-256 | d8b43ca6d144e790cb34cb95c7d40253442534e908a3c1fb8d57a4689a82d1a1 |