31025 Commits

Author SHA1 Message Date
just-trey
829968d215 refactor and clean up 2022-11-25 23:44:17 -05:00
just-trey
b6cbbefc49 remove machine_head_with_fans_polygon as values are nto correct 2022-11-25 16:10:16 -05:00
just-trey
eb2ebd1481 fixi initial layer heights 2022-11-25 16:03:16 -05:00
just-trey
3a522ddb07 removed uneeded file 2022-11-25 15:59:21 -05:00
just-trey
ba12649e31 refactor to parent 2022-11-25 15:55:54 -05:00
just-trey
d021ce5577 bae cleanup 2022-11-25 14:08:58 -05:00
just-trey
2c5930dc8e base cleanup 2022-11-25 14:08:38 -05:00
Joey de l'Arago
ba958e1186 Changes by c.lamboo 2022-11-25 17:42:55 +01:00
Joey de l'Arago
eb13ac7f6b Getting setting section sized properly
CURA-9793
2022-11-25 17:42:50 +01:00
c.lamboo
4fa024cd31 Group intent and quality
Bit of an ugly hack. At later point in the code it is assumed the first element of the list is the main part and the remaining elements form the suffix. Intent and the profile form both the main part so these need to be grouped together.

Cura-9773
2022-11-25 16:48:06 +01:00
c.lamboo
76564f7bc4 Add dash between main, and suffix part of quality display name
Cura-9773
2022-11-25 16:46:21 +01:00
c.lamboo
ad3b2deb2a Merge remote-tracking branch 'origin/9773-add_quality_type_to_ufp_files' into 9773-add_quality_type_to_ufp_files 2022-11-25 16:12:49 +01:00
c.lamboo
1ae8f2da62 Add quality display name with ufp files
Cura-9773
2022-11-25 16:12:44 +01:00
c.lamboo
52ee149edc Unify activeQualityDisplayNameMap string creation
Generation quality display names in `CustomPrintSetup.qml` and `PrintSetupSelectorHeader.qml` were so similar that I decided to combine the logic.

Cura-9773
2022-11-25 16:09:55 +01:00
Joey de l'Arago
57ec36b7fe Fix typing 2022-11-25 14:37:22 +01:00
Joey de l'Arago
f8590be6da Remove elif after returns 2022-11-25 14:29:33 +01:00
Joey de l'Arago
00acc3f31a
Update printer-linter/src/printerlinter/diagnostic.py
Co-authored-by: Jelle Spijker <j.spijker@ultimaker.com>
2022-11-25 14:29:03 +01:00
Joey de l'Arago
86ac4c4ab8 Fix regex for list/dict match last item in list without comma at end.
Add some custom ordering to the json. This is so that important values like "version" don't get pushed to the end of the json.
2022-11-25 14:09:12 +01:00
Remco Burema
6a126f4d6b
Merge pull request #13799 from NilsRo/master
disable lin. adv. if accidently enabled by earlier print
2022-11-25 12:41:24 +01:00
Joey de l'Arago
f6c8312403
Merge pull request #13847 from xommit/main
Translating Cura - Update fr_FR language
2022-11-25 10:47:11 +01:00
c.lamboo
c2ad41e10e Add quality type to ufp files
Cura-9773
2022-11-24 23:02:13 +01:00
c.lamboo
e8f6786e97 Revert "Add quality type to ufp files"
This reverts commit 7e84082aff26195d82b8d3c9239dee863949c099.
2022-11-24 22:56:35 +01:00
Joey de l'Arago
ac2e733ea6 Add Section Header and Section Setting item components.
Upgrade Adhesion to use new components

