This repository was archived by the owner on Nov 29, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Original file line number Diff line number Diff line change 2323LOCAL_DEPS = (os .path .join (".." , "api_core" ), os .path .join (".." , "core" ))
2424
2525@nox .session (python = "3.7" )
26- def blacken (session ):
27- """Run black .
26+ def lint (session ):
27+ """Run linters .
2828
29- Format code to uniform standard.
29+ Returns a failure if the linters find linting errors or sufficiently
30+ serious code quality issues.
3031 """
31- session .install ("black" )
32+ session .install ("flake8" , " black", * LOCAL_DEPS )
3233 session .run (
3334 "black" ,
35+ "--check" ,
3436 "google" ,
3537 "tests" ,
3638 "docs" ,
37- "--exclude" ,
38- ".*/proto/.*|.*/gapic/.*|.*/.*_pb2.py" ,
3939 )
40+ session .run ("flake8" , "google" , "tests" )
4041
4142
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 .
4546
46- Returns a failure if the linters find linting errors or sufficiently
47- serious code quality issues.
47+ Format code to uniform standard.
4848 """
49- session .install ("flake8" , " black", * LOCAL_DEPS )
49+ session .install ("black" )
5050 session .run (
5151 "black" ,
52- "--check" ,
5352 "google" ,
5453 "tests" ,
5554 "docs" ,
56- "--exclude" ,
57- ".*/proto/.*|.*/gapic/.*|.*/.*_pb2.py" ,
5855 )
59- session .run ("flake8" , "google" , "tests" )
6056
6157
6258@nox .session (python = "3.7" )
You can’t perform that action at this time.
0 commit comments