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 |
---|---|
YASG101 | Don't use any 'for' loops. |
YASG102 | Don't use any 'while' loops. |
YASG201 | Line is to complex, {0} > {1}. To many ast nodes per line. |
YASG202 | To big median line complexity in module, {0} > {1}. |
YASG203 | To many lines per module, {0} > {1}. |
YASG204 | To many function definitions per module, {0} > {1}. |
YASG205 | 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.1.0.tar.gz
(8.4 kB
view hashes)
Built Distribution
Close
Hashes for yastyleguide-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6724b2784e393c2240d64881b891b5e55641ba8996ba3b6c1fa6c7aa149e2361 |
|
MD5 | a444b39f38e64b83f1696920123e5418 |
|
BLAKE2b-256 | b1d1a7452b6f637bb57e4b59f8582fe6f47d493f700cf6342cb2cbeec01f1494 |