Skip to content

Commit 63cc14a

Browse files
authored
Add quad tri support (#268)
* add relax quadratic tri * pre-commit changes * drop build for 3.7 * generate release notes on release
1 parent 8bb2207 commit 63cc14a

File tree

19 files changed

+5910
-5893
lines changed

19 files changed

+5910
-5893
lines changed

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[flake8]
22
exclude = venv, __init__.py, build, doc/source/examples
3-
# To be added after refactoring code to be compliant: E501
3+
# To be added after refactoring code to be compliant: E501
44
select = W191, W291, W293, W391, E115, E117, E122, E124, E125, E225, E231, E301, E303, F401, F403
55
count = True
66
max-complexity = 10

.github/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ markComment: >
1717
# Comment to post when closing a stale issue. Set to `false` to disable
1818
closeComment: >
1919
Closed due to inactivity. Feel free to reopen if there is new information
20-
or interest.
20+
or interest.
2121
Thank you!

.github/workflows/testing-and-deployment.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
runs-on: ${{ matrix.os }}
8080
strategy:
8181
matrix:
82-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
82+
python-version: ['3.8', '3.9', '3.10', '3.11']
8383
os: [ubuntu-latest, windows-latest]
8484

8585
steps:
@@ -156,7 +156,7 @@ jobs:
156156
- name: Build wheels
157157
uses: pypa/[email protected]
158158
with:
159-
python-version: 3.7 - 3.11
159+
python-version: 3.8 - 3.11
160160

161161
- name: List generated wheels
162162
run: |
@@ -245,7 +245,7 @@ jobs:
245245
# - name: Display MAPDL Logs
246246
# if: always()
247247
# run: cat log.txt
248-
248+
249249
Release:
250250
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
251251
needs: [doc_build, build, mac_build]
@@ -274,6 +274,7 @@ jobs:
274274
- name: Release
275275
uses: softprops/action-gh-release@v1
276276
with:
277+
generate_release_notes: true
277278
files: |
278279
./**/*.whl
279280
./**/*.zip

.pre-commit-config.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,23 @@ repos:
3232
# additional_dependencies: [toml]
3333
# exclude: "tests/"
3434

35+
- repo: https://github.com/pre-commit/mirrors-clang-format
36+
rev: v14.0.6
37+
hooks:
38+
- id: clang-format
39+
files: |
40+
(?x)^(
41+
ansys/mapdl/reader/cython/[^_].*\.c.*
42+
)$
43+
3544
- repo: https://github.com/pre-commit/pre-commit-hooks
3645
rev: v4.4.0
3746
hooks:
3847
- id: check-merge-conflict
3948
- id: debug-statements
49+
- id: trailing-whitespace
50+
exclude: '.*\.(cdb|rst|dat)$'
4051

41-
# this validates our github workflow files
4252
- repo: https://github.com/python-jsonschema/check-jsonschema
4353
rev: 0.23.1
4454
hooks:

ansys/mapdl/reader/cython/_archive.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def py_write_nblock(filename, const int [::1] node_id, int max_node_id,
4949
Double array of node coordinates
5050
5151
angles : np.ndarray, optional
52-
52+
5353
5454
"""
5555
# attach the stream to the python file
@@ -84,7 +84,7 @@ def py_write_nblock_float(filename, const int [::1] node_id, int max_node_id,
8484
Double array of node coordinates
8585
8686
angles : np.ndarray, optional
87-
87+
8888
"""
8989
# attach the stream to the python file
9090
cdef FILE* cfile = fopen(filename.encode(), mode.encode())

0 commit comments

Comments
 (0)