Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
meshmode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiaoyu Wei
meshmode
Commits
2674e535
Commit
2674e535
authored
8 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
Run flake8 during CI
parent
ea788ceb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+12
-0
12 additions, 0 deletions
.gitlab-ci.yml
meshmode/discretization/connection/face.py
+2
-2
2 additions, 2 deletions
meshmode/discretization/connection/face.py
meshmode/mesh/__init__.py
+6
-5
6 additions, 5 deletions
meshmode/mesh/__init__.py
setup.cfg
+1
-0
1 addition, 0 deletions
setup.cfg
with
21 additions
and
7 deletions
.gitlab-ci.yml
+
12
−
0
View file @
2674e535
...
...
@@ -10,6 +10,7 @@ Python 2.7 AMD CPU:
-
amd-cl-cpu
except
:
-
tags
Python 2.7 POCL
:
script
:
-
export PY_EXE=python2.7
...
...
@@ -22,6 +23,7 @@ Python 2.7 POCL:
-
pocl
except
:
-
tags
Python 3.5 POCL
:
script
:
-
export PY_EXE=python3.5
...
...
@@ -34,6 +36,7 @@ Python 3.5 POCL:
-
pocl
except
:
-
tags
Documentation
:
script
:
-
EXTRA_INSTALL="numpy"
...
...
@@ -43,3 +46,12 @@ Documentation:
-
python3.5
only
:
-
master
Flake8
:
script
:
-
curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/prepare-and-run-flake8.sh
-
"
.
./prepare-and-run-flake8.sh
meshmode
test"
tags
:
-
python3.5
except
:
-
tags
This diff is collapsed.
Click to expand it.
meshmode/discretization/connection/face.py
+
2
−
2
View file @
2674e535
...
...
@@ -36,7 +36,7 @@ import logging
logger
=
logging
.
getLogger
(
__name__
)
class
FRESTR_INTERIOR_FACES
:
class
FRESTR_INTERIOR_FACES
:
# noqa
"""
A special value to pass to
:func:`meshmode.discretization.connection.make_face_restriction`
to produce a discretization consisting of all interior faces
...
...
@@ -44,7 +44,7 @@ class FRESTR_INTERIOR_FACES:
"""
class
FRESTR_ALL_FACES
:
class
FRESTR_ALL_FACES
:
# noqa
"""
A special value to pass to
:func:`meshmode.discretization.connection.make_face_restriction`
to produce a discretization consisting of all faces (interior and boundary)
...
...
This diff is collapsed.
Click to expand it.
meshmode/mesh/__init__.py
+
6
−
5
View file @
2674e535
...
...
@@ -59,12 +59,12 @@ Predefined Boundary tags
# {{{ element tags
class
BTAG_NONE
(
object
):
class
BTAG_NONE
(
object
):
# noqa
"""
A boundary tag representing an empty boundary or volume.
"""
pass
class
BTAG_ALL
(
object
):
class
BTAG_ALL
(
object
):
# noqa
"""
A boundary tag representing the entire boundary or volume.
In the case of the boundary, TAG_ALL does not include rank boundaries,
...
...
@@ -72,7 +72,7 @@ class BTAG_ALL(object):
pass
class
BTAG_REALLY_ALL
(
object
):
class
BTAG_REALLY_ALL
(
object
):
# noqa
"""
A boundary tag representing the entire boundary.
Unlike :class:`TAG_ALL`, this includes rank boundaries,
...
...
@@ -80,7 +80,7 @@ class BTAG_REALLY_ALL(object):
pass
class
BTAG_NO_BOUNDARY
(
object
):
class
BTAG_NO_BOUNDARY
(
object
):
# noqa
"""
A boundary tag indicating that this edge should not fall under
:class:`TAG_ALL`. Among other things, this is used to keep rank boundaries
out of :class:`BTAG_ALL`.
...
...
@@ -589,7 +589,8 @@ class Mesh(Record):
assert
nodal_adjacency
.
neighbors_starts
.
shape
==
(
self
.
nelements
+
1
,)
assert
len
(
nodal_adjacency
.
neighbors
.
shape
)
==
1
assert
nodal_adjacency
.
neighbors_starts
.
dtype
==
self
.
element_id_dtype
assert
(
nodal_adjacency
.
neighbors_starts
.
dtype
==
self
.
element_id_dtype
)
assert
nodal_adjacency
.
neighbors
.
dtype
==
self
.
element_id_dtype
if
facial_adjacency_groups
:
...
...
This diff is collapsed.
Click to expand it.
setup.cfg
+
1
−
0
View file @
2674e535
[flake8]
ignore
=
E126,E127,E128,E123,E226,E241,E242,E265,W503,E402
max-line-length
=
85
exclude
=
meshmode/mesh/refinement/__init__.py
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment