Skip to content

Commit c0540ed

Browse files
authored
maint: badges, version and various improvements (#33)
1 parent d705b3a commit c0540ed

File tree

3 files changed

+34
-47
lines changed

3 files changed

+34
-47
lines changed

.github/workflows/ci_cd.yml

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,7 @@ jobs:
2727
runs-on: ubuntu-latest
2828
steps:
2929
- name: Check branch name
30-
uses: ansys/actions/branch-name-style@main
31-
32-
style:
33-
name: Code style
34-
runs-on: ubuntu-latest
35-
steps:
36-
- name: PyAnsys code style checks
37-
uses: ansys/actions/code-style@v6
38-
with:
39-
python-version: ${{ env.MAIN_PYTHON_VERSION }}
30+
uses: ansys/actions/branch-name-style@v6
4031

4132
docs-style:
4233
name: Documentation Style Check
@@ -57,14 +48,10 @@ jobs:
5748

5849
- name: "Run Ansys documentation building action"
5950
uses: ansys/actions/doc-build@v6
60-
with:
61-
TODO: remove once public
62-
check-links: false
6351

6452
smoke-tests:
6553
name: Build and Smoke tests
6654
runs-on: ${{ matrix.os }}
67-
needs: [style]
6855
strategy:
6956
fail-fast: false
7057
matrix:
@@ -87,7 +74,6 @@ jobs:
8774
name: Run Unit Tests
8875
needs: [ smoke-tests ]
8976
runs-on: ubuntu-latest
90-
9177
steps:
9278
- name: Restore images cache
9379
uses: actions/cache@v4
@@ -142,12 +128,12 @@ jobs:
142128
needs: [package]
143129
runs-on: ubuntu-latest
144130
steps:
145-
#- name: Release to the public PyPI repository
146-
#uses: ansys/actions/release-pypi-public@v5
147-
#with:
148-
# library-name: ${{ env.PACKAGE_NAME }}
149-
# twine-username: "__token__"
150-
# twine-token: ${{ secrets.PYPI_TOKEN }}
131+
- name: Release to the public PyPI repository
132+
uses: ansys/actions/release-pypi-public@v6
133+
with:
134+
library-name: ${{ env.PACKAGE_NAME }}
135+
twine-username: "__token__"
136+
twine-token: ${{ secrets.PYPI_TOKEN }}
151137

152138
- name: Release to GitHub
153139
uses: ansys/actions/release-github@v6

README.rst

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,31 @@
11
Visualization Interface Tool
22
============================
3-
|pyansys| |MIT|
3+
|pyansys| |python| |pypi| |MIT| |GH-CI| |pre-commit|
44

55
.. |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
66
:target: https://docs.pyansys.com/
77
:alt: PyAnsys
88

9+
.. |python| image:: https://img.shields.io/pypi/pyversions/ansys-tools-visualization-interface?logo=pypi
10+
:target: https://pypi.org/project/ansys-tools-visualization-interface/
11+
:alt: Python
12+
13+
.. |pypi| image:: https://img.shields.io/pypi/v/ansys-tools-visualization-interface.svg?logo=python&logoColor=white
14+
:target: https://pypi.org/project/ansys-tools-visualization-interface
15+
:alt: PyPI
16+
917
.. |MIT| image:: https://img.shields.io/badge/License-MIT-yellow.svg
1018
:target: https://opensource.org/licenses/MIT
1119
:alt: MIT
1220

21+
.. |GH-CI| image:: https://github.com/ansys/ansys-tools-visualization-interface/actions/workflows/ci_cd.yml/badge.svg
22+
:target: https://github.com/ansys/ansys-tools-visualization-interface/actions/workflows/ci_cd.yml
23+
:alt: GH-CI
24+
25+
.. |pre-commit| image:: https://results.pre-commit.ci/badge/github/ansys/ansys-tools-visualization-interface/main.svg
26+
:target: https://results.pre-commit.ci/latest/github/ansys/ansys-tools-visualization-interface/main
27+
:alt: pre-commit.ci status
28+
1329
.. contents::
1430

1531
Overview

pyproject.toml

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"
44

55
[project]
66
name = "ansys-tools-visualization-interface"
7-
version = "0.1.dev0"
7+
version = "0.2.dev0"
88
description = "A Python visualization interface for PyAnsys libraries"
99
readme = "README.rst"
1010
requires-python = ">=3.9,<4"
@@ -22,7 +22,6 @@ classifiers = [
2222
"Programming Language :: Python :: 3.11",
2323
"Programming Language :: Python :: 3.12",
2424
]
25-
2625
dependencies = [
2726
"pyvista >= 0.42.0,<1",
2827
"beartype >= 0.17.0,<1",
@@ -33,13 +32,7 @@ dependencies = [
3332
]
3433

3534
[project.optional-dependencies]
36-
37-
tests = [
38-
"pytest==8.2.0",
39-
"pytest-pyvista==0.1.9",
40-
"pytest-cov==5.0.0",
41-
]
42-
35+
tests = ["pytest==8.2.0", "pytest-pyvista==0.1.9", "pytest-cov==5.0.0"]
4336
doc = [
4437
"ansys-sphinx-theme==0.15.2",
4538
"jupyter_sphinx==0.5.3",
@@ -59,7 +52,6 @@ name = "ansys.tools.visualization_interface"
5952

6053
[tool.black]
6154
line-length = 100
62-
indent-width = 4
6355

6456
[tool.isort]
6557
profile = "black"
@@ -73,30 +65,24 @@ addopts = "-ra --cov=ansys.tools.visualization_interface --cov-report html:.cov/
7365

7466
[tool.ruff]
7567
line-length = 120
76-
extend-exclude = [
77-
"examples/**/*.py",
78-
]
68+
extend-exclude = ["examples/**/*.py"]
7969

8070
[tool.ruff.lint]
8171
select = [
82-
"E", # pycodestyle, see https://beta.ruff.rs/docs/rules/#pycodestyle-e-w
83-
"D", # pydocstyle, see https://beta.ruff.rs/docs/rules/#pydocstyle-d
84-
"F", # pyflakes, see https://beta.ruff.rs/docs/rules/#pyflakes-f
85-
"I", # isort, see https://beta.ruff.rs/docs/rules/#isort-i
86-
"N", # pep8-naming, see https://beta.ruff.rs/docs/rules/#pep8-naming-n
87-
"PTH", # flake8-use-pathlib, https://beta.ruff.rs/docs/rules/#flake8-use-pathlib-pth
72+
"E", # pycodestyle, see https://beta.ruff.rs/docs/rules/#pycodestyle-e-w
73+
"D", # pydocstyle, see https://beta.ruff.rs/docs/rules/#pydocstyle-d
74+
"F", # pyflakes, see https://beta.ruff.rs/docs/rules/#pyflakes-f
75+
"I", # isort, see https://beta.ruff.rs/docs/rules/#isort-i
76+
"N", # pep8-naming, see https://beta.ruff.rs/docs/rules/#pep8-naming-n
77+
"PTH", # flake8-use-pathlib, https://beta.ruff.rs/docs/rules/#flake8-use-pathlib-pth
8878
]
89-
ignore = [
90-
"D416",
91-
]
92-
79+
ignore = ["D416"]
9380

9481
[tool.ruff.format]
9582
quote-style = "double"
9683
indent-style = "tab"
9784
line-ending = "auto"
9885

99-
10086
[tool.ruff.lint.isort]
10187
combine-as-imports = true
10288
force-sort-within-sections = true
@@ -105,4 +91,3 @@ known-first-party = ["ansys"]
10591
[tool.ruff.lint.pydocstyle]
10692
# Settings: https://docs.astral.sh/ruff/settings/#lintpydocstyle
10793
convention = "google"
108-

0 commit comments

Comments
 (0)