Skip to content

Commit ac2a226

Browse files
committed
Merge branch 'main' into release/0.3
2 parents 52e28e1 + 5acb5ec commit ac2a226

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+466
-11934
lines changed

.flake8

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ exclude = venv, __init__.py, doc/build
33
select = W191, W291, W293, W391, E115, E117, E122, E124, E125, E225, E231, E301, E303, E501, F401, F403
44
count = True
55
max-complexity = 10
6-
max-line-length = 100
7-
statistics = True
6+
max-line-length = 120
7+
statistics = True

.github/CODEOWNERS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# These owners will be the default owners for everything in the repo. Unless a
2+
# later match takes precedence, the PyDyna team will be requested for review when
3+
# someone opens a pull request.
4+
* @ansys/pydyna

.github/labeler.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ documentation:
44
maintenance:
55
- .github/**/*
66
- .flake8
7-
- setup.py
7+
- pyproject.toml
88
dependencies:
9-
- requirements/**/*
10-
- requirements_docs.txt
11-
- requirements_test.txt
9+
- pyproject.toml
1210
testing:
13-
- _unittest/conftest.py
11+
- _unittest/conftest.py
12+
- tests/*

.github/workflows/ci_cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ jobs:
126126
fail-fast: false
127127
matrix:
128128
os: [windows-latest, ubuntu-latest]
129-
python-version: ['3.7', '3.8', '3.9', '3.10']
129+
python-version: ['3.8', '3.9', '3.10', '3.11']
130130
steps:
131131
- uses: ansys/actions/build-wheelhouse@v4
132132
with:

.gitignore

Lines changed: 149 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,166 @@
1-
# This is an example .gitignore and may need to be adapted per
2-
# project.
3-
4-
# Compiled source #
5-
###################
6-
*.pyc
7-
*.pyd
8-
*.c
9-
*.cpp
10-
*.so
11-
*.o
12-
*.cache
13-
.pytest_cache/
1+
# Created by https://www.toptal.com/developers/gitignore/api/python
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=python
143

15-
# OS generated files #
16-
######################
17-
.fuse_hidden*
18-
*~
19-
*swp
4+
### Python ###
5+
# Byte-compiled / optimized / DLL files
6+
__pycache__/
7+
*.py[cod]
8+
*$py.class
209

21-
# emacs
22-
flycheck*
23-
24-
# Old files #
25-
_old/
10+
# C extensions
11+
*.so
2612

27-
# Pip generated folders #
28-
#########################
29-
*.egg-info/
13+
# Distribution / packaging
14+
.Python
3015
build/
16+
develop-eggs/
3117
dist/
18+
downloads/
19+
eggs/
20+
.eggs/
21+
lib/
22+
lib64/
23+
parts/
24+
sdist/
25+
var/
26+
wheels/
27+
share/python-wheels/
28+
*.egg-info/
29+
.installed.cfg
30+
*.egg
31+
MANIFEST
3232

33-
# autogenerated docs
34-
_autosummary
33+
# PyInstaller
34+
# Usually these files are written by a python script from a template
35+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
36+
*.manifest
37+
*.spec
3538

39+
# Installer logs
40+
pip-log.txt
41+
pip-delete-this-directory.txt
3642

37-
# Testing
43+
# Unit test / coverage reports
44+
htmlcov/
45+
.tox/
46+
.nox/
3847
.cov
3948
.coverage
40-
*,cover
41-
test-output.xml
42-
43-
\#*
44-
.\#*
45-
/.ipynb_checkpoints
46-
47-
/ansys/dyna/pre/Server/input/
48-
/ansys/dyna/pre/Server/output/
49-
/client.log
50-
/examples/pre/client.log
51-
/ansys/dyna/pre/Server/output/
52-
/ansys/dyna/pre/doc/build
53-
/doc/_build
54-
/doc/source/examples
55-
/examples/Airbag/client.log
56-
/examples/EM/client.log
57-
/examples/Explicit/client.log
58-
/examples/ICFD/client.log
59-
/examples/IGA/client.log
60-
/examples/Implicit/client.log
61-
/examples/SALE/client.log
62-
63-
# Environment
64-
.env
49+
.coverage.*
50+
.cache
51+
nosetests.xml
52+
coverage.xml
53+
*.cover
54+
*.py,cover
55+
.hypothesis/
56+
.pytest_cache/
57+
cover/
58+
59+
# Translations
60+
*.mo
61+
*.pot
62+
63+
# Django stuff:
64+
*.log
65+
local_settings.py
66+
db.sqlite3
67+
db.sqlite3-journal
68+
69+
# Flask stuff:
70+
instance/
71+
.webassets-cache
72+
73+
# Scrapy stuff:
74+
.scrapy
75+
76+
# Sphinx documentation
77+
doc/_build/
78+
79+
# PyBuilder
80+
.pybuilder/
81+
target/
82+
83+
# Jupyter Notebook
84+
.ipynb_checkpoints
85+
86+
# IPython
87+
profile_default/
88+
ipython_config.py
89+
90+
# pyenv
91+
# For a library or package, you might want to ignore these files since the code is
92+
# intended to run in multiple environments; otherwise, check them in:
93+
# .python-version
94+
95+
# pipenv
96+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
97+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
98+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
99+
# install all needed dependencies.
100+
#Pipfile.lock
101+
102+
# poetry
103+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
104+
# This is especially recommended for binary packages to ensure reproducibility, and is more
105+
# commonly ignored for libraries.
106+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
107+
#poetry.lock
108+
109+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
110+
__pypackages__/
111+
112+
# Celery stuff
113+
celerybeat-schedule
114+
celerybeat.pid
115+
116+
# SageMath parsed files
117+
*.sage.py
118+
119+
# Environments
120+
.env/
65121
.venv
66122
env/
67123
venv/
68124
ENV/
69125
env.bak/
70126
venv.bak/
71127

72-
# VSCode
73-
.vscode/
74-
client.log
75-
/src/ansys/dyna/core/pre/Server/input
76-
/src/ansys/dyna/core/pre/Server/output
128+
# Spyder project settings
129+
.spyderproject
130+
.spyproject
131+
132+
# Rope project settings
133+
.ropeproject
134+
135+
# mkdocs documentation
136+
/site
137+
138+
# mypy
139+
.mypy_cache/
140+
.dmypy.json
141+
dmypy.json
142+
143+
# Pyre type checker
144+
.pyre/
145+
146+
# pytype static type analyzer
147+
.pytype/
148+
149+
# Cython debug symbols
150+
cython_debug/
151+
152+
# PyCharm
153+
# JetBrains specific template is maintainted in a separate JetBrains.gitignore that can
154+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
155+
# and can be added to the global gitignore or merged into this file. For a more nuclear
156+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
157+
.idea/
158+
159+
# Visual Studio
160+
.vs/
161+
162+
# End of https://www.toptal.com/developers/gitignore/api/python
163+
164+
# Ignore rendered examples
165+
doc/source/examples/
166+
doc/source/API/_autosummary/

.pre-commit-config.yaml

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,37 +15,31 @@ exclude: |
1515
repos:
1616

1717
- repo: https://github.com/psf/black
18-
rev: 23.1.0 # IF VERSION CHANGES --> MODIFY "blacken-docs" MANUALLY AS WELL!!
18+
rev: 23.3.0 # IF VERSION CHANGES --> MODIFY "blacken-docs" MANUALLY AS WELL!!
1919
hooks:
2020
- id: black
21-
args:
22-
- --line-length=120
2321

2422
- repo: https://github.com/adamchainz/blacken-docs
25-
rev: 1.13.0
23+
rev: 1.14.0
2624
hooks:
2725
- id: blacken-docs
28-
additional_dependencies: [black==23.1.0]
26+
additional_dependencies: [black==23.3.0]
2927

30-
- repo: https://github.com/codespell-project/codespell
31-
rev: v2.2.2
28+
- repo: https://github.com/pycqa/isort
29+
rev: 5.12.0
3230
hooks:
33-
- id: codespell
34-
args: ["--ignore-words=ignore_words.txt"]
31+
- id: isort
3532

3633
- repo: https://github.com/PyCQA/flake8
3734
rev: 6.0.0
3835
hooks:
3936
- id: flake8
40-
args:
41-
- --max-line-length=120
4237

43-
- repo: https://github.com/pycqa/isort
44-
rev: 5.12.0
38+
- repo: https://github.com/codespell-project/codespell
39+
rev: v2.2.5
4540
hooks:
46-
- id: isort
47-
args:
48-
- --line-length=120
41+
- id: codespell
42+
args: ["--ignore-words", "doc/styles/Vocab/ANSYS/accept.txt"]
4943

5044
- repo: https://github.com/pre-commit/pre-commit-hooks
5145
rev: v4.4.0
@@ -55,6 +49,6 @@ repos:
5549

5650
# this validates our github workflow files
5751
- repo: https://github.com/python-jsonschema/check-jsonschema
58-
rev: 0.21.0
52+
rev: 0.23.2
5953
hooks:
60-
- id: check-github-workflows
54+
- id: check-github-workflows

AUTHORS.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Authors
2+
3+
## Contributors
4+
5+
* [Zhanqun Zhang](https://github.com/zhangzhanqun)
6+
* [Wenhui Yu](https://github.com/wenhuiuy)
7+
* [Srikanth Adya](https://github.com/kanthadya)

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 ANSYS, Inc. All rights reserved.
3+
Copyright (c) 2023 ANSYS, Inc. All rights reserved.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

doc/create_documentation.bat

Lines changed: 0 additions & 3 deletions
This file was deleted.

doc/source/API/index.rst

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)