Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

Commit fce58f0

Browse files
authored
Small changes ahead release (#16)
* Updating precommit * Reorganizing docs * fixing ci
1 parent 168bfd5 commit fce58f0

File tree

7 files changed

+67
-27
lines changed

7 files changed

+67
-27
lines changed

.github/workflows/ci_cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
options: "-u=0:0 --entrypoint /bin/bash"
4040
credentials:
4141
username: ${{ secrets.GH_USERNAME }}
42-
password: ${{ secrets.MY_TOKEN }}
42+
password: ${{ secrets.GITHUB_TOKEN }}
4343
env:
4444
ON_LOCAL: true
4545
ON_UBUNTU: true

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
repos:
22
- repo: https://github.com/psf/black
3-
rev: 23.1.0 # IF VERSION CHANGES --> MODIFY "blacken-docs" MANUALLY AS WELL!!
3+
rev: 23.3.0 # IF VERSION CHANGES --> MODIFY "blacken-docs" MANUALLY AS WELL!!
44
hooks:
55
- id: black
66

77
- repo: https://github.com/adamchainz/blacken-docs
88
rev: 1.13.0
99
hooks:
1010
- id: blacken-docs
11-
additional_dependencies: [black==23.1.0]
11+
additional_dependencies: [black==23.3.0]
1212

1313
- repo: https://github.com/PyCQA/flake8
1414
rev: 6.0.0
1515
hooks:
1616
- id: flake8
1717
- repo: https://github.com/codespell-project/codespell
18-
rev: v2.2.2
18+
rev: v2.2.4
1919
hooks:
2020
- id: codespell
2121
args: ["--toml", "pyproject.toml"]
@@ -34,7 +34,7 @@ repos:
3434

3535
# this validates our github workflow files
3636
- repo: https://github.com/python-jsonschema/check-jsonschema
37-
rev: 0.21.0
37+
rev: 0.22.0
3838
hooks:
3939
- id: check-github-workflows
4040

README.rst

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
1-
Pytools path
2-
============
1+
ansys-tools-path
2+
================
3+
34
|pyansys| |python| |pypi| |GH-CI| |codecov| |MIT| |black|
45

56
.. |pyansys| image:: 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
67
:target: https://docs.pyansys.com/
78
:alt: PyAnsys
89

9-
.. |python| image:: https://img.shields.io/pypi/pyversions/pytools-path?logo=pypi
10-
:target: https://pypi.org/project/pytools-path/
10+
.. |python| image:: https://img.shields.io/pypi/pyversions/ansys-tools-path?logo=pypi
11+
:target: https://pypi.org/project/ansys-tools-path/
1112
:alt: Python
1213

13-
.. |pypi| image:: https://img.shields.io/pypi/v/pytools-path.svg?logo=python&logoColor=white
14-
:target: https://pypi.org/project/pytools-path
14+
.. |pypi| image:: https://img.shields.io/pypi/v/ansys-tools-path.svg?logo=python&logoColor=white
15+
:target: https://pypi.org/project/ansys-tools-path
1516
:alt: PyPI
1617

17-
.. |codecov| image:: https://codecov.io/gh/pyansys/pytools-path/branch/main/graph/badge.svg
18-
:target: https://codecov.io/gh/pyansys/pytools-path
18+
.. |codecov| image:: https://codecov.io/gh/pyansys/ansys-tools-path/branch/main/graph/badge.svg
19+
:target: https://codecov.io/gh/pyansys/ansys-tools-path
1920
:alt: Codecov
2021

21-
.. |GH-CI| image:: https://github.com/pyansys/pytools-path/actions/workflows/ci_cd.yml/badge.svg
22-
:target: https://github.com/pyansys/pytools-path/actions/workflows/ci_cd.yml
22+
.. |GH-CI| image:: https://github.com/pyansys/ansys-tools-path/actions/workflows/ci_cd.yml/badge.svg
23+
:target: https://github.com/pyansys/ansys-tools-path/actions/workflows/ci_cd.yml
2324
:alt: GH-CI
2425

2526
.. |MIT| image:: https://img.shields.io/badge/License-MIT-yellow.svg
@@ -33,6 +34,7 @@ Pytools path
3334

3435
Library to locate Ansys products in a local machine.
3536

37+
.. contribute_start
3638
3739
How to install
3840
--------------
@@ -42,7 +44,9 @@ At least two installation modes are provided: user and developer.
4244
For users
4345
^^^^^^^^^
4446

45-
In order to install Pytools path, make sure you
47+
.. howtoinstallusers_start
48+
49+
In order to install ``ansys-tools-path``, make sure you
4650
have the latest version of `pip`_. To do so, run:
4751

4852
.. code:: bash
@@ -55,10 +59,12 @@ Then, you can simply execute:
5559
5660
python -m pip install ansys-tools-path
5761
62+
.. howtoinstallusers_end
63+
5864
For developers
5965
^^^^^^^^^^^^^^
6066

61-
Installing Pytools path in developer mode allows
67+
Installing ``ansys-tools-path`` in developer mode allows
6268
you to modify the source and enhance it.
6369

6470
Before contributing to the project, please refer to the `PyAnsys Developer's guide`_. You will
@@ -97,13 +103,11 @@ need to follow these steps:
97103
98104
#. Install the project in editable mode:
99105

100-
.. code:: bash
106+
.. code:: bash
101107
102108
python -m pip install --editable ansys-tools-path
103109
104110
105-
.. howtouse
106-
107111
How to testing
108112
--------------
109113

@@ -157,5 +161,4 @@ the building requirements and then executing the build module:
157161
.. _PyAnsys Developer's guide: https://dev.docs.pyansys.com/
158162
.. _pytest: https://docs.pytest.org/en/stable/
159163
.. _Sphinx: https://www.sphinx-doc.org/en/master/
160-
.. _tox: https://tox.wiki/
161-
.. _api:
164+
.. _tox: https://tox.wiki/

doc/source/conf.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,22 @@
6868
}
6969

