Skip to content

Commit 5ade171

Browse files
authored
re-enabled d100 and d104, added docstrings to some generated files (#269)
2 parents 9c28997 + 8efa789 commit 5ade171

File tree

18 files changed

+90
-2
lines changed

18 files changed

+90
-2
lines changed

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,8 @@ select = [
6666
]
6767
ignore = [
6868
# "E501", # Line too long. Ignoring this so "ruff.formatter" manages line length.
69-
"D100", # Missing docstring in public module
7069
"D101", # Missing docstring in public class
7170
"D102", # Missing docstring in public method
72-
"D104", # Missing docstring in public package
7371
"D105", # Missing docstring in magic method
7472
"D106", # Missing docstring in public nested class
7573
"D107", # Missing docstring in `__init__`

src/ansys/stk/core/graphics.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22
# Copyright 2020-2023, Ansys Government Initiatives
33
################################################################################
44

5+
"""
6+
Access and manipulate visual elements in STK.
7+
8+
These include STK globe terrain
9+
and imagery, camera control, 3D models, triangle meshes, surface polygons and
10+
polylines, text batches, screen overlays, scene lighting, and raster and
11+
projection streaming. STK Graphics is available in STK, using UI plugins, as
12+
well as in STK Engine custom applications.
13+
"""
14+
515
__all__ = ["AGICustomTerrainOverlay", "AGICustomTerrainOverlayFactory", "AGIProcessedImageGlobeOverlay", "AGIProcessedImageGlobeOverlayFactory",
616
"AGIProcessedTerrainOverlay", "AGIProcessedTerrainOverlayFactory", "AGIRoamImageGlobeOverlay", "AGIRoamImageGlobeOverlayFactory",
717
"ANTI_ALIASING", "AlphaFromLuminanceFilter", "AlphaFromLuminanceFilterFactory", "AlphaFromPixelFilter", "AlphaFromPixelFilterFactory",

src/ansys/stk/core/stkdesktop.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# Copyright 2020-2023, Ansys Government Initiatives
33
################################################################################
44

5+
"""Starts STK Desktop or attaches to an already running STK Desktop, and provides access to the Object Model root."""
6+
57
__all__ = ["STKDesktop", "STKDesktopApplication"]
68

79
import os

src/ansys/stk/core/stkengine/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# Copyright 2020-2020, Ansys Government Initiatives
33
################################################################################
44

5+
"""Starts STK Engine and provides access to the Object Model root."""
6+
57
__all__ = ["STKEngine", "STKEngineApplication", "STK_ENGINE_TIMER_TYPE"]
68

79
import os
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"""Experimental features."""

src/ansys/stk/core/stkengine/experimental/jupyterwidgets.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# Copyright 2022-2022, Ansys Government Initiatives
33
################################################################################
44

5+
"""Map and globe widgets for Jupyter Notebooks using Remote Frame Buffer."""
6+
57
# Dependencies: jupyter_rfb, pillow, imageio, simplejpeg, ipycanvas
68

79
__all__ = ['GlobeWidget', 'MapWidget', 'GfxAnalysisWidget']

src/ansys/stk/core/stkengine/tkcontrols.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# Copyright 2021-2021, Ansys Government Initiatives
33
################################################################################
44

5+
"""Enables Tkinter integration."""
6+
57
__all__ = ["GlobeControl", "MapControl", "GfxAnalysisControl"]
68

79
import os

src/ansys/stk/core/stkobjects/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# Copyright 2020-2023, Ansys Government Initiatives
33
################################################################################
44

5+
"""The following is an overview of the classes, interfaces and enumerations of the STK Object Model."""
6+
57
__all__ = ["ABERRATION_TYPE", "ACCESS_CONSTRAINTS", "ACCESS_TIME_TYPE", "ACTION_TYPE", "ADV_CAT_CONJUNCTION_TYPE", "ADV_CAT_ELLIPSOID_CLASS",
68
"ADV_CAT_SECONDARY_ELLIPSOIDS_VISIBILITY_TYPE", "AIRCRAFT_WGS84_WARNING_TYPE", "ALTITUDE_REFERENCE_TYPE", "ANALYSIS_WORKBENCH_ACCESS_CONSTRAINTS",
79
"ANIMATION_ACTIONS", "ANIMATION_DIRECTIONS", "ANIMATION_MODES", "ANIMATION_OPTIONS", "ANTENNA_CONTOUR_TYPE", "ANTENNA_CONTROL_REFERENCE_TYPE",

src/ansys/stk/core/stkobjects/astrogator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# Copyright 2020-2023, Ansys Government Initiatives
33
################################################################################
44

5+
"""This library contains Object Model components specifically designed to support STK Astrogator."""
6+
57
__all__ = ["ACCESS_CRITERION", "ASCENT_TYPE", "ATMOS_DATA_SOURCE", "ATTITUDE_CONTROL", "ATTITUDE_UPDATE", "AccessStoppingCondition",
68
"AsTriggerCondition", "AstrogatorCentralBody", "AttitudeControlFiniteAntiVelocityVector", "AttitudeControlFiniteAttitude",
79
"AttitudeControlFiniteFile", "AttitudeControlFinitePlugin", "AttitudeControlFiniteThrustVector", "AttitudeControlFiniteTimeVarying",

src/ansys/stk/core/stkobjects/aviator/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# Copyright 2020-2023, Ansys Government Initiatives
33
################################################################################
44

5+
"""This library contains Object Model components specifically designed to support STK Aviator."""
6+
57
__all__ = ["ACCELERATION_ADVANCED_ACCEL_MODE", "ACCEL_MANEUVER_AERO_PROP_MODE", "ACCEL_MANEUVER_MODE", "ACCEL_MODE", "ACCEL_PERF_MODEL_OVERRIDE",
68
"ADDSMessage", "ADDSMessageCollection", "ADDS_FORECAST_TYPE", "ADDS_MISSING_MSG_TYPE", "ADDS_MSG_EXTRAP_TYPE", "ADDS_MSG_INTERP_TYPE",
79
"ADVANCED_FIXED_WING_AERO_STRATEGY", "ADVANCED_FIXED_WING_GEOMETRY", "ADVANCED_FIXED_WING_POWERPLANT_STRATEGY", "AERO_PROP_FLIGHT_MODE",

0 commit comments

Comments
 (0)