Skip to content

Commit

Permalink
MAINT: Fix for latest pyvista (#431)
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner authored Jul 20, 2023
1 parent 5cd4592 commit f26e8fb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
18 changes: 10 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
repos:
- repo: https://github.com/psf/black
rev: 22.10.0
rev: 23.7.0
hooks:
- id: black
args: [
"--config=pyproject.toml"
]

- repo: https://github.com/pycqa/isort
rev: 5.10.1
rev: 5.12.0
hooks:
- id: isort
args: [
Expand All @@ -17,7 +17,7 @@ repos:
]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.990
rev: v1.4.1
hooks:
- id: mypy
# `pass_filenames` is used to overcome the "duplicate module"
Expand All @@ -28,21 +28,20 @@ repos:
# See:
# - https://github.com/python/mypy/issues/4008#issuecomment-708060733
# - https://pre-commit.com/#hooks-pass_filenames
language: system
pass_filenames: false
args: [
"--config-file",
"mypy.ini",
"@mypy_checklist.txt"
]

- repo: https://gitlab.com/PyCQA/flake8
- repo: https://github.com/PyCQA/flake8
rev: 3.9.2
hooks:
- id: flake8
additional_dependencies: [
"flake8-black==0.3.2",
"flake8-isort==4.1.1",
"flake8-black==0.3.6",
"flake8-isort==6.0.0",
"flake8-quotes==3.3.1",
]
args: [
Expand Down Expand Up @@ -105,4 +104,7 @@ repos:
args:
[
"--config=./\\.pycodestyle",
]
]

ci:
skip: [pylint, pycodestyle]
7 changes: 6 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@
pyvista.BUILDING_GALLERY = True
# Preferred plotting style for documentation
pyvista.set_plot_theme('document')
pyvista.rcParams['window_size'] = np.array([1024, 768]) * 2
ws = np.array([1024, 768]) * 2
try:
pyvista.global_theme.window_size = ws
except AttributeError:
rc = pyvista.rcParams["window_size"] = ws
del ws
# Save figures in specified directory
pyvista.FIGURE_PATH = os.path.join(os.path.abspath('./images/'), 'auto-generated/')
if not os.path.exists(pyvista.FIGURE_PATH):
Expand Down

0 comments on commit f26e8fb

Please sign in to comment.