Skip to content

Commit

Permalink
pylint improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
gumyr committed Apr 4, 2023
1 parent 093c664 commit 12504c6
Show file tree
Hide file tree
Showing 7 changed files with 286 additions and 371 deletions.
4 changes: 3 additions & 1 deletion src/build123d/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .version import version as __version__
"""build123d import definitions"""
from build123d.build_common import *
from build123d.build_line import *
from build123d.build_sketch import *
Expand All @@ -13,6 +13,7 @@
from build123d.objects_part import *
from build123d.objects_sketch import *
from build123d.objects_curve import *
from .version import version as __version__

__all__ = [
# Measurement Units
Expand Down Expand Up @@ -89,6 +90,7 @@
"Torus",
"Wedge",
# Direct API Classes
"BoundBox",
"Rotation",
"Rot",
"Pos",
Expand Down
6 changes: 4 additions & 2 deletions src/build123d/_dev/scm_version.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
"""scm version"""
import os.path as pth

try:
from setuptools_scm import get_version

version = get_version(root=pth.join("..", "..", ".."), relative_to=__file__)
except Exception:
raise ImportError("setuptools_scm broken or not installed")
except Exception as exc:
raise ImportError("setuptools_scm broken or not installed") from exc
Loading

0 comments on commit 12504c6

Please sign in to comment.