Skip to content

Commit ed93071

Browse files
CHORE: Update missing or outdated files (#91)
Co-authored-by: phx-mpascale <michel.pascale@ansys.com>
1 parent 993f2f8 commit ed93071

File tree

18 files changed

+144
-84
lines changed

18 files changed

+144
-84
lines changed

.github/workflows/cicd.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212

1313
env:
1414
DOCUMENTATION_CNAME: 'engineeringworkflow.docs.pyansys.com'
15-
MAIN_PYTHON_VERSION: '3.11'
15+
MAIN_PYTHON_VERSION: '3.13'
1616
PACKAGE_NAME: 'ansys-engineeringworkflow-api'
1717
PACKAGE_NAMESPACE: 'ansys.engineeringworkflow.api'
1818

@@ -34,7 +34,6 @@ jobs:
3434
uses: ansys/actions/doc-style@v8
3535
with:
3636
token: ${{ secrets.GITHUB_TOKEN }}
37-
vale-version: "3.1.0"
3837

3938
smoke-tests:
4039
name: "Build and Smoke tests"
@@ -44,7 +43,7 @@ jobs:
4443
fail-fast: false
4544
matrix:
4645
os: [ubuntu-latest, windows-latest, macos-latest]
47-
python-version: ['3.9', '3.10', '3.11', '3.12']
46+
python-version: ['3.10', '3.11', '3.12', '3.13']
4847
should-release:
4948
- ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags') }}
5049
exclude:
@@ -67,7 +66,7 @@ jobs:
6766
- name: Run pytest
6867
uses: ansys/actions/tests-pytest@v8
6968
with:
70-
python-version: ${{ env.MAIN_PYTHON_VERSION }}
69+
python-version: ${{ matrix.python-version }}
7170
pytest-extra-args: -v --durations=10 --maxfail=10 --cov=${{ env.PACKAGE_NAMESPACE }} --cov-report=xml:coverage.xml --cov-report=html --cov-report term
7271

7372
- name: "Upload coverage to Codecov"
@@ -87,10 +86,9 @@ jobs:
8786
needs: [doc-style]
8887
steps:
8988
- name: "Run Ansys documentation building action"
90-
uses: ansys/actions/doc-build@v8
89+
uses: ansys/actions/doc-build@21c9de9bee9692173780696d4a39964f20b9cfa3 # v10.1.5
9190
with:
9291
python-version: ${{ env.MAIN_PYTHON_VERSION }}
93-
dependencies: "texlive-fonts-extra "
9492

9593
package:
9694
name: Package library

.pre-commit-config.yaml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,48 +2,41 @@ exclude: "tests/integration/files"
22
repos:
33

44
- repo: https://github.com/ansys/pre-commit-hooks
5-
rev: v0.2.8
5+
rev: v0.5.2
66
hooks:
77
- id: add-license-headers
88
args:
99
- --start_year=2022
1010

1111
- repo: https://github.com/psf/black
12-
rev: 23.9.1 # IF VERSION CHANGES --> MODIFY "blacken-docs" MANUALLY AS WELL!!
12+
rev: 25.11.0 # IF VERSION CHANGES --> MODIFY "blacken-docs" MANUALLY AS WELL!!
1313
hooks:
1414
- id: black
1515

1616
- repo: https://github.com/adamchainz/blacken-docs
17-
rev: 1.16.0
17+
rev: 1.20.0
1818
hooks:
1919
- id: blacken-docs
20-
additional_dependencies: [black==23.9.1]
20+
additional_dependencies: [black==25.11.0]
2121

2222
- repo: https://github.com/pycqa/isort
23-
rev: 5.12.0
23+
rev: 7.0.0
2424
hooks:
2525
- id: isort
2626

2727
- repo: https://github.com/PyCQA/flake8
28-
rev: 6.1.0
28+
rev: 7.3.0
2929
hooks:
3030
- id: flake8
3131

32-
- repo: https://github.com/PyCQA/docformatter
33-
rev: v1.7.5
34-
hooks:
35-
- id: docformatter
36-
additional_dependencies: [tomli]
37-
args: [-i]
38-
3932
- repo: https://github.com/codespell-project/codespell
40-
rev: v2.2.6
33+
rev: v2.4.1
4134
hooks:
4235
- id: codespell
4336
args: ["--ignore-words", "doc/styles/config/vocabularies/ANSYS/accept.txt"]
4437

4538
# this validates our github workflow files
4639
- repo: https://github.com/python-jsonschema/check-jsonschema
47-
rev: 0.27.0
40+
rev: 0.35.0
4841
hooks:
4942
- id: check-github-workflows

CODE_OF_CONDUCT.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Contributor covenant code of conduct
2+
3+
## Pledge
4+
5+
In the interest of fostering an open and welcoming environment,
6+
all contributors and maintainers pledge to making participation
7+
in the Ansys project and community a harassment-free experience
8+
for everyone, regardless of age, body size, disability, ethnicity,
9+
sex characteristics, gender identity and expression, level of
10+
experience, education, socioeconomic status, nationality, personal
11+
appearance, race, religion, or sexual identity and orientation.
12+
13+
## Standards
14+
15+
Examples of behavior that contribute to creating a positive environment
16+
include:
17+
18+
* Using welcoming and inclusive language
19+
* Being respectful of differing viewpoints and experiences
20+
* Gracefully accepting constructive criticism
21+
* Focusing on what is best for the community
22+
* Showing empathy towards other community members
23+
24+
Examples of unacceptable behavior by participants include:
25+
26+
* The use of sexualized language or imagery and unwelcome sexual
27+
attention or advances
28+
* Trolling, insulting/derogatory comments, and personal or political attacks
29+
* Public or private harassment
30+
* Publishing others' private information, such as a physical or electronic
31+
address, without explicit permission
32+
* Other conduct which could reasonably be considered inappropriate in a
33+
professional setting
34+
35+
## Responsibilities
36+
37+
Project maintainers are responsible for clarifying the standards of acceptable
38+
behavior and are expected to take appropriate and fair corrective action in
39+
response to any instances of unacceptable behavior.
40+
41+
Project maintainers have the right and responsibility to remove, edit, or reject
42+
comments, commits, code, wiki edits, issues, and other contributions that are
43+
not aligned to this Code of Conduct, or to ban temporarily or permanently any
44+
contributor for other behaviors that they deem inappropriate, threatening,
45+
offensive, or harmful.
46+
47+
## Scope
48+
49+
This Code of Conduct applies both within project spaces and in public spaces
50+
when an individual is representing the project or its community. Examples of
51+
representing a project or community include using an official project email
52+
address, posting using an official social media account, or acting as an appointed
53+
representative at an online or offline event. Representation of a project may be
54+
further defined and clarified by project maintainers.
55+
56+
## Attribution
57+
58+
This code of conduct is adapted from the [Contributor Covenant][homepage],
59+
version 1.4, available at
60+
<https://www.contributor-covenant.org/version/1/4/code-of-conduct.html>
61+
62+
[homepage]: https://www.contributor-covenant.org
63+
64+
For answers to common questions about this code of conduct, see
65+
<https://www.contributor-covenant.org/faq>

CONTRIBUTING.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
1-
# Contributing
1+
# Contribute
22

3-
Please, refer to the [PyAnsys Developer's Guide] for contributing to this project.
3+
Overall guidance on contributing to a PyAnsys library appears in the
4+
[Contributing] topic in the *PyAnsys developer's guide*. Ensure that you
5+
are thoroughly familiar with this guide before attempting to contribute to
6+
Ansys Engineering Workflow API.
47

5-
All code contributions are welcome. While Ansys Engineering Workflow API is
6-
maintained by Ansys and all submissions are thoroughly reviewed by project maintainers
7-
before merging, the goal is to foster a community that can support user questions and develop
8-
new features to make this tool useful to all. As such, project maintainers encourage questions
9-
and submissions.
8+
The following contribution information is specific to Ansys Engineering Workflow API.
109

11-
Further information about contributing to Ansys Engineering Workflow API
12-
can be found in [Contributing].
13-
14-
[PyAnsys Developer's Guide]: https://dev.docs.pyansys.com/how-to/contributing.html
15-
[Contributing]: https://engineeringworkflow.docs.pyansys.com/version/dev/contributing/index.html
10+
[Contributing]: https://dev.docs.pyansys.com/how-to/contributing.html
1611

12+
<!-- Begin content specific to your library here. -->

LICENSE

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
MIT License
22

3-
Copyright (c) 2022 - 2024 ANSYS, Inc. All rights reserved.
3+
Copyright (c) 2022 - 2025 ANSYS, Inc. and/or its affiliates.
44

5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
9+
of the Software, and to permit persons to whom the Software is furnished to do
10+
so, subject to the following conditions:
1111

1212
The above copyright notice and this permission notice shall be included in all
1313
copies or substantial portions of the Software.
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

SECURITY.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Security Policy
2+
3+
## Reporting a vulnerability
4+
5+
> [!CAUTION]
6+
> Do not use GitHub issues to report any security vulnerabilities.
7+
8+
If you detect a vulnerability, contact the [PyAnsys Core team](mailto:pyansys.core@ansys.com),
9+
mentioning the repository and the details of your finding. The team will address it as soon as possible.
10+
11+
Provide the PyAnsys Core team with this information:
12+
13+
- Any specific configuration settings needed to reproduce the problem
14+
- Step-by-step guidance to reproduce the problem
15+
- The exact location of the problematic source code, including tag, branch, commit, or a direct URL
16+
- The potential consequences of the vulnerability, along with a description of how an attacker could take advantage of the issue

doc/source/conf.py

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22

33
from datetime import datetime
44
import os
5-
from pathlib import Path
65

76
from ansys_sphinx_theme import (
87
ansys_favicon,
98
ansys_logo_white,
109
ansys_logo_white_cropped,
11-
get_autoapi_templates_dir_relative_path,
1210
get_version_match,
1311
latex,
1412
pyansys_logo_black,
@@ -52,6 +50,9 @@
5250
"json_url": f"https://{cname}/versions.json",
5351
"version_match": switcher_version,
5452
},
53+
"ansys_sphinx_theme_autoapi": {
54+
"project": project,
55+
},
5556
}
5657

5758
html_context = {
@@ -60,6 +61,7 @@
6061
"github_repo": "ansys-engineeringworkflow-api",
6162
"github_version": "main",
6263
"doc_path": "doc/source",
64+
"pyansys_tags": ["Connect"],
6365
}
6466

6567
# Sphinx extensions
@@ -70,6 +72,7 @@
7072
"sphinx.ext.intersphinx",
7173
"sphinx_copybutton",
7274
"sphinx_design",
75+
"ansys_sphinx_theme.extension.autoapi",
7376
]
7477

7578
# Intersphinx mapping
@@ -107,6 +110,13 @@
107110
# type, unless multiple values are being returned"
108111
}
109112

