Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
~/Envs/pytools/bin/pylint setup.py
Using config file ~/.pylintrc
************* Module setup
C: 52, 0: Line too long (134/100) (line-too-long)
C:100, 0: Line too long (116/100) (line-too-long)
W: 8, 0: Redefining built-in 'open' (redefined-builtin)
C: 1, 0: Missing module docstring (missing-docstring)
C: 13, 0: Constant name "here" doesn't conform to '(([A-Z_][A-Z0-9_]*)|(__.*__))$' pattern (invalid-name)
C: 15, 0: Missing class docstring (missing-docstring)
E: 32, 8: Unable to import 'pytest' (import-error)
W: 22,12: Attribute 'pytest_args' defined outside __init__ (attribute-defined-outside-init)
W: 24,12: Attribute 'pytest_args' defined outside __init__ (attribute-defined-outside-init)
W: 29, 8: Attribute 'test_suite' defined outside __init__ (attribute-defined-outside-init)
C: 43, 0: Constant name "packages" doesn't conform to '(([A-Z_][A-Z0-9_]*)|(__.*__))$' pattern (invalid-name)
C: 45, 0: Constant name "requires" doesn't conform to '(([A-Z_][A-Z0-9_]*)|(__.*__))$' pattern (invalid-name)
C: 52, 0: Constant name "test_requirements" doesn't conform to '(([A-Z_][A-Z0-9_]*)|(__.*__))$' pattern (invalid-name)
C: 54, 0: Constant name "about" doesn't conform to '(([A-Z_][A-Z0-9_]*)|(__.*__))$' pattern (invalid-name)
W: 56, 4: Use of exec (exec-used)
C: 59, 4: Constant name "readme" doesn't conform to '(([A-Z_][A-Z0-9_]*)|(__.*__))$' pattern (invalid-name)
C: 61, 4: Constant name "history" doesn't conform to '(([A-Z_][A-Z0-9_]*)|(__.*__))$' pattern (invalid-name)
W: 5, 0: Unused import re (unused-import)
Report
======
39 statements analysed.
Statistics by type
------------------
+---------+-------+-----------+-----------+------------+---------+
|type |number |old number |difference |%documented |%badname |
+=========+=======+===========+===========+============+=========+
|module |1 |NC |NC |0.00 |0.00 |
+---------+-------+-----------+-----------+------------+---------+
|class |1 |NC |NC |0.00 |0.00 |
+---------+-------+-----------+-----------+------------+---------+
|method |3 |NC |NC |100.00 |0.00 |
+---------+-------+-----------+-----------+------------+---------+
|function |0 |NC |NC |0 |0 |
+---------+-------+-----------+-----------+------------+---------+
Raw metrics
-----------
+----------+-------+------+---------+-----------+
|type |number |% |previous |difference |
+==========+=======+======+=========+===========+
|code |63 |60.58 |NC |NC |
+----------+-------+------+---------+-----------+
|docstring |21 |20.19 |NC |NC |
+----------+-------+------+---------+-----------+
|comment |3 |2.88 |NC |NC |
+----------+-------+------+---------+-----------+
|empty |17 |16.35 |NC |NC |
+----------+-------+------+---------+-----------+
Duplication
-----------
+-------------------------+------+---------+-----------+
| |now |previous |difference |
+=========================+======+=========+===========+
|nb duplicated lines |0 |NC |NC |
+-------------------------+------+---------+-----------+
|percent duplicated lines |0.000 |NC |NC |
+-------------------------+------+---------+-----------+
Messages by category
--------------------
+-----------+-------+---------+-----------+
|type |number |previous |difference |
+===========+=======+=========+===========+
|convention |11 |NC |NC |
+-----------+-------+---------+-----------+
|refactor |0 |NC |NC |
+-----------+-------+---------+-----------+
|warning |6 |NC |NC |
+-----------+-------+---------+-----------+
|error |1 |NC |NC |
+-----------+-------+---------+-----------+
Messages
--------
+-------------------------------+------------+
|message id |occurrences |
+===============================+============+
|invalid-name |7 |
+-------------------------------+------------+
|attribute-defined-outside-init |3 |
+-------------------------------+------------+
|missing-docstring |2 |
+-------------------------------+------------+
|line-too-long |2 |
+-------------------------------+------------+
|unused-import |1 |
+-------------------------------+------------+
|redefined-builtin |1 |
+-------------------------------+------------+
|import-error |1 |
+-------------------------------+------------+
|exec-used |1 |
+-------------------------------+------------+
-----------------------------------
Your code has been rated at 4.36/10
Process finished with exit code 22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.