Add linting

This commit is contained in:
Roberto Alsina 2023-04-15 18:59:08 -03:00
parent 1a60b2327e
commit 812b9c1285
4 changed files with 10 additions and 4 deletions

View File

@ -1,6 +1,11 @@
STL_FILES = base.stl hinged_lid.stl simple_lid.stl tandy_lid.stl
all: $(STL_FILES)
all: $(STL_FILES) .lint
%.stl: %.py dimensions.py utils.py
python $<
.lint: *.py
flake8
touch .lint

View File

@ -1,5 +1,5 @@
import cadquery as cq
from cq_warehouse.drafting import Draft
# from cq_warehouse.drafting import Draft
import components.audio_plug as audio_plug
import components.battery_holder as battery_holder

View File

@ -2,7 +2,7 @@ from utils import extrude_shape, punch_hole
import cadquery as cq
elements = None
bottom_holes = None # Not really vents FIXME
bottom_holes = None
def init(positions, thickness):

View File

@ -1,2 +1,3 @@
cadquery
git+https://github.com/gumyr/cq_warehouse.git#egg=cq_warehouse
flake8