File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
docs/source/plugin-development Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -112,11 +112,17 @@ look like::
112
112
113
113
X101 = flake8_example:ExamplePlugin
114
114
115
+ In the above case, the entry-point name and the error code produced by your
116
+ plugin are the same.
117
+
115
118
If your plugin reports several error codes that all start with ``X10 ``, then
116
119
it would look like::
117
120
118
121
X10 = flake8_example:ExamplePlugin
119
122
123
+ In this casae as well as the following case, your entry-point name acts as
124
+ a prefix to the error codes produced by your plugin.
125
+
120
126
If all of your plugin's error codes start with ``X1 `` then it would look
121
127
like::
122
128
@@ -130,8 +136,12 @@ in the users environment. Selecting an entry point that is already used can
130
136
cause plugins to be deactivated without warning!
131
137
132
138
**Please Note: ** Your entry point does not need to be exactly 4 characters
133
- as of |Flake8 | 3.0. *Consider using an entry point with 3 letters followed
134
- by 3 numbers (i.e. * ``ABC123 `` *). *
139
+ as of |Flake8 | 3.0. Single letter entry point prefixes (such as the
140
+ 'X' in the examples above) have caused issues in the past. As such,
141
+ please consider using a 2 or 3 character entry point prefix,
142
+ i.e., ``ABC `` is better than ``A `` but ``ABCD `` is invalid.
143
+ *A 3 letters entry point prefix followed by 3 numbers (i.e. * ``ABC123 `` *)
144
+ is currently the longest allowed entry point name. *
135
145
136
146
137
147
.. _Entry Points :
You can’t perform that action at this time.
0 commit comments