Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
max-line-length = 120
ignore = E221,E226,E241,E242,W0105,N803,N806
exclude = __init__.py
9 changes: 4 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,15 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install -e .
python -m pip install -e ".[dev]"
- name: Test with pytest
run: |
python -m pytest
codecov
- name: Test with pytest
- name: Build and validate
run: |
python setup.py bdist_wheel
python setup.py sdist -d ${SDIST_DIR}/ --format=gztar
python -m build --wheel
python -m build --sdist --outdir ${SDIST_DIR}/
twine check ${SDIST_DIR}/*
check-manifest -p python ${PWD}
cd ${SDIST_DIR}
Expand Down
3 changes: 1 addition & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
include *.txt
include *.md
include MANIFEST.in
include .flake8
recursive-include examples *.py
recursive-include tests *.py
include versioneer.py
include pyevtk/_version.py
exclude .pre-commit-config.yaml
prune .github
4 changes: 2 additions & 2 deletions examples/structured.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,14 @@
"sphere.0",
*sphere(XX1_1, XX2_1, XX3_1),
start=(0, 0, 0),
pointData={"R": XX1_1, "Theta": XX2_1, "Phi": XX3_1}
pointData={"R": XX1_1, "Theta": XX2_1, "Phi": XX3_1},

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@renefritze, these changes are because of a newer black. I don't think black~=26 is enough to be stable. Minor version updates lead to formatting changes.

)
# Second Half sphere
gridToVTK(
"sphere.1",
*sphere(XX1_2, XX2_2, XX3_2),
start=(0, 9, 0),
pointData={"R": XX1_2, "Theta": XX2_2, "Phi": XX3_2}
pointData={"R": XX1_2, "Theta": XX2_2, "Phi": XX3_2},
)

# Write parallel file
Expand Down
Loading
Loading