Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: command issues #374

Open
wants to merge 74 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
cdbc98b
fix: save latest changes
clatapie Dec 4, 2024
c34cf9c
fix: double args
clatapie Dec 6, 2024
ec99972
fix: latest changes
clatapie Dec 10, 2024
2e8c57b
fix: issues related to duplicated args
clatapie Dec 11, 2024
c55ef28
fix: revert change in ``py_term``
clatapie Dec 11, 2024
09d0ebe
fix: removing extra comas at the end of the command
clatapie Dec 11, 2024
371003a
fix: removing extra argument instead of extra coma
clatapie Dec 12, 2024
fbc0c7a
feat: adding link in missing/ additional argument description
clatapie Dec 12, 2024
29b0d30
Merge branch 'main' into fix/command_issues
clatapie Dec 12, 2024
abc9a1d
fix: pre-commit
clatapie Dec 12, 2024
1bbfe9e
Merge branch 'fix/command_issues' of https://github.com/ansys/pyconve…
clatapie Dec 12, 2024
28787e8
feat: add ``project_name`` configuration
clatapie Dec 12, 2024
5ece50c
fix: missing ``mkdir`` command raised by @germa89
clatapie Dec 13, 2024
8c0f447
feat: using alphabetical order for doc
clatapie Dec 17, 2024
d876306
fix: warnings ``invalid escape sequence``
clatapie Dec 17, 2024
75b3373
docs: adding docstrings for general ``ast_tree.py`` methods
clatapie Dec 18, 2024
2778bc0
fix: most of indentation errors (except for ``fname``)
clatapie Dec 20, 2024
d157471
fix: ``fname`` indentation
clatapie Dec 23, 2024
d94f8b6
Merge branch 'main' into fix/command_issues
clatapie Dec 23, 2024
1534a61
fix: identation issues
clatapie Dec 23, 2024
d97c2bb
Merge branch 'fix/command_issues' of https://github.com/ansys/pyconve…
clatapie Dec 23, 2024
7590cc9
fix: pre-commit
clatapie Dec 23, 2024
ccc90ab
fix: enabling bold emphasis
clatapie Dec 23, 2024
21f9148
feat: adding latest enhancements and fixes (italic, bold, indentation…
clatapie Jan 3, 2025
84a4fa8
fix: removing undefined references
clatapie Jan 6, 2025
9c067f2
fix: remaining link issues
clatapie Jan 6, 2025
a4aedb4
fix: warnings
clatapie Jan 6, 2025
6810c5a
fix: ``type_`` or ``class_`` in docstr
clatapie Jan 7, 2025
6bbfcee
fix: pre-commit
clatapie Jan 7, 2025
8aa5dbd
fix: remaining line length
clatapie Jan 7, 2025
2f6ec26
fix: pre-commit
clatapie Jan 7, 2025
bf84453
fix: ``replace_asterisks``
clatapie Jan 7, 2025
b5032dc
fix: removing prints and sphinx warnings
clatapie Jan 7, 2025
3553425
fix: cleaning code and adding new line for ``ProgramListing.to_rst()``
clatapie Jan 8, 2025
c84ddc7
Merge branch 'main' into fix/command_issues
clatapie Jan 8, 2025
6d20cba
fix: error in ``py_docstring``
clatapie Jan 8, 2025
7fe3cf6
Merge branch 'fix/command_issues' of https://github.com/ansys/pyconve…
clatapie Jan 8, 2025
71584a4
fix: pre-commit
clatapie Jan 8, 2025
337627a
fix: removing italic feature and fixing ``. . .`` characters
clatapie Jan 8, 2025
13491f4
fix: pre-commit
clatapie Jan 8, 2025
291507b
fix: ``.. code::`` elements (indentations and new lines) + removing u…
clatapie Jan 8, 2025
2a6ca77
fix: references
clatapie Jan 8, 2025
81b5e54
fix: ``py_docstring``
clatapie Jan 8, 2025
01a1098
fix: ``ignored_commands`` >``specific_command_mapping`` and ``…`` car…
clatapie Jan 8, 2025
7a754de
fix: fixing issues from Codacy review
clatapie Jan 8, 2025
7c8d791
feat: adding warning info at the top of a command
clatapie Jan 9, 2025
26803a9
fix: removing print
clatapie Jan 9, 2025
7a9fd54
fix: updating ``config.yaml``
clatapie Jan 9, 2025
ead0117
fix: bullet list warning + ``GuiMenuItem`` rendering
clatapie Jan 10, 2025
109cbf8
fix: indent issues due to ``,``
clatapie Jan 10, 2025
1ab7d0b
fix: pre-commit
clatapie Jan 10, 2025
a9051e1
fix: function rendering with ``Replaceable``
clatapie Jan 10, 2025
a562d16
feat: using ``msg`` and ``commands`` elements in ``config.yaml`` ``wa…
clatapie Jan 10, 2025
9ef9831
fix: accept ``*DIM,`` and ``*DIM.`` for adding ``\``
clatapie Jan 10, 2025
84c9b06
fix: remaining line length issue
clatapie Jan 13, 2025
c649d18
Merge branch 'fix/command_issues' of https://github.com/ansys/pyconve…
clatapie Jan 13, 2025
afda566
fix: minor changes
clatapie Jan 13, 2025
e2733c2
feat: using ``uv`` in ``make_package`_doc`
clatapie Jan 14, 2025
ce30017
fix: remaining indentation issues
clatapie Jan 15, 2025
b404bd4
fix: example titles
clatapie Jan 15, 2025
cf2008b
fix: arguments with no types + accepting multiple line definition in …
clatapie Jan 16, 2025
d8a8fde
fix: test
clatapie Jan 16, 2025
88fc639
fix: update ``secmodif``
clatapie Jan 17, 2025
5c39b0c
fix: adding logs in the code source writter
clatapie Jan 17, 2025
f07681f
fix: showing logger.info
clatapie Jan 17, 2025
f965bbf
fix: ``warnings`` as an option
clatapie Jan 17, 2025
9dcc6a6
fix: error related to Union types in CustomFunctions
clatapie Jan 17, 2025
7fd2887
fix: union and multiple lines in CustomFunctioins + fix links in ``py…
clatapie Jan 20, 2025
7b46703
fix: ``py_term`` and args with ``blank``
clatapie Jan 20, 2025
39e7d18
feat: using rst ``:file:`` feature
clatapie Jan 20, 2025
ef112f8
fix: ``warning`` command needs an extra line
clatapie Jan 21, 2025
ae1c034
fix: ``:file:`` role
clatapie Jan 22, 2025
f88d87a
fix: arg names in ``to_py_arg_name``
clatapie Jan 22, 2025
07b9cd7
maint: cleaning code using ``regex_pattern.py``
clatapie Jan 23, 2025
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,4 @@ cython_debug/
helper/
package/
_autosummary/
args.txt
6 changes: 5 additions & 1 deletion _package/doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@
# "grpc": ("https://grpc.github.io/grpc/python/", None),
}

