Skip to content

Commit

Permalink
Exclude ui and svg from whitespace checking
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaël Écorchard committed Jan 23, 2025
1 parent 5969cdf commit 87cbcb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ repos:
- id: forbid-submodules
- id: mixed-line-ending
- id: trailing-whitespace
exclude: '(\.ui|\.svg)$'
- repo: https://github.com/asottile/pyupgrade
rev: v3.19.1
hooks:
Expand Down
2 changes: 1 addition & 1 deletion Information/CenterOfMass.FCMacro
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,7 @@ class CenterofmassWidget(QtGui.QWidget):
for s_ in ('CoMBBoxOfSel', 'CoMLCS', 'CoMTotal', 'CoMPlaneYZ', 'CoMPlaneXZ', 'CoMPlaneXY'):
if self.doc.getObject(s_):
self.doc.removeObject(s_)

# Bounding box of valid selection
BBoxSolid = self.doc.addObject('Part::Box', 'CoMBBoxOfSel')
BBoxSolid.Placement.Base = self.boundBox.Center.sub(app.Vector(boundBoxL).multiply(0.5))
Expand Down

0 comments on commit 87cbcb7

Please sign in to comment.