Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add types for config, printer and reactor #94

Merged
merged 2 commits into from
Nov 23, 2024
Merged

Conversation

Jomik
Copy link
Collaborator

@Jomik Jomik commented Nov 21, 2024

Description

This creates a few type stubs for ConfigWrapper, Printer and Reactor.
This helps us infer proper types and catches some mistakes.
This will get rid of quite a few warnings, as well as ensure our integration is more stable in the future.

Checklist

The following relevant macros have been tested:

  • CARTOGRAPHER_CALIBRATE
  • PROBE
  • PROBE_ACCURACY
  • CARTOGRAPHER_THRESHOLD_SCAN
  • CARTOGRAPHER_TOUCH CALIBRATE=1
  • CARTOGRAPHER_TOUCH
  • CARTOGRAPHER_TOUCH METHOD=manual
  • BED_MESH_CALIBRATE

@Jomik Jomik added the chore A code change that neither fixes a bug nor adds a feature label Nov 21, 2024
@Jomik Jomik self-assigned this Nov 21, 2024
@krautech
Copy link
Collaborator

Should we merge this before or after the current code removal is done? @Jomik

Copy link
Collaborator

@krautech krautech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

@Jomik
Copy link
Collaborator Author

Jomik commented Nov 22, 2024

Should we merge this before or after the current code removal is done? @Jomik

After, as you can see, it hasn't been tested 😊

@Jomik Jomik force-pushed the feat/typed-config-printer branch 2 times, most recently from b3c4033 to db24a0b Compare November 22, 2024 08:53
@krautech krautech force-pushed the feat/typed-config-printer branch from db24a0b to 5282a78 Compare November 22, 2024 09:05
@Jomik Jomik force-pushed the feat/typed-config-printer branch 3 times, most recently from 31c303c to e4509d8 Compare November 22, 2024 20:52
krautech
krautech previously approved these changes Nov 23, 2024
@Jomik Jomik merged commit 61225b9 into develop Nov 23, 2024
2 checks passed
@Jomik Jomik deleted the feat/typed-config-printer branch November 23, 2024 11:33
Jomik added a commit that referenced this pull request Nov 28, 2024
* flashing via usb fixed to not say CAN Flash Success (#90)

flashing via usb fixed to not say CAN Flash Success

* chore: rewrote lambda as def (#83)

* Chore: removed random useless code (#80)

* Make MOVE argument configurable (#92)

* feat: make the MOVE argument configurable

Fixes #89

* feat: renamed MOVE to FUZZY_TOUCH and renamed scanner_touch_move to scanner_touch_fuzzy_move

* fix: set a maxval on fuzzy_touch config

---------

Co-authored-by: Chris Krause <[email protected]>

* chore: create macro to help us test (#97)

* feat: add 5.1.0 firmware (k1 missing) (#91)

* feat: add k1 USB 5.1.0 firmware (#100)

* fix: z offset bug (#102)

* Removed CARTOGRAPHER_THRESHOLD_TEST (#82)

* Remove PROBE_CALIBRATE and associated helper function (#81)

* removed PROBE_CALIBRATE and associated helper function
---------

Co-authored-by: Jonas Damtoft <[email protected]>

* Added error message when error during calibration (#84)

* Add types for config, printer and reactor (#94)

* Add 5.1.0 HT firmware (#107)

* feat: add HT firmware and -h flag to firmware.sh

* fix: HT folder name + script version

* fix/change max_retries float to int (#108)

* feat: add types for gcode and gcode command (#106)

* fix: fixes 5.1.0 HT firmware (#111)

* remove duplicate line (#116)

* fix: pin python version to 3.9 (#118)

* removes graph generation and imports (#124)

* fix: tolerance is not a tuple (#125)

* change max_temp to wait_temp (#117)

* Chore: Removed unused ADXL functions and variables (#114)

* chore: remove adxl probing remains

* removed more adxl stuff

* Check firmware version before homing (#112)

* feat(model): save firmware version used for calibration on model

* feat(model): validate against current firmware version

* fix: move mcu get_status to identify handler

* fixup! feat(model): validate against current firmware version

* fix: remove leftover adxl stuff

This became visible after adding the type to scanner

* chore: add recalibration docs url

* Feature: pass params from calibrate to touch (#120)

* pass params from calibrate to touch

* fix: types for GCodeCommand.get_command_parameters

---------

Co-authored-by: Jonas Damtoft <[email protected]>

* feat: setup ci to check k1 environment (#123)

* feat: setup ci to check k1 environment

fix: add build tools

fix: add setuptools to k1

fix: remove explicit build tools from actions

fix: add setuptools for standard env

add full pip3 freeze output from standard env

fix: full standard env

slim down standard env

fix: k1 builds

pycurl is not happy in gh

fix: align standard env

fix: update requirements to avoid breaking changes

fix(k1): disable rule for K1

* fix: use numpy-stubs instead

---------

Co-authored-by: KrauTech <[email protected]>
Co-authored-by: Chris Krause <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore A code change that neither fixes a bug nor adds a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants