Просмотр исходного кода

[CI] fix linting test names

Test classes and functions are named TC_01_Example and test_012_example,
respectively. Those are not conforming to the usual style enforced by
pylint but that's okay.
Wojtek Porczyk 4 лет назад
Родитель
Сommit
7b057d957a
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      .pylintrc

+ 4 - 4
.pylintrc

@@ -274,11 +274,11 @@ class-attribute-naming-style=any
 #class-attribute-rgx=
 
 # Naming style matching correct class names.
-class-naming-style=PascalCase
+#class-naming-style=PascalCase
 
 # Regular expression matching correct class names. Overrides class-naming-
 # style.
-#class-rgx=
+class-rgx=[A-Z_][A-Za-z0-9]*|TC_\d\d_.*
 
 # Naming style matching correct constant names.
 const-naming-style=UPPER_CASE
@@ -318,11 +318,11 @@ inlinevar-naming-style=any
 #inlinevar-rgx=
 
 # Naming style matching correct method names.
-method-naming-style=snake_case
+#method-naming-style=snake_case
 
 # Regular expression matching correct method names. Overrides method-naming-
 # style.
-#method-rgx=
+method-rgx=[a-z_][a-z0-9_]*|test_\d\d\d_.*
 
 # Naming style matching correct module names.
 module-naming-style=snake_case