Browse Source

module: ignore some files for linting

cn 8 months ago
parent
commit
cbb82a2f9c
2 changed files with 10 additions and 10 deletions
  1. 1
    1
      .pylintrc
  2. 9
    9
      demo.py

+ 1
- 1
.pylintrc View File

@@ -11,7 +11,7 @@ ignore=CVS
11 11
 
12 12
 # Add files or directories matching the regex patterns to the blacklist. The
13 13
 # regex matches against base names, not paths.
14
-ignore-patterns=
14
+ignore-patterns=.*_test.py,setup.py
15 15
 
16 16
 # Python code to execute, usually for sys.path manipulation such as
17 17
 # pygtk.require().

+ 9
- 9
demo.py View File

@@ -2,12 +2,12 @@
2 2
 import veml6070
3 3
 
4 4
 if __name__ == '__main__':
5
-  veml = veml6070.Veml6070()
6
-  for i in [veml6070.INTEGRATIONTIME_1_2T,
7
-            veml6070.INTEGRATIONTIME_1T,
8
-            veml6070.INTEGRATIONTIME_2T,
9
-            veml6070.INTEGRATIONTIME_4T]:
10
-    veml.set_integration_time(i)
11
-    uv_raw = veml.get_uva_light_intensity_raw()
12
-    uv = veml.get_uva_light_intensity()
13
-    print "Integration Time setting %d: %f W/(m*m) from raw value %d" % (i, uv, uv_raw)
5
+    veml = veml6070.Veml6070()
6
+    for i in [veml6070.INTEGRATIONTIME_1_2T,
7
+              veml6070.INTEGRATIONTIME_1T,
8
+              veml6070.INTEGRATIONTIME_2T,
9
+              veml6070.INTEGRATIONTIME_4T]:
10
+        veml.set_integration_time(i)
11
+        uv_raw = veml.get_uva_light_intensity_raw()
12
+        uv = veml.get_uva_light_intensity()
13
+        print "Integration Time setting %d: %f W/(m*m) from raw value %d" % (i, uv, uv_raw)