suppress_warnings = [
"misc.highlighting_failure", # Suppress highlighting failures
]

# Copy button customization ---------------------------------------------------
# exclude traditional Python prompts from the copied code
copybutton_prompt_text = r">>> ?|\.\.\. "
Expand All @@ -77,7 +81,7 @@
numpydoc_validation_checks = {
"GL06", # Found unknown section
"GL07", # Sections are in the wrong order.
"GL08", # The object does not have a docstring
# "GL08", # The object does not have a docstring
"GL09", # Deprecation warning should precede extended summary
"GL10", # reST directives {directives} must be followed by two colons
"SS01", # No summary found
Expand Down
54 changes: 42 additions & 12 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
project_name: PyConverter-GeneratedCommands # Name of the project

library_name_structured: # Future name of the library
- pyconverter
- generatedcommands

subfolder:
subfolders:
- subfolder
- subsubfolder

Expand All @@ -18,20 +20,48 @@ specific_command_mapping:
"/INQUIRE": inquire

ignored_commands:
- "*VWR"
- "*MWR"
- "C***"
- "*CFO"
- "*CRE"
- "*END"
- "/EOF"
# Non-available commands - PyMAPDL user guide
- "*ASK"
- "*IF"
- "*VEDIT"
- "/ERASE"
- "ERASE"
- "HELP"
- "HELPDISP"
- "NOERASE"
- "*CYCLE"
- "*DO"
- "*DOWHILE"
- "*ELSE"
- "CMAT"
- "*REP"
- "*ELSEIF"
- "*ENDDO"
- "*ENDIF"
- "*GO"
- "*IF"
- "*REPEAT"
- "*RETURN"
- "LSRE"
- "*DEL"
- "/BATCH"
- "/EOF"
- "UNDO"
# Additional commands to ignore
- "C***"
- "/DIRECTORY" # Defined in ``mapdl_core.py``
- "*XPL" # Defined in ``mapdl_grpc.py``

warnings:
- msg: 'This command must be run using :func:`non_interactive <ansys.mapdl.core.Mapdl.non_interactive>

Please visit `Unsupported Interactive Commands <https://mapdl.docs.pyansys.com/version/stable/user_guide/mapdl.html#unsupported-interactive-commands>`_

for further information.'
commands:
- "*CREATE"
- "CFOPEN"
- "CFCLOSE"
- "*VWRITE"
- "*MWRITE"
- "LSWRITE"
- "LSREAD"


specific_classes:
Expand Down
4 changes: 2 additions & 2 deletions make_package_doc.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ function Green

deactivate
cd .\package\
python -m venv .venv
uv venv .venv --seed
.\.venv\Scripts\activate
Write-Output "A new virtual environment has been created within the package folder." | Green
pip install -e .[doc]
uv pip install -e .[doc]
Write-Output "The package has successfully been installed in the virtual environment." | Green
Write-Output "The documentation is about to be built." | Green
.\doc\make.bat html
Expand Down
2 changes: 1 addition & 1 deletion src/pyconverter/xml2py/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2024 ANSYS, Inc. and/or its affiliates.
# Copyright (C) 2024 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
Expand Down
Loading
Loading