Раньше думал что принято писать переменные маленькими буквами, а сегодня узнал что наоборот. Установил IDE spyder, установил к нему pylint.
Написал
a = 5
b = 6
c = a + b
print c
No config file found, using default configuration
************* Module .temp
C: 9: Invalid name "a" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
C: 10: Invalid name "b" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
C: 11: Invalid name "c" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
Report
======
4 statements analysed.
Duplication
-----------
+-------------------------+------+---------+-----------+
| |now |previous |difference |
+=========================+======+=========+===========+
|nb duplicated lines |0 |0 |= |
+-------------------------+------+---------+-----------+
|percent duplicated lines |0.000 |0.000 |= |
+-------------------------+------+---------+-----------+
Raw metrics
----------
+----------+-------+------+---------+-----------+
|type |number |% |previous |difference |
+==========+=======+======+=========+===========+
|code |4 |28.57 |4 |= |
+----------+-------+------+---------+-----------+
|docstring |6 |42.86 |6 |= |
+----------+-------+------+---------+-----------+
|comment |1 |7.14 |1 |= |
+----------+-------+------+---------+-----------+
|empty |3 |21.43 |3 |= |
+----------+-------+------+---------+-----------+
Statistics by type
------------------
+---------+-------+-----------+-----------+------------+---------+
|type |number |old number |difference |%documented |%badname |
+=========+=======+===========+===========+============+=========+
|module |1 |1 |= |100.00 |0.00 |
+---------+-------+-----------+-----------+------------+---------+
|class |0 |0 |= |0.00 |0.00 |
+---------+-------+-----------+-----------+------------+---------+
|method |0 |0 |= |0.00 |0.00 |
+---------+-------+-----------+-----------+------------+---------+
|function |0 |0 |= |0.00 |0.00 |
+---------+-------+-----------+-----------+------------+---------+
Messages by category
--------------------
+-----------+-------+---------+-----------+
|type |number |previous |difference |
+===========+=======+=========+===========+
|convention |3 |3 |= |
+-----------+-------+---------+-----------+
|refactor |0 |0 |= |
+-----------+-------+---------+-----------+
|warning |0 |0 |= |
+-----------+-------+---------+-----------+
|error |0 |0 |= |
+-----------+-------+---------+-----------+
Messages
--------
+-----------+-----------+
|message id |occurences |
+===========+===========+
|C0103 |3 |
+-----------+-----------+
Global evaluation
-----------------
Your code has been rated at 2.50/10 (previous run: 2.50/10)
No config file found, using default configuration
Report
======
4 statements analysed.
Duplication
-----------
+-------------------------+------+---------+-----------+
| |now |previous |difference |
+=========================+======+=========+===========+
|nb duplicated lines |0 |0 |= |
+-------------------------+------+---------+-----------+
|percent duplicated lines |0.000 |0.000 |= |
+-------------------------+------+---------+-----------+
Raw metrics
-----------
+----------+-------+------+---------+-----------+
|type |number |% |previous |difference |
+==========+=======+======+=========+===========+
|code |4 |28.57 |4 |= |
+----------+-------+------+---------+-----------+
|docstring |6 |42.86 |6 |= |
+----------+-------+------+---------+-----------+
|comment |1 |7.14 |1 |= |
+----------+-------+------+---------+-----------+
|empty |3 |21.43 |3 |= |
+----------+-------+------+---------+-----------+
Statistics by type
------------------
+---------+-------+-----------+-----------+------------+---------+
|type |number |old number |difference |%documented |%badname |
+=========+=======+===========+===========+============+=========+
|module |1 |1 |= |100.00 |0.00 |
+---------+-------+-----------+-----------+------------+---------+
|class |0 |0 |= |0.00 |0.00 |
+---------+-------+-----------+-----------+------------+---------+
|method |0 |0 |= |0.00 |0.00 |
+---------+-------+-----------+-----------+------------+---------+
|function |0 |0 |= |0.00 |0.00 |
+---------+-------+-----------+-----------+------------+---------+
Messages by category
--------------------
+-----------+-------+---------+-----------+
|type |number |previous |difference |
+===========+=======+=========+===========+
|convention |0 |3 |-3.00 |
+-----------+-------+---------+-----------+
|refactor |0 |0 |= |
+-----------+-------+---------+-----------+
|warning |0 |0 |= |
+-----------+-------+---------+-----------+
|error |0 |0 |= |
+-----------+-------+---------+-----------+
Global evaluation
-----------------
Your code has been rated at 10.00/10 (previous run: 2.50/10)
P.S. конечно пишу по привычке маленькими буквами, но почему pylint настроен наоборот!?