Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ repos:
additional_dependencies: [tomli]

- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
rev: v2.3.0
hooks:
- id: codespell
args: ["--ignore-words", "doc/styles/config/vocabularies/ANSYS/accept.txt", "-w"]
Expand Down
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ contributors and maintainers pledge to making participation in our
project and our community a harassment-free experience for everyone,
regardless of age, body size, disability, ethnicity, sex
characteristics, gender identity and expression, level of experience,
education, socio-economic status, nationality, personal appearance,
education, socioeconomic status, nationality, personal appearance,
race, religion, or sexual identity and orientation.

## Our Standards
Expand Down
1 change: 1 addition & 0 deletions doc/changelog.d/1224.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
chore: pre-commit automatic update
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Issues = "https://github.com/ansys/pyansys-geometry/issues"
Discussions = "https://github.com/ansys/pyansys-geometry/discussions"
Documentation = "https://geometry.docs.pyansys.com"
Releases = "https://github.com/ansys/pyansys-geometry/releases"
Changelog = "https://github.com/ansys/pyansys-geometry/blob/main/doc/source/changelog.rst"
Changelog = "https://github.com/ansys/pyansys-geometry/blob/main/doc/source/changelog.rst"

[tool.flit.module]
name = "ansys.geometry.core"
Expand All @@ -114,7 +114,6 @@ line-length = 100
profile = "black"
force_sort_within_sections = true
line_length = 100
default_section = "THIRDPARTY"
src_paths = ["doc", "src", "tests"]

[tool.docformatter]
Expand Down
8 changes: 4 additions & 4 deletions src/ansys/geometry/core/connection/product_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

MANIFEST_FILENAME = "Presentation.ApiServerAddIn.Manifest.xml"
"""
Default backend's addin filename.
Default backend's add-in filename.

To be used only for local start of Ansys Discovery or Ansys SpaceClaim.
"""
Expand Down Expand Up @@ -100,7 +100,7 @@

BACKEND_ADDIN_MANIFEST_ARGUMENT = "/ADDINMANIFESTFILE="
"""
The argument to specify the backend's addin manifest file's path.
The argument to specify the backend's add-in manifest file's path.

To be used only with Ansys Discovery and Ansys SpaceClaim.
"""
Expand Down Expand Up @@ -135,7 +135,7 @@

BACKEND_SPLASH_OFF = "/Splash=False"
"""
The argument to specify the backend's addin manifest file's path.
The argument to specify the backend's add-in manifest file's path.

To be used only with Ansys Discovery and Ansys SpaceClaim.
"""
Expand Down Expand Up @@ -380,7 +380,7 @@ def _is_port_available(port: int, host: str = "localhost") -> bool:
def _manifest_path_provider(
version: int, available_installations: Dict, manifest_path: str = None
) -> str:
"""Return the ApiServer's addin manifest file path."""
"""Return the ApiServer's add-in manifest file path."""
if manifest_path:
if os.path.exists(manifest_path):
return manifest_path
Expand Down
10 changes: 5 additions & 5 deletions src/ansys/geometry/core/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,14 +442,14 @@ def setLevel(self, level="DEBUG"):
each_handler.setLevel(level)
self._level = level

def _make_child_logger(self, sufix, level):
def _make_child_logger(self, suffix, level):
"""
Create a child logger.

This method uses the ``getChild()`` method or copies attributes between the
``PyAnsys_Geometry_global`` logger and the new one.
"""
logger = logging.getLogger(sufix)
logger = logging.getLogger(suffix)
logger.std_out_handler = None
logger.file_handler = None

Expand Down Expand Up @@ -487,7 +487,7 @@ def _make_child_logger(self, sufix, level):
logger.propagate = True
return logger

def add_child_logger(self, sufix: str, level: Optional[str] = None):
def add_child_logger(self, suffix: str, level: Optional[str] = None):
"""
Add a child logger to the main logger.

Expand All @@ -499,7 +499,7 @@ def add_child_logger(self, sufix: str, level: Optional[str] = None):

Parameters
----------
sufix : str
suffix : str
Name of the child logger.
level : str, default: None
Level of logging.
Expand All @@ -509,7 +509,7 @@ def add_child_logger(self, sufix: str, level: Optional[str] = None):
logging.Logger
Logger class.
"""
name = self.logger.name + "." + sufix
name = self.logger.name + "." + suffix
self._instances[name] = self._make_child_logger(self, name, level)
return self._instances[name]

Expand Down