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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ repos:


- repo: https://github.com/psf/black
rev: 24.1.1 # IF VERSION CHANGES --> MODIFY "blacken-docs" MANUALLY AS WELL!!
rev: 24.2.0 # IF VERSION CHANGES --> MODIFY "blacken-docs" MANUALLY AS WELL!!
hooks:
- id: black
args: [
Expand All @@ -14,7 +14,7 @@ repos:
rev: 1.16.0
hooks:
- id: blacken-docs
additional_dependencies: [black==24.1.1]
additional_dependencies: [black==24.2.0]

- repo: https://github.com/pycqa/isort
rev: 5.13.2
Expand Down Expand Up @@ -44,7 +44,7 @@ repos:
- id: debug-statements

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.27.4
rev: 0.28.0
hooks:
- id: check-github-workflows
name: "Check GitHub workflows"
Expand Down
7 changes: 3 additions & 4 deletions doc/source/coding-style/deprecation.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
Deprecation best practices
==========================

While deprecation best practices are outlined in a `Stack
Overflow Answer <https://stackoverflow.com/questions/2536307>`_ and
in this `Deprecation library <https://deprecation.readthedocs.io/>`_ ,
While deprecation best practices are outlined in
this `Deprecation library <https://deprecation.readthedocs.io/>`_ ,
there is no official guidance on deprecating features within Python.
Thus, this topic provides deprecation best practices for PyAnsys
libraries.
Expand Down Expand Up @@ -93,4 +92,4 @@ You then use this custom ``DeprecationError`` in place of an ``Exception``.
This function has been deprecated.

"""
raise DeprecationError('`my_function` has been deprecated.')
raise DeprecationError("`my_function` has been deprecated.")