113+
numpydoc_validation_exclude = {
114+
"add_note",
115+
"count",
116+
"validate",
117+
"__cause__",
118+
"__context__",
119+
}
110120

111121
# static path
112122
html_static_path = ["_static"]
@@ -121,21 +131,7 @@
121131
master_doc = "index"
122132

123133
# Configuration for Sphinx autoapi
124-
autoapi_type = "python"
125-
autoapi_dirs = ["../../src/ansys"]
126-
autoapi_root = "api"
127-
autoapi_options = [
128-
"members",
129-
"undoc-members",
130-
"show-inheritance",
131-
"show-module-summary",
132-
"special-members",
133-
]
134-
autoapi_template_dir = get_autoapi_templates_dir_relative_path(Path(__file__))
135-
suppress_warnings = ["autoapi.python_import_resolution"]
136-
autoapi_python_use_implicit_namespaces = True
137-
autoapi_render_in_single_page = ["class", "enum", "exception"]
138-
autoapi_own_page_level = "class"
134+
suppress_warnings = ["autoapi.python_import_resolution", "design.fa-build"]
139135

140136
# The language for content autogenerated by Sphinx. Refer to documentation
141137
# for a list of supported languages.
@@ -186,4 +182,3 @@
186182
# change the preamble of latex with customized title page
187183
# variables are the title of pdf, watermark
188184
latex_elements = {"preamble": latex.generate_preamble(html_title)}
189-
sd_fontawesome_latex = True