CURA-9793
2022-11-24 17:24:28 +01:00
Joey de l'Arago
a7dc1b24bc Rename RecommendedInfillDensitySelector.qml since it will now be a more generic Strength selector
CURA-9793
2022-11-24 16:42:46 +01:00
Remco Burema
6dc0a24311 Cache and genericize ID to Product table.
part of CURA-9931
2022-11-24 15:33:39 +01:00
c.lamboo
7e84082aff Add quality type to ufp files
Cura-9773
2022-11-24 13:55:31 +01:00
Joey de l'Arago
e83ed933e2 Update readme with instruction for developing.
Change DiagnosticGenerator -> Linter since this is much easier to understand.
2022-11-23 17:52:33 +01:00
just-trey
08a0b54c5f Merge branch 'master' of https://github.com/just-trey/Cura 2022-11-23 11:41:37 -05:00
just-trey
0e4c39c433 update setting_version 2022-11-23 11:41:34 -05:00
just-trey
99c57a4ba4
Merge pull request #1 from Ultimaker/main
get latest
2022-11-23 11:31:33 -05:00
Joey de l'Arago
8e027c4af9 Add is not None because it makes it clearer that the lamdba returns a boolean. 2022-11-23 17:21:31 +01:00
Joey de l'Arago
a7800f824a Use formatters in terminal.py
Do some general refactoring for readability
2022-11-23 17:20:22 +01:00
Joey de l'Arago
b6ac85d251 Add separate package with file formatters. 2022-11-23 17:19:14 +01:00
Joey de l'Arago
ad436f37f8 Add some comments and refactoring 2022-11-23 16:48:39 +01:00
Joey de l'Arago
437b05f608 Add some doc strings 2022-11-23 15:28:57 +01:00
Joey de l'Arago
0b2e409929 Update documentation on diagnostic to be less specifically about strings. Since diagnostics can be related to other issues. 2022-11-23 15:25:13 +01:00
Joey de l'Arago
d19f1f3e42 Add typing for file and settings.
Add diagnostic generator documentation
2022-11-23 15:20:42 +01:00
Joey de l'Arago
f49f8b3cb8 Add some documentation to factory and format file. 2022-11-23 15:10:55 +01:00
Joey de l'Arago
c097838614 Add replacement documenation 2022-11-23 15:07:28 +01:00
Joey de l'Arago
44af869a2c Add documentation to diagnostic and reformat file. 2022-11-23 15:02:33 +01:00
Joey de l'Arago
4f4523c4b7 Use Diagnostic Generator super for Meshes 2022-11-23 14:38:31 +01:00
Joey de l'Arago
f74a40bed0 Flatten main logic.
Parse files from directories to remove checking if a file is a directory in many places.
2022-11-23 14:24:09 +01:00
Joey de l'Arago
ad7e719146 Format lists and dicts of a single item onto one line
example:
"dict":
{
 "value": 10
}
becomes
"dict": { "value": 10 }
2022-11-22 21:42:42 +01:00
Joey de l'Arago
a470f02373 Move linters into seperate module.
Give linters an abstract type to inherit, since they share an interface.
Add empty README
2022-11-22 19:26:50 +01:00
Joey de l'Arago
91daf89c2d add return types 2022-11-22 14:38:41 +01:00
Joey de l'Arago
bcaa4d3032
Merge pull request #13858 from Ultimaker/printer_linter_auto_format
Auto format printer/profiles with printer-linter
2022-11-22 14:12:35 +01:00
jspijker
187dfe1210 single-value-single-line formatting
Need to figure out the regex expression.
To only select overrides consisting of a
single value
2022-11-21 14:20:53 +01:00
jspijker
def686e61a Remove old workflow 2022-11-21 13:32:23 +01:00
jspijker
28110f3368 Added workflow requirements 2022-11-21 13:31:54 +01:00
jspijker
32673bedea Add PR review workflows
Using the pull-request-comments-from-clang-tidy-reports GH action
https://github.com/marketplace/actions/pull-request-comments-from-clang-tidy-reports

Which is possible because the printer-linter auto
puts the suggested fixes in the same format as
clang-tidy.

It consists of two workflows, to ensure safe handling
of forks PR's. The first workflows is the analysis and
the suggested fixes, these are then upload to the
second workflow which will use the suggested fixes
to past comments on the PR
2022-11-21 13:23:04 +01:00