Get flake8 working as an aspect
This commit is contained in:
parent
3a1ffe6d6a
commit
81386229c6
12 changed files with 112 additions and 8 deletions
tools/python
|
@ -14,6 +14,9 @@ load("@rules_zapp//zapp:zapp.bzl",
|
|||
"zapp_binary",
|
||||
)
|
||||
|
||||
load("//tools/flake8:flake8.bzl",
|
||||
"flake8",
|
||||
)
|
||||
|
||||
def py_requirement(*args, **kwargs):
|
||||
"""A re-export of requirement()"""
|
||||
|
@ -208,6 +211,12 @@ def py_project(name=None,
|
|||
],
|
||||
)
|
||||
|
||||
# if lib_srcs:
|
||||
# flake8(
|
||||
# name = "flake8",
|
||||
# deps = [lib_name],
|
||||
# )
|
||||
|
||||
if main:
|
||||
py_binary(
|
||||
name=name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue