diff --git a/Makefile b/Makefile index 2ccbfc6..dd8a14e 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,8 @@ all: $(STL_FILES) lint lint: .lint -.lint: **.py +.lint: *.py components/*.py flake8 + black *.py */*.py touch .lint diff --git a/base.py b/base.py index b5936b2..29e5184 100644 --- a/base.py +++ b/base.py @@ -1,4 +1,5 @@ import cadquery as cq + # from cq_warehouse.drafting import Draft import components.audio_plug as audio_plug diff --git a/components/keyboard.py b/components/keyboard.py index 9e7dcfa..fc3c386 100644 --- a/components/keyboard.py +++ b/components/keyboard.py @@ -25,7 +25,9 @@ def init(): "x": 0, "y": 0, "z": kbd_pillar_offset_1, - "shape": cq.Sketch().push(kbd_pillar_positions).circle(kbd_pillar_radius_1, mode="a"), + "shape": cq.Sketch() + .push(kbd_pillar_positions) + .circle(kbd_pillar_radius_1, mode="a"), }, # Taller pillars with holes for self-tapping screws { diff --git a/dimensions.py b/dimensions.py index 6093942..1ba405e 100644 --- a/dimensions.py +++ b/dimensions.py @@ -141,4 +141,6 @@ screen_pillars.pillar_width = 12 screen_pillars.pillar_height = 12 screen_pillars.screw_head_radius = 3 screen_pillars.screw_radius = 1.8 -screen_pillars.screw_head_depth = base_thickness - 13 # (screw thread length - threaded insert depth) +screen_pillars.screw_head_depth = ( + base_thickness - 13 +) # (screw thread length - threaded insert depth) diff --git a/hinged_lid.py b/hinged_lid.py index 951d92e..f84924c 100644 --- a/hinged_lid.py +++ b/hinged_lid.py @@ -297,7 +297,10 @@ def model(): (0, 0), (0, keyboard.kbd_front_thickness), (dim.shell_t, keyboard.kbd_front_thickness), - (keyboard.kbd_actual_height + dim.shell_t, keyboard.kbd_back_thickness), + ( + keyboard.kbd_actual_height + dim.shell_t, + keyboard.kbd_back_thickness, + ), (keyboard.kbd_actual_height + dim.shell_t, dim.base_thickness), (dim.height, dim.base_thickness), (dim.height, 0), diff --git a/requirements.txt b/requirements.txt index 430e0cb..29a8813 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ cadquery git+https://github.com/gumyr/cq_warehouse.git#egg=cq_warehouse flake8 +black