doc/source/contributing/index.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Install in developer mode
1414
-------------------------
1515

1616
Installing the ``ansys-engineeringworkflow-api`` package in developer mode allows
17-
you to modify the source and enhance it. This package supports Python 3.9 through 3.12
17+
you to modify the source and enhance it. This package supports Python 3.10 through 3.13
1818
on Windows, MacOS, and Linux.
1919

2020
For a local development version, you can create a clean virtual environment with this command:
@@ -79,22 +79,22 @@ Makefile for your operating system:
7979

8080
::
8181

82-
make -C doc/ html && your_browser_name doc/build/html/index.html
82+
make -C doc/ html && your_browser_name doc/_build/html/index.html
8383

8484
.. tab-item:: macOS
8585
:sync: macos
8686

8787
::
8888

89-
make -C doc/ html && your_browser_name doc/build/html/index.html
89+
make -C doc/ html && your_browser_name doc/_build/html/index.html
9090

9191
.. tab-item:: Windows
9292
:sync: windows
9393

9494
::
9595

9696
.\doc\make.bat html
97-
.\doc\build\html\index.html
97+
.\doc\_build\html\index.html
9898

9999
Post issues
100100
-----------

doc/source/getting_started/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Getting started
44
===============
55

6-
The Ansys Engineering Workflow API supports Python 3.9 through 3.12 on Windows,
6+
The Ansys Engineering Workflow API supports Python 3.10 through 3.13 on Windows,
77
MacOS, and Linux.
88

99
Two installation modes of the ``ansys-engineeringworkflow-api`` package

doc/styles/config/vocabularies/ANSYS/accept.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ Makefile
99
optiSLang
1010
pytest
1111
Python
12+
THIRDPARTY

0 commit comments

Comments
 (0)