Skip to content

Commit 3feb9b1

Browse files
moreatiLudovicRousseau
authored andcommitted
Customize pylintrc
1 parent 26be547 commit 3feb9b1

File tree

1 file changed

+15
-23
lines changed

1 file changed

+15
-23
lines changed

.pylintrc

+15-23
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ profile=no
1212

1313
# Add files or directories to the blacklist. They should be base names, not
1414
# paths.
15-
ignore=CVS
15+
ignore=CVS,CardNames.py,scard.py
1616

1717
# Pickle collected data for later comparisons.
1818
persistent=yes
@@ -21,14 +21,6 @@ persistent=yes
2121
# usually to register additional checkers.
2222
load-plugins=
2323

24-
# Deprecated. It was used to include message's id in output. Use --msg-template
25-
# instead.
26-
include-ids=no
27-
28-
# Deprecated. It was used to include symbolic ids of messages in output. Use
29-
# --msg-template instead.
30-
symbols=no
31-
3224
# Use multiple processes to speed up Pylint.
3325
jobs=1
3426

@@ -218,16 +210,16 @@ name-group=
218210
include-naming-hint=no
219211

220212
# Regular expression matching correct function names
221-
function-rgx=[a-z_][a-z0-9_]{2,30}$
213+
function-rgx=[a-z_][a-zA-Z0-9_]{2,30}$
222214

223215
# Naming hint for function names
224-
function-name-hint=[a-z_][a-z0-9_]{2,30}$
216+
function-name-hint=[a-z_][a-zA-Z0-9_]{2,30}$
225217

226218
# Regular expression matching correct variable names
227-
variable-rgx=[a-z_][a-z0-9_]{2,30}$
219+
variable-rgx=[a-z_][a-zA-Z0-9_]{1,30}$
228220

229221
# Naming hint for variable names
230-
variable-name-hint=[a-z_][a-z0-9_]{2,30}$
222+
variable-name-hint=[a-z_][a-zA-Z0-9_]{1,30}$
231223

232224
# Regular expression matching correct constant names
233225
const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
@@ -236,22 +228,22 @@ const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
236228
const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$
237229

238230
# Regular expression matching correct attribute names
239-
attr-rgx=[a-z_][a-z0-9_]{2,30}$
231+
attr-rgx=[A-Za-z_][A-Za-z0-9_]{1,30}$
240232

241233
# Naming hint for attribute names
242-
attr-name-hint=[a-z_][a-z0-9_]{2,30}$
234+
attr-name-hint=[A-Za-z_][A-Za-z0-9_]{1,30}$
243235

244236
# Regular expression matching correct argument names
245-
argument-rgx=[a-z_][a-z0-9_]{2,30}$
237+
argument-rgx=[a-z_][A-Za-z0-9_]{2,30}$
246238

247239
# Naming hint for argument names
248-
argument-name-hint=[a-z_][a-z0-9_]{2,30}$
240+
argument-name-hint=[a-z_][A-Za-z0-9_]{2,30}$
249241

250242
# Regular expression matching correct class attribute names
251-
class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
243+
class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{1,30}|(__.*__))$
252244

253245
# Naming hint for class attribute names
254-
class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
246+
class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{1,30}|(__.*__))$
255247

256248
# Regular expression matching correct inline iteration names
257249
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
@@ -266,16 +258,16 @@ class-rgx=[A-Z_][a-zA-Z0-9]+$
266258
class-name-hint=[A-Z_][a-zA-Z0-9]+$
267259

268260
# Regular expression matching correct module names
269-
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
261+
module-rgx=([A-Za-z_][A-Za-z0-9_]*)$
270262

271263
# Naming hint for module names
272-
module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
264+
module-name-hint=([A-Za-z_][A-Za-z0-9_]*)$
273265

274266
# Regular expression matching correct method names
275-
method-rgx=[a-z_][a-z0-9_]{2,30}$
267+
method-rgx=[a-z_][A-Za-z0-9_]{2,30}$
276268

277269
# Naming hint for method names
278-
method-name-hint=[a-z_][a-z0-9_]{2,30}$
270+
method-name-hint=[a-z_][A-Za-z0-9_]{2,30}$
279271

280272
# Regular expression which should only match function or class names that do
281273
# not require a docstring.

0 commit comments

Comments
 (0)