Get flake8 working as an aspect

This commit is contained in:
Reid 'arrdem' McKenzie 2021-08-30 00:29:43 -06:00
commit 81386229c6
12 changed files with 112 additions and 8 deletions
tools/python

View file

@ -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,