File tree Expand file tree Collapse file tree 1 file changed +12
-16
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +12
-16
lines changed
Original file line number Diff line number Diff line change 23
23
LOCAL_DEPS = (os .path .join (".." , "api_core" ), os .path .join (".." , "core" ))
24
24
25
25
@nox .session (python = "3.7" )
26
- def blacken (session ):
27
- """Run black .
26
+ def lint (session ):
27
+ """Run linters .
28
28
29
- Format code to uniform standard.
29
+ Returns a failure if the linters find linting errors or sufficiently
30
+ serious code quality issues.
30
31
"""
31
- session .install ("black" )
32
+ session .install ("flake8" , " black", * LOCAL_DEPS )
32
33
session .run (
33
34
"black" ,
35
+ "--check" ,
34
36
"google" ,
35
37
"tests" ,
36
38
"docs" ,
37
- "--exclude" ,
38
- ".*/proto/.*|.*/gapic/.*|.*/.*_pb2.py" ,
39
39
)
40
+ session .run ("flake8" , "google" , "tests" )
40
41
41
42
42
- @nox .session (python = "3.7 " )
43
- def lint (session ):
44
- """Run linters .
43
+ @nox .session (python = "3.6 " )
44
+ def blacken (session ):
45
+ """Run black .
45
46
46
- Returns a failure if the linters find linting errors or sufficiently
47
- serious code quality issues.
47
+ Format code to uniform standard.
48
48
"""
49
- session .install ("flake8" , " black", * LOCAL_DEPS )
49
+ session .install ("black" )
50
50
session .run (
51
51
"black" ,
52
- "--check" ,
53
52
"google" ,
54
53
"tests" ,
55
54
"docs" ,
56
- "--exclude" ,
57
- ".*/proto/.*|.*/gapic/.*|.*/.*_pb2.py" ,
58
55
)
59
- session .run ("flake8" , "google" , "tests" )
60
56
61
57
62
58
@nox .session (python = "3.7" )
You can’t perform that action at this time.
0 commit comments