Skip to content

Commit 8baeb06

Browse files
authored
Release of v3.1.0 #minor
2 parents d5776f4 + 9859a13 commit 8baeb06

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+71157
-70416
lines changed

.github/workflows/style-check.yml

Lines changed: 17 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,23 @@
1-
name: Style Check
1+
name: flake8 Lint
22

3-
on: [pull_request]
3+
on: [push, pull_request]
44

55
jobs:
6-
build:
6+
flake8-lint:
77
runs-on: ubuntu-latest
8-
8+
name: Lint
99
steps:
10-
- uses: actions/checkout@v2
10+
- name: Check out source repository
11+
uses: actions/checkout@v2
12+
- name: Set up Python environment
13+
uses: actions/setup-python@v2
1114
with:
12-
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
13-
14-
- name: Install style guide libs
15-
run:
16-
pip install flake8 wemake-python-styleguide
17-
18-
- name: Run style guide on changed portions
19-
run: |
20-
GIT_DIFF=$(git diff -u origin/$GITHUB_BASE_REF)
21-
echo "$GIT_DIFF" | flake8 --diff
22-
23-
# For now, let's comment out the automated WPS style guide
24-
# - name: Find changed files
25-
# run:
26-
# echo "_CHANGED_FILES=$(git diff --name-only origin/${{ github.base_ref }} -- '*.py' | tr -s '\n' ' ' )" >> ${GITHUB_ENV}
27-
28-
# - name: wemake-python-styleguide
29-
# uses: wemake-services/wemake-python-styleguide@0.15.3
30-
# with:
31-
# reporter: 'github-pr-review'
32-
# path: "${{ env._CHANGED_FILES }}"
33-
# env:
34-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
python-version: "3.10"
16+
- name: flake8 Lint
17+
uses: py-actions/flake8@v2
18+
with:
19+
ignore: "D100,E226,F403,N806,W503,WPS111,WPS211,WPS237,WPS300,WPS305,WPS319,WPS347,WPS410,WPS437"
20+
exclude: "doc/,setup.py,scripts/,tests/"
21+
max-line-length: "90"
22+
path: ".."
23+
plugins: "flake8-bugbear==22.1.11 flake8-black"

.github/workflows/tests.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ jobs:
5959
--cov-report=xml
6060
--color=yes
6161

62-
6362
- name: Upload coverage to Codecov
6463
if: (matrix.python-version == 3.9) && (matrix.os == 'ubuntu-latest')
6564
uses: codecov/codecov-action@v2
@@ -68,3 +67,13 @@ jobs:
6867
file: ./coverage.xml
6968
flags: unittests
7069
name: codecov-umbrella
70+
71+
72+
- name: flake8 Lint
73+
if: (matrix.python-version == 3.9) && (matrix.os == 'ubuntu-latest')
74+
uses: py-actions/flake8@v2
75+
with:
76+
ignore: "D100,E226,E402,E712,E741,F401,F403,N806,W503,WPS111,WPS211,WPS237,WPS300,WPS305,WPS319,WPS347,WPS410,WPS437"
77+
exclude: "docs/,scripts/,tests/,openpnm/contrib/,setup.py,openpnm/models/_doctxt.py,openpnm/models/phase/_phasedocs.py,openpnm/models/geometry/_geodocs.py"
78+
max-line-length: "90"
79+
path: ".."

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
-----
88

9-
> WARNING: The ``dev`` branch is now **highly backwards incompatible with V2**! We have made some MAJOR changes that will dramatically improve the usage and maintainability of OpenPNM moving forward, but it required breaking things. Specifically, we have removed the concept of Geometry and Physics objects. All simulations now require just Networks and Phases. We are working feverishly to get this transition finalized and to update the documentation accordingly, but remember we are a small team with lots of other things distracting us. Thanks for your patience.
9+
> VERSION 3.0 of OpenPNM is now out. All the [examples on the website](https://openpnm.org/_examples/index.html) are now using the features and idioms of V3. For a description of the main changes please see our [recent blog post](http://pmeal.com/posts/2022-10-10-notebook-post/).
1010
1111
# Overview of OpenPNM
1212

docs/_examples/reference.rst

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,26 @@ Reference
66

77
.. tab-set::
88

9-
.. tab-item:: Reference
9+
.. tab-item:: Software
1010

1111
.. toctree::
1212
:maxdepth: 1
1313
:glob:
1414

15-
../examples/reference/**
15+
../examples/reference/architecture/**
16+
17+
.. tab-item:: Networks
18+
19+
.. toctree::
20+
:maxdepth: 2
21+
:glob:
22+
23+
../examples/reference/networks/**
24+
25+
.. tab-item:: Simulations
26+
27+
.. toctree::
28+
:maxdepth: 2
29+
:glob:
30+
31+
../examples/reference/simulations/**

docs/index.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
.. module:: openpnm
44
:noindex:
55

6-
.. warning::
7-
8-
This documentation is under active development, and is not ready yet.
9-
We aim to release OpenPNM v3 by mid September 2022.
10-
116
.. image:: ./_static/images/openpnm_logo.jpg
127
:name: banner
138

0 commit comments

Comments
 (0)