7070

71+
# List of patterns, relative to source directory, that match files and
72+
# directories to ignore when looking for source files.
73+
# This pattern also affects html_static_path and html_extra_path.
74+
exclude_patterns = [
75+
"_build",
76+
"Thumbs.db",
77+
".DS_Store",
78+
"links.rst",
79+
]
80+
81+
# make rst_epilog a variable, so you can add other epilog parts to it
82+
rst_epilog = ""
83+
# Read link all targets from file
84+
with open("links.rst") as f:
85+
rst_epilog += f.read()
86+
7187
# static path
7288
html_static_path = ["_static"]
7389

doc/source/contribute.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
Contributing
3+
============
4+
5+
.. include:: ../../README.rst
6+
:start-after: .. contribute_start

doc/source/index.rst

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,19 @@
99
:maxdepth: 3
1010

1111
API
12+
contribute
1213

1314

14-
.. include:: ../../README.rst
15-
:end-before: .. howtouse
15+
=================================================
16+
ansys-tools-path: A tool to locate ansys products
17+
=================================================
18+
19+
How to install
20+
==============
1621

22+
.. include:: ../../README.rst
23+
:start-after: .. howtoinstallusers_start
24+
:end-before: .. howtoinstallusers_end
1725

1826

1927
How to use
@@ -31,6 +39,3 @@ to locate the path of the latest ANSYS installation available:
3139
>>> find_ansys()
3240
'C:/Program Files/ANSYS Inc/v211/ANSYS/bin/winx64/ansys211.exe', 21.1
3341
34-
35-
.. include:: ../../README.rst
36-
:start-after: .. howtouse

doc/source/links.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.. LINKS AND REFERENCES
2+
.. _black: https://github.com/psf/black
3+
.. _flake8: https://flake8.pycqa.org/en/latest/
4+
.. _isort: https://github.com/PyCQA/isort
5+
.. _pip: https://pypi.org/project/pip/
6+
.. _pre-commit: https://pre-commit.com/
7+
.. _PyAnsys Developer's guide: https://dev.docs.pyansys.com/
8+
.. _pytest: https://docs.pytest.org/en/stable/
9+
.. _Sphinx: https://www.sphinx-doc.org/en/master/
10+
.. _tox: https://tox.wiki/

0 commit comments

Comments
 (0)