Skip to content

Commit e0e2b30

Browse files
authored
MAINT: minor updates to pre-commit and logo correction (#491)
1 parent 1411b7e commit e0e2b30

File tree

21 files changed

+56
-54
lines changed

21 files changed

+56
-54
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ updates:
99
- "dependencies"
1010
ignore:
1111
- dependency-name: "grpcio"
12-
assignees:
12+
assignees:
1313
- "pyansys-ci-bot"
1414

1515
- package-ecosystem: "github-actions"
@@ -18,5 +18,5 @@ updates:
1818
interval: "daily"
1919
labels:
2020
- "maintenance"
21-
assignees:
21+
assignees:
2222
- "pyansys-ci-bot"

.github/workflows/ci_cd.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
matrix:
5555
os: [ubuntu-latest, windows-latest, macos-latest]
5656
python-version: ['3.8', '3.9', '3.10', '3.11']
57-
should-release:
57+
should-release:
5858
- ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags') }}
5959
exclude:
6060
- should-release: false
@@ -328,7 +328,7 @@ jobs:
328328
name: Fetch release artifacts
329329
needs: [testing-windows, testing-linux, docs]
330330
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
331-
runs-on:
331+
runs-on:
332332
group: ansys-internal
333333
labels: [self-hosted, Windows, signtool]
334334

@@ -337,7 +337,7 @@ jobs:
337337
run: |
338338
curl.exe -X GET -H "X-JFrog-Art-Api: ${{ secrets.ARTIFACTORY_KEY }}" ${{ secrets.ARTIFACTORY_URL }}/DockerWindows.zip --output windows-binaries.zip
339339
curl.exe -X GET -H "X-JFrog-Art-Api: ${{ secrets.ARTIFACTORY_KEY }}" ${{ secrets.ARTIFACTORY_URL }}/DockerLinux.zip --output linux-binaries.zip
340-
340+
341341
- name: Upload Windows binaries as workflow artifacts
342342
uses: actions/upload-artifact@v3
343343
with:

.github/workflows/label.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
# Label based on branch name
4141
- uses: actions-ecosystem/action-add-labels@v1
4242
if: |
43-
startsWith(github.event.pull_request.head.ref, 'doc') ||
43+
startsWith(github.event.pull_request.head.ref, 'doc') ||
4444
startsWith(github.event.pull_request.head.ref, 'docs')
4545
with:
4646
labels: documentation

.pre-commit-config.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
repos:
22

33
- repo: https://github.com/psf/black
4-
rev: 23.1.0 # IF VERSION CHANGES --> MODIFY "blacken-docs" MANUALLY AS WELL!!
4+
rev: 23.3.0 # IF VERSION CHANGES --> MODIFY "blacken-docs" MANUALLY AS WELL!!
55
hooks:
66
- id: black
77

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

1414
- repo: https://github.com/pycqa/isort
1515
rev: 5.12.0
@@ -40,6 +40,8 @@ repos:
4040
hooks:
4141
- id: check-merge-conflict
4242
- id: debug-statements
43+
- id: check-yaml
44+
- id: trailing-whitespace
4345

4446
# this validates our github workflow files
4547
- repo: https://github.com/python-jsonschema/check-jsonschema

README.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,10 @@ Installing PyGeometry in developer mode allows
179179
you to modify the source and enhance it.
180180

181181
.. note::
182-
182+
183183
Before contributing to the project, ensure that you are thoroughly familiar
184184
with the `PyAnsys Developer's Guide`_.
185-
185+
186186
To install PyGeometry in developer mode, perform these steps:
187187

188188
#. Clone the ``pygeometry`` repository:
@@ -222,7 +222,7 @@ To install PyGeometry in developer mode, perform these steps:
222222
#. Install the project in editable mode:
223223

224224
.. code:: bash
225-
225+
226226
# Install the minimum requirements
227227
python -m pip install -e .
228228
@@ -263,7 +263,7 @@ Testing
263263

264264
This project takes advantage of `tox`_. This tool automate common
265265
development tasks (similar to Makefile), but it is oriented towards Python
266-
development.
266+
development.
267267

268268
Using ``tox``
269269
^^^^^^^^^^^^^
@@ -279,7 +279,7 @@ The following environments commands are provided:
279279
- **tox -e py-coverage**: Checks for unit testing and code coverage.
280280
- **tox -e doc**: Checks for documentation building process.
281281

282-
.. admonition:: pyvista-pytest plugin
282+
.. admonition:: pyvista-pytest plugin
283283

284284
This plugin facilitates the comparison of the images produced in PyGeometry for testing the plots.
285285
If you are changing the images, use flag ``--reset_image_cache`` which is not recommended except
@@ -331,7 +331,7 @@ the building requirements and then executing the build module:
331331

332332
.. code:: bash
333333
334-
python -m pip install -U pip
334+
python -m pip install -U pip
335335
python -m build
336336
python -m twine check dist/*
337337

doc/make.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ goto end
3636
goto build-examples-py
3737

3838
:clean
39-
rmdir /s /q %BUILDDIR% > /NUL 2>&1
39+
rmdir /s /q %BUILDDIR% > /NUL 2>&1
4040
for /d /r %SOURCEDIR% %%d in (_autosummary) do @if exist "%%d" rmdir /s /q "%%d"
4141
goto end
4242

Loading

doc/source/contributing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Overall guidance on contributing to a PyAnsys library appears in the
66
in the *PyAnsys Developer's Guide*. Ensure that you are thoroughly familiar
77
with it and all `How-to <https://dev.docs.pyansys.com/how-to/index.html>`_ pages
88
before attempting to contribute to PyGeometry.
9-
9+
1010
The following contribution information is specific to PyGeometry.
1111

1212
Clone the repository

doc/source/examples/01_getting_started/04_modeling.mystnb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ More features of each of these objects will be shown in upcoming demos.
255255

256256
Finally, it is highly recommended once you finish interacting with your modeling
257257
service, you close the active server session. This will allow to free resources
258-
wherever the service is running on.
258+
wherever the service is running on.
259259

260260
In order to close the session, do as follows.
261261

doc/source/examples/02_sketching/dynamic_sketch_plane.mystnb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ from ansys.geometry.core.sketch import Sketch
4343

4444
## Define a sketch profile for the PCB
4545

46-
You can create, modify, and plot ``Sketch`` instances independent of supporting
46+
You can create, modify, and plot ``Sketch`` instances independent of supporting
4747
Geometry service instances.
4848

4949
Create a sketch outline of individual ``Segment`` and ``Arc`` objects with two
@@ -75,8 +75,8 @@ sketch.plot()
7575

7676
## Extrude multiple bodies with a single sketch
7777

78-
Establish a server connection and use the single sketch profile to extrude
79-
the board profile at multiple Z-offsets. A named selection is created from the
78+
Establish a server connection and use the single sketch profile to extrude
79+
the board profile at multiple Z-offsets. A named selection is created from the
8080
resulting list of layer bodies.
8181

8282
Note that translating the sketch plane prior to extrusion is more effective (10 server calls)

0 commit comments

Comments
 (0)