Dlen checks the length of the functions.
Project description
dlen
dlen for a world with less code.
Check the length of the method (maximum 20 lines) and the class (maximum 500 lines). To keep your code clean and clear you should always try to avoid having too many lines of code. Also recommended to use pep8, isort, pydocstyle pack.
Getting Started
Supports Python 2.7+
Installing
` git clone git@github.com:Endika/dlen.git cd dlen python setup.py install `
Or
` pip install dlen `
Using dlen
` dlen my_script.py `
Output
` [ERROR] 'my_script.py' big_function function too long (25 > 20 lines) [WARN] 'my_script.py' my_function function too long (13 > 12 lines) `
Or
` dlen . dlen /path/project `
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dlen-0.0.2.tar.gz.
File metadata
- Download URL: dlen-0.0.2.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
564677ce1dfeac4a753c0ab6a94dd0181fa1f79e6ca81fc5ac5b39ed0a9a0bbb
|
|
| MD5 |
269da4c50f3395d8fe38d71beab94ba6
|
|
| BLAKE2b-256 |
2e35ae27f510a045d3ccb133c6ab28ec476e5c98327314b9afa576f70f8dd3ee
|
File details
Details for the file dlen-0.0.2-py2.py3-none-any.whl.
File metadata
- Download URL: dlen-0.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4cd58ea995d81539b0d783d562b7c15a7004ba0da9dea450d94a71a618a55e8
|
|
| MD5 |
78c47b3597d47553d85064d8dacc4d41
|
|
| BLAKE2b-256 |
fe60c9013871e43adb548bab34a45242f4c8b3194ae322714d345de01441951b
|