Skip to content

Commit

Permalink
init: code drop from pyaedt
Browse files Browse the repository at this point in the history
  • Loading branch information
SMoraisAnsys committed Oct 10, 2023
0 parents commit a0a7a1c
Show file tree
Hide file tree
Showing 347 changed files with 96,400 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[flake8]
exclude = venv, __init__.py, doc/_build, doc/source/examples, pyaedt/third_party/**/*
select = W191, W291, W293, W391, E115, E117, E122, E124, E125, E225, E231, E301, E303, E501, F401, F403
count = True
max-complexity = 10
max-line-length = 120
statistics = True
79 changes: 79 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto

###############################################################################
# Set default behavior for command prompt diff.
#
# This is need for earlier builds of msysgit that does not have it on by
# default for csharp files.
# Note: This is only used by command line
###############################################################################
#*.cs diff=csharp

###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just uncomment the entries below
###############################################################################
#*.sln merge=binary
#*.csproj merge=binary
#*.vbproj merge=binary
#*.vcxproj merge=binary
#*.vcproj merge=binary
#*.dbproj merge=binary
#*.fsproj merge=binary
#*.lsproj merge=binary
#*.wixproj merge=binary
#*.modelproj merge=binary
#*.sqlproj merge=binary
#*.wwaproj merge=binary

###############################################################################
# behavior for image files
#
# image files are treated as binary by default.
###############################################################################
*.jpg binary
*.png binary
*.gif binary

###############################################################################
# diff behavior for common document formats
#
# Convert binary document formats to text before diffing them. This feature
# is only available from the command line. Turn it on by uncommenting the
# entries below.
###############################################################################
#*.doc diff=astextplain
#*.DOC diff=astextplain
#*.docx diff=astextplain
#*.DOCX diff=astextplain
#*.dot diff=astextplain
#*.DOT diff=astextplain
#*.pdf diff=astextplain
#*.PDF diff=astextplain
#*.rtf diff=astextplain
#*.RTF diff=astextplain

###############################################################################
# behavior for Ansys files
#
# Ansys files are treated as binary by default.
###############################################################################
*.aedt binary
*.aedtz binary
edb.def binary
*.a3dcomp binary
*.emn binary
*.emp binary
*.acf text eol=lf
*.dat text eol=lf
*.stp binary
*.step binary
7 changes: 7 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.github/* @MaxJPRey @maxcapodi78 @Samuelopez-ansys

/_unittest/test_26_emit.py @jsalant22 @myoung301
/pyaedt/emit.py @jsalant22 @myoung301
/pyaedt/emit_core/ @jsalant22 @myoung301
/pyaedt/modeler/circuits/PrimitivesEmit.py @jsalant22 @myoung301
/examples/07-EMIT/ @jsalant22 @myoung301
78 changes: 78 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: 🐞 Bug, problem, error
description: Fill a bug report here
title: "Bug located in ..."
labels: ["bug"]
assignees: [""]

body:

- type: markdown
attributes:
value: '# 🐞 **Problem**'

- type: checkboxes
id: new-bug
attributes:
label: Before submitting the issue
description: Please, make sure the following conditions are met
options:
- label: I have searched among the existing issues
required: true
- label: I am using a Python virtual environment
required: true

- type: textarea
id: bug-description
attributes:
label: Description of the bug
placeholder: Describe what bug you encountered and what should have happened
validations:
required: true

- type: textarea
id: steps-to-reproduce
attributes:
label: Steps To Reproduce
placeholder: Please write the steps in a list form
validations:
required: true

- type: markdown
attributes:
value: '# 🖥️ **System Information**'

- type: dropdown
id: os-name
attributes:
label: Which Operating System are you using?
multiple: false
options:
- 'Windows'
- 'MacOS'
- 'Linux'
validations:
required: true

- type: dropdown
id: python-version
attributes:
label: Which Python version are you using?
description: Run `python --version` to verify your Python version
multiple: false
options:
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- 'IronPython'
validations:
required: true

- type: textarea
id: installed-packages
attributes:
label: Installed packages
description: Run `python -m pip freeze` to list installed packages
placeholder: Paste the output of `python -m pip freeze` here
validations:
required: true
43 changes: 43 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: 💡 New feature
description: Enhancements to the code
title: "Add ..."
labels: ["enhancement"]
assignees: [""]

body:

- type: markdown
attributes:
value: '# 📝 **New Feature**'

- type: textarea
id: feature-description
attributes:
label: Description of the feature
placeholder: Describe what feature you devised and why it is useful for the project
validations:
required: true

- type: markdown
attributes:
value: '# 💡 **Implementation**'

- type: textarea
id: implementation-description
attributes:
label: Steps for implementing the feature
placeholder: Describe how this new feature can be implemented
validations:
required: false

- type: markdown
attributes:
value: '# 🔗 **References**'

- type: textarea
id: references
attributes:
label: Useful links and references
placeholder: A list of links and references to help when implementing the feature
validations:
required: false
43 changes: 43 additions & 0 deletions .github/ISSUE_TEMPLATE/syntax.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: 💡 Improve API and code syntax
description: Enhance the API design
title: "Improve ..."
labels: ["enhancement"]
assignees: [""]

body:

- type: markdown
attributes:
value: '# 📝 **API enhancements**'

- type: textarea
id: modification-description
attributes:
label: Description of the current limitations
placeholder: Explain what are the limitations of the current API or why its usage is not intuitive.
validations:
required: true

- type: markdown
attributes:
value: '# 💡 **Implementation**'

- type: textarea
id: implementation-description
attributes:
label: Code sample expected
placeholder: Provide a code example that fills the gap and meets the expectations.
validations:
required: false

- type: markdown
attributes:
value: '# 🔗 **References**'

- type: textarea
id: references
attributes:
label: Useful links and references
placeholder: A list of links and references to help when implementing the feature
validations:
required: false
29 changes: 29 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: 2
updates:
- package-ecosystem: "pip" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
reviewers:
- "MaxJPRey"
assignees:
- "pyansys-ci-bot"
labels:
- "maintenance"
- "dependencies"
commit-message:
prefix: "MAINT"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
reviewers:
- "MaxJPRey"
assignees:
- "pyansys-ci-bot"
labels:
- "maintenance"
- "dependencies"
commit-message:
prefix: "MAINT"
15 changes: 15 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
documentation:
- doc/source/**/*
- README.md
- README_CN.md
maintenance:
- .github/**/*
- .flake8
- setup.py
- setup-distutils.py
dependencies:
- requirements/**/*
testing:
- _unittest/conftest.py
- _unittest_ironpython/run_unittests.py
- _unittest_ironpython/run_unittests_batchmode.cmd
31 changes: 31 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
- name: bug
description: Something isn't working
color: d42a34

- name: dependencies
description: Related with project dependencies
color: ffc0cb

- name: documentation
description: Improvements or additions to documentation
color: 0677ba

- name: enhancement
description: New features or code improvements
color: FFD827

- name: good first issue
description: Easy to solve for newcomers
color: 62ca50

- name: maintenance
description: Package and maintenance related
color: f78c37

- name: release
description: Anything related to an incoming release
color: ffffff

- name: testing
description: Anything related to testing
color: 5802B8
Loading

0 comments on commit a0a7a1c

Please sign in to comment.