Skip to content

Commit

Permalink
Merge pull request #50 from ansys-internal/refact/update_repo
Browse files Browse the repository at this point in the history
Clean up to remove pyaedt references / cfg / ...
  • Loading branch information
SMoraisAnsys authored Nov 7, 2023
2 parents 8c58262 + a8a3aaf commit f967c3a
Show file tree
Hide file tree
Showing 111 changed files with 518 additions and 11,011 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[flake8]
exclude = venv, __init__.py, doc/_build, doc/source/examples, pyaedt/third_party/**/*
exclude = venv, __init__.py, doc/_build, doc/source/examples
select = W191, W291, W293, W391, E115, E117, E122, E124, E125, E225, E231, E301, E303, E501, F401, F403
count = True
max-complexity = 10
Expand Down
8 changes: 1 addition & 7 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
.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
.github/* @svandenb-dev @ring630 @SMoraisAnsys
2 changes: 1 addition & 1 deletion .github/workflows/legacy_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
cache: 'pip'
python-version: '3.10'

- name: Install pyedb with tests dependencies
- name: Install pyedb
run: |
pip install .
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,9 @@ model.index.bak
model.index.tmp
model.index\+

# Pytest coverage
.cov

# local environment settings used by e.g. Visual Studio Code
/.env
/doc/source/local_config.json
56 changes: 24 additions & 32 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,51 +1,50 @@
files: |
(?x)(
^pyaedt/|
_unittest/|
requirements/requirements_docs.txt|
requirements/requirements_test.txt
)
exclude: |
(?x)(
^pyaedt/dlls/|
^pyaedt/rpc/|
^pyaedt/sbrplus/matlab/|
^pyaedt/third_party/|
pyaedt/conftest.py|
_unittest/example_models/
)
fail_fast: True

repos:

- repo: https://github.com/psf/black
rev: 23.9.1 # IF VERSION CHANGES --> MODIFY "blacken-docs" MANUALLY AS WELL!!
rev: 23.10.1 # IF VERSION CHANGES --> MODIFY "blacken-docs" MANUALLY AS WELL!!
hooks:
- id: black
args:
- --line-length=120
- --line-length=88

- repo: https://github.com/adamchainz/blacken-docs
rev: 1.16.0
hooks:
- id: blacken-docs
additional_dependencies: [black==23.10.1]

- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
args: ['--force-single-line-imports', '--profile', 'black']

- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
args:
- --max-line-length=120
args: [
--max-line-length, "88",
ansys, codegen, doc, examples, tests
]

- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
additional_dependencies:
- tomli
args: ["--toml", "pyproject.toml"]
additional_dependencies: [tomli]

- repo: https://github.com/PyCQA/docformatter
rev: v1.7.5
hooks:
- id: docformatter
stages: [manual]
args: ["--config", "pyproject.toml"]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: requirements-txt-fixer
- id: debug-statements
Expand All @@ -57,13 +56,6 @@ repos:
hooks:
- id: check-github-workflows

- repo: https://github.com/asottile/blacken-docs
rev: 1.16.0
hooks:
- id: blacken-docs
additional_dependencies: [black==23.9.1]


# - repo: https://github.com/numpy/numpydoc
# rev: v1.6.0
# hooks:
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 ANSYS, Inc. All rights reserved.
Copyright (c) 2023 ANSYS, Inc. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Simple makefile to simplify repetitive build env management tasks under posix

CODESPELL_DIRS ?= ./pyaedt
CODESPELL_SKIP ?= "*.pyc,*.aedt,*.xml,*.txt,*.gif,*.png,*.jpg,*.js,*.html,*.doctree,*.ttf,*.woff,*.woff2,*.eot,*.mp4,*.inv,*.pickle,*.ipynb,flycheck*,./.git/*,./.hypothesis/*,*.yml,./docs/build/*,./docs/images/*,./dist/*,*~,.hypothesis*,./pyaedt/third_party,./docs/source/examples/*,*cover,*.dat,*.mac,\#*,PKG-INFO,*.mypy_cache/*,*.xml,*.aedt,*.svg"
CODESPELL_IGNORE ?= "ignore_words.txt"
CODESPELL_DIRS ?= ./src
CODESPELL_SKIP ?= "*.pyc,*.aedt,*.xml,*.txt,*.gif,*.png,*.jpg,*.js,*.html,*.doctree,*.ttf,*.woff,*.woff2,*.eot,*.mp4,*.inv,*.pickle,*.ipynb,flycheck*,./.git/*,./.hypothesis/*,*.yml,./docs/build/*,./docs/images/*,./dist/*,*~,.hypothesis*,./docs/source/examples/*,*cover,*.dat,*.mac,\#*,PKG-INFO,*.mypy_cache/*,*.xml,*.aedt,*.svg"
CODESPELL_IGNORE ?= "doc/styles/Vocab/ANSYS/accept.txt"

all: doctest flake8

Expand Down
20 changes: 7 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,8 @@
</p>

[![PyAnsys](https://img.shields.io/badge/Py-Ansys-ffc107.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAABDklEQVQ4jWNgoDfg5mD8vE7q/3bpVyskbW0sMRUwofHD7Dh5OBkZGBgW7/3W2tZpa2tLQEOyOzeEsfumlK2tbVpaGj4N6jIs1lpsDAwMJ278sveMY2BgCA0NFRISwqkhyQ1q/Nyd3zg4OBgYGNjZ2ePi4rB5loGBhZnhxTLJ/9ulv26Q4uVk1NXV/f///////69du4Zdg78lx//t0v+3S88rFISInD59GqIH2esIJ8G9O2/XVwhjzpw5EAam1xkkBJn/bJX+v1365hxxuCAfH9+3b9/+////48cPuNehNsS7cDEzMTAwMMzb+Q2u4dOnT2vWrMHu9ZtzxP9vl/69RVpCkBlZ3N7enoDXBwEAAA+YYitOilMVAAAAAElFTkSuQmCC)](https://docs.pyansys.com/)
[![pypi](https://img.shields.io/pypi/v/pyaedt.svg?logo=python&logoColor=white)](https://pypi.org/project/pyaedt/)
[![PyPIact](https://static.pepy.tech/badge/pyaedt/month)](https://www.pepy.tech/projects/pyaedt)
[![PythonVersion](https://img.shields.io/badge/python-3.7+-blue.svg)](https://www.python.org/downloads/)
[![GH-CI](https://github.com/ansys/pyaedt/actions/workflows/unit_tests.yml/badge.svg)](https://github.com/ansys/pyaedt/actions/workflows/unit_tests.yml)
[![codecov](https://codecov.io/gh/ansys/pyaedt/branch/main/graph/badge.svg)](https://codecov.io/gh/ansys/pyaedt)
[![MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)[![black](https://img.shields.io/badge/code%20style-black-000000.svg?style=flat)](https://github.com/psf/black)[![Anaconda](https://anaconda.org/conda-forge/pyaedt/badges/version.svg)](https://anaconda.org/conda-forge/pyaedt)
[![pre-commit](https://results.pre-commit.ci/badge/github/ansys/pyaedt/main.svg)](https://results.pre-commit.ci/latest/github/ansys/pyaedt/main)
[![MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)[!

## What is PyEDB ?

Expand Down Expand Up @@ -67,10 +62,9 @@ and most efficient way to handle large and complex layout.

AEDB can also been parsed with and Electromagnetic simulator command line like HFSS or SIwave in bacth.
Therefore completely non graphical flows can be deployed from layout translation up to simulatiom results.
AEDB can also be imported in ANSYS AEDT with PyAEDT for example to display the project, combining 3D design
or performing simulation post-processing. AEDB also supports 3D component models.
AEDB can also be imported in ANSYS AEDT with PyAEDT for example to display the project, combining 3D design or performing simulation post-processing. AEDB also supports 3D component models.

`PyEDB` is licensed under the [MIT License](https://github.com/ansys/pyaedt/blob/main/LICENSE)
`PyEDB` is licensed under the [MIT License](https://github.com/ansys/pyedb/blob/main/LICENSE)

PyEDB includes functionality for interacting with the following AEDT tools and Ansys products:

Expand All @@ -81,8 +75,8 @@ PyEDB includes functionality for interacting with the following AEDT tools and A

## Documentation and issues

Documentation for the latest stable release of PyAEDT is hosted at
[PyEDB documentation](https://aedt.docs.pyansys.com/version/stable/).
Documentation for the latest stable release of PyEDB is hosted at
[PyEDB documentation](https://aedb.docs.pyansys.com/version/stable/).

In the upper right corner of the documentation's title bar, there is an option
for switching from viewing the documentation for the latest stable release
Expand All @@ -97,9 +91,9 @@ providing syntax rules and commands for using the PyEDB API:
PyEDB API cheat sheet.


On the [PyEDB Issues](https://github.com/ansys-internal/pyansys-edb/issues) page, you can
On the [PyEDB Issues](https://github.com/ansys/pyansys-edb/issues) page, you can
create issues to report bugs and request new features. On the
[PyAEDT Discussions](https://github.com/ansys/pyaedt/discussions) page or the
[PyEDB Discussions](https://github.com/ansys/pyansys-edb/discussions) page or the
[Discussions](https://discuss.ansys.com/) page on the Ansys Developer portal,
you can post questions, share ideas, and get community feedback.

Expand Down
15 changes: 3 additions & 12 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,6 @@ coverage:
if_no_uploads: error
ignore:
- "examples" # ignore folders and all its contents
- "_unittest" # ignore folders and all its contents
- "_unittest_ironpython" # ignore folders and all its contents
- "legacy/third_party/**/*.py" # ignore folders and all its contents
- "legacy/rpc/**/*.py" # ignore folders and all its contents
- "legacy/generic/toolkit.py" # ignore folders and all its contents
- "legacy/doctest_fixtures/*.py" # ignore folders and all its contents
- "legacy/siwave.py" # ignore folders and all its contents
- "legacy/setup.py" # ignore folders and all its contents
- "legacy/setup-distutils.py" # ignore folders and all its contents
- "legacy/_setup_common.py" # ignore folders and all its contents
- "legacy/misc/*.py" # ignore folders and all its contents
- "legacy/sbrplus/hdm_utils.py" # ignore folder and all its contents
- "tests" # ignore folders and all its contents
- "src/pyedb/legacy/edb_core/siwave.py" # ignore folders and all its contents
- "src/pyedb/misc/*.py" # ignore folders and all its contents
66 changes: 33 additions & 33 deletions doc/styles/Vocab/ANSYS/accept.txt
Original file line number Diff line number Diff line change
@@ -1,86 +1,86 @@
ANSYS
Ansys
ansys
AEDB
2D Extractor
2D modeler
3D modeler
_static
AEDB
AEDT
airbox
airgap
(?i)Ansys
API
autosave
busbar
busbars
Bz
circuit
Circuit
[Cc]ircuit
codecov
[Cc]om
COM interface
[Cc]omponents
Conda
CPython
DesignXploration
docstring
Docstrings
docstrings
[Dd]ocstrings
doppler
EDB
EDT
efields
EMIT
getters
globals
HFSS 3D Layout
[Gg]gRPC
HFSS
Huray
Icepak
IronPython
[Ll]ayout
limitilines
matplotlib
Maxwell 2D
Maxwell 3D
Maxwell Circuit
Mechanical
[Mm]echanical
multiphysics
multiplot
namespaces
netlist
Nexxim
numpy
numpydoc
optimetrics
Optimetrics
[Oo]ptimetrics
padstack
padstacks
parametrics
polyline
PMs
[Pp]olyline
polylines
Polyline
Postprocessing
PMs
pwl
pyaedt
PyAEDT
PyPI
(?i)PyAnsys
[Pp]y[Pp][Ii]
Python
Python.NET
pyvista
Q2D Extractor
Q3D
Q3D Extractor
RC
reusability
RF
RMXprt
scipy
Siwave
setters
Siwave
Slurm
Spyder
Stackup 3D
stackups
stripline
subcircuit
[Tt]oolkits
Twin Builder
Uncomment
vias
_static
pwl
Conda
PyAnsys
codecov
mechanical
reusability
pypi
EDT
pyansys
Slurm
Python.NET
Toolkits
toolkits

vias
Loading

0 comments on commit f967c3a

Please sign in to comment.