Skip to content

Commit

Permalink
fix: fix formatting issues and missing wild card
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenthoms committed Sep 29, 2023
1 parent eb2c239 commit cf9e792
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
if: matrix.python-version == '3.8'
run: |
npm run validate
black --check webviz_subsurface_components/ setup.py
black --check webviz_subsurface_components/* setup.py
pylint webviz_subsurface_components/ setup.py
bandit -r -c ./bandit.yml webviz_subsurface_components/ setup.py
Expand Down
2 changes: 1 addition & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from setuptools import setup


with open("package.json") as f:
with open("package.json", encoding="utf-8") as f:
package = json.load(f)

package_name = package["name"].replace(" ", "_").replace("-", "_")
Expand Down
8 changes: 4 additions & 4 deletions python/webviz_subsurface_components/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"subsurface-viewer",
"view-annotation",
"view-footer",
"well-log-viewer"
"well-log-viewer",
]

_js_dist = [
Expand All @@ -74,13 +74,13 @@
"relative_package_path": "webviz_subsurface_components.min.js.map",
"namespace": package_name,
"dynamic": True,
}
},
]

_js_dist.extend(
[
{
"relative_package_path": "async-webviz-{}.js".format(async_resource),
"relative_package_path": f"async-webviz-{async_resource}.js",
"namespace": package_name,
"async": True,
}
Expand All @@ -91,7 +91,7 @@
_js_dist.extend(
[
{
"relative_package_path": "async-webviz-{}.js.map".format(async_resource),
"relative_package_path": f"async-webviz-{async_resource}.js.map",
"namespace": package_name,
"dynamic": True,
}
Expand Down

0 comments on commit cf9e792

Please sign in to comment.