lint, updated README

This commit is contained in:
Roberto Alsina 2023-04-15 21:14:36 -03:00
parent 5be0911e77
commit 0a81747299
6 changed files with 14 additions and 4 deletions

View File

@ -7,7 +7,8 @@ all: $(STL_FILES) lint
lint: .lint lint: .lint
.lint: **.py .lint: *.py components/*.py
flake8 flake8
black *.py */*.py
touch .lint touch .lint

View File

@ -1,4 +1,5 @@
import cadquery as cq 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.audio_plug as audio_plug

View File

@ -25,7 +25,9 @@ def init():
"x": 0, "x": 0,
"y": 0, "y": 0,
"z": kbd_pillar_offset_1, "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 # Taller pillars with holes for self-tapping screws
{ {

View File

@ -141,4 +141,6 @@ screen_pillars.pillar_width = 12
screen_pillars.pillar_height = 12 screen_pillars.pillar_height = 12
screen_pillars.screw_head_radius = 3 screen_pillars.screw_head_radius = 3
screen_pillars.screw_radius = 1.8 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)

View File

@ -297,7 +297,10 @@ def model():
(0, 0), (0, 0),
(0, keyboard.kbd_front_thickness), (0, keyboard.kbd_front_thickness),
(dim.shell_t, 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), (keyboard.kbd_actual_height + dim.shell_t, dim.base_thickness),
(dim.height, dim.base_thickness), (dim.height, dim.base_thickness),
(dim.height, 0), (dim.height, 0),

View File

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