Skip to content

Commit 2db856d

Browse files
authored
Merge pull request #166 from jparise/README-N814-N817
Reference N817 from N814, and vice-versa
2 parents bee559c + 35c3334 commit 2db856d

File tree

1 file changed

+45
-34
lines changed

1 file changed

+45
-34
lines changed

README.rst

Lines changed: 45 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -35,40 +35,51 @@ Error Codes
3535

3636
These error codes are emitted:
3737

38-
+------+-------------------------------------------------------+
39-
| code | sample message |
40-
+======+=======================================================+
41-
| N801 | class names should use CapWords convention |
42-
+------+-------------------------------------------------------+
43-
| N802 | function name should be lowercase |
44-
+------+-------------------------------------------------------+
45-
| N803 | argument name should be lowercase |
46-
+------+-------------------------------------------------------+
47-
| N804 | first argument of a classmethod should be named 'cls' |
48-
+------+-------------------------------------------------------+
49-
| N805 | first argument of a method should be named 'self' |
50-
+------+-------------------------------------------------------+
51-
| N806 | variable in function should be lowercase |
52-
+------+-------------------------------------------------------+
53-
| N807 | function name should not start and end with '__' |
54-
+------+-------------------------------------------------------+
55-
+------+-------------------------------------------------------+
56-
| N811 | constant imported as non constant |
57-
+------+-------------------------------------------------------+
58-
| N812 | lowercase imported as non lowercase |
59-
+------+-------------------------------------------------------+
60-
| N813 | camelcase imported as lowercase |
61-
+------+-------------------------------------------------------+
62-
| N814 | camelcase imported as constant |
63-
+------+-------------------------------------------------------+
64-
| N815 | mixedCase variable in class scope |
65-
+------+-------------------------------------------------------+
66-
| N816 | mixedCase variable in global scope |
67-
+------+-------------------------------------------------------+
68-
| N817 | camelcase imported as acronym |
69-
+------+-------------------------------------------------------+
70-
| N818 | error suffix in exception names |
71-
+------+-------------------------------------------------------+
38+
+---------+-----------------------------------------------------------------+
39+
| code | sample message |
40+
+=========+=================================================================+
41+
| _`N801` | class names should use CapWords convention (`class names`_) |
42+
+---------+-----------------------------------------------------------------+
43+
| _`N802` | function name should be lowercase (`function names`_) |
44+
+---------+-----------------------------------------------------------------+
45+
| _`N803` | argument name should be lowercase (`function arguments`_) |
46+
+---------+-----------------------------------------------------------------+
47+
| _`N804` | first argument of a classmethod should be named 'cls' |
48+
| | (`function arguments`_) |
49+
+---------+-----------------------------------------------------------------+
50+
| _`N805` | first argument of a method should be named 'self' |
51+
| | (`function arguments`_) |
52+
+---------+-----------------------------------------------------------------+
53+
| _`N806` | variable in function should be lowercase |
54+
+---------+-----------------------------------------------------------------+
55+
| _`N807` | function name should not start and end with '__' |
56+
+---------+-----------------------------------------------------------------+
57+
| _`N811` | constant imported as non constant (`constants`_) |
58+
+---------+-----------------------------------------------------------------+
59+
| _`N812` | lowercase imported as non-lowercase |
60+
+---------+-----------------------------------------------------------------+
61+
| _`N813` | camelcase imported as lowercase |
62+
+---------+-----------------------------------------------------------------+
63+
| _`N814` | camelcase imported as constant |
64+
| | (distinct from `N817`_ for selective enforcement) |
65+
+---------+-----------------------------------------------------------------+
66+
| _`N815` | mixedCase variable in class scope |
67+
| | (`constants`_, `method names`_) |
68+
+---------+-----------------------------------------------------------------+
69+
| _`N816` | mixedCase variable in global scope (`constants`_) |
70+
+---------+-----------------------------------------------------------------+
71+
| _`N817` | camelcase imported as acronym |
72+
| | (distinct from `N814`_ for selective enforcement) |
73+
+---------+-----------------------------------------------------------------+
74+
| _`N818` | error suffix in exception names (`exceptions`_) |
75+
+---------+-----------------------------------------------------------------+
76+
77+
.. _class names: https://www.python.org/dev/peps/pep-0008/#class-names
78+
.. _constants: https://www.python.org/dev/peps/pep-0008/#constants
79+
.. _exceptions: https://www.python.org/dev/peps/pep-0008/#exception-names
80+
.. _function names: https://www.python.org/dev/peps/pep-0008/#function-and-variable-names
81+
.. _function arguments: https://www.python.org/dev/peps/pep-0008/#function-and-method-arguments
82+
.. _method names: https://www.python.org/dev/peps/pep-0008/#method-names-and-instance-variables
7283

7384
Options
7485
-------

0 commit comments

Comments
 (0)