Skip to content

Commit

Permalink
Add quad tri support (#268)
Browse files Browse the repository at this point in the history
* add relax quadratic tri

* pre-commit changes

* drop build for 3.7

* generate release notes on release
  • Loading branch information
akaszynski authored Jun 7, 2023
1 parent 8bb2207 commit 63cc14a
Show file tree
Hide file tree
Showing 19 changed files with 5,910 additions and 5,893 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[flake8]
exclude = venv, __init__.py, build, doc/source/examples
# To be added after refactoring code to be compliant: E501
# To be added after refactoring code to be compliant: E501
select = W191, W291, W293, W391, E115, E117, E122, E124, E125, E225, E231, E301, E303, F401, F403
count = True
max-complexity = 10
Expand Down
2 changes: 1 addition & 1 deletion .github/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ markComment: >
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: >
Closed due to inactivity. Feel free to reopen if there is new information
or interest.
or interest.
Thank you!
7 changes: 4 additions & 3 deletions .github/workflows/testing-and-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11']
os: [ubuntu-latest, windows-latest]

steps:
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
- name: Build wheels
uses: pypa/[email protected]
with:
python-version: 3.7 - 3.11
python-version: 3.8 - 3.11

- name: List generated wheels
run: |
Expand Down Expand Up @@ -245,7 +245,7 @@ jobs:
# - name: Display MAPDL Logs
# if: always()
# run: cat log.txt

Release:
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
needs: [doc_build, build, mac_build]
Expand Down Expand Up @@ -274,6 +274,7 @@ jobs:
- name: Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files: |
./**/*.whl
./**/*.zip
Expand Down
12 changes: 11 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,23 @@ repos:
# additional_dependencies: [toml]
# exclude: "tests/"

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v14.0.6
hooks:
- id: clang-format
files: |
(?x)^(
ansys/mapdl/reader/cython/[^_].*\.c.*
)$
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-merge-conflict
- id: debug-statements
- id: trailing-whitespace
exclude: '.*\.(cdb|rst|dat)$'

# this validates our github workflow files
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.23.1
hooks:
Expand Down
4 changes: 2 additions & 2 deletions ansys/mapdl/reader/cython/_archive.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def py_write_nblock(filename, const int [::1] node_id, int max_node_id,
Double array of node coordinates
angles : np.ndarray, optional
"""
# attach the stream to the python file
Expand Down Expand Up @@ -84,7 +84,7 @@ def py_write_nblock_float(filename, const int [::1] node_id, int max_node_id,
Double array of node coordinates
angles : np.ndarray, optional
"""
# attach the stream to the python file
cdef FILE* cfile = fopen(filename.encode(), mode.encode())
Expand Down
Loading

0 comments on commit 63cc14a

Please sign in to comment.