mirror of
https://github.com/Proteus-Typer/model-a.git
synced 2024-11-21 10:32:23 +00:00
lint, updated README
This commit is contained in:
parent
5be0911e77
commit
0a81747299
3
Makefile
3
Makefile
@ -7,7 +7,8 @@ all: $(STL_FILES) lint
|
||||
|
||||
lint: .lint
|
||||
|
||||
.lint: **.py
|
||||
.lint: *.py components/*.py
|
||||
flake8
|
||||
black *.py */*.py
|
||||
touch .lint
|
||||
|
||||
|
1
base.py
1
base.py
@ -1,4 +1,5 @@
|
||||
import cadquery as cq
|
||||
|
||||
# from cq_warehouse.drafting import Draft
|
||||
|
||||
import components.audio_plug as audio_plug
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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)
|
||||
|
@ -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),
|
||||
|
@ -1,3 +1,4 @@
|
||||
cadquery
|
||||
git+https://github.com/gumyr/cq_warehouse.git#egg=cq_warehouse
|
||||
flake8
|
||||
black
|
||||
|
Loading…
Reference in New Issue
Block a user