diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 10b5dc01..84c48ddc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/psf/black - rev: 22.10.0 + rev: 23.7.0 hooks: - id: black args: [ @@ -8,7 +8,7 @@ repos: ] - repo: https://github.com/pycqa/isort - rev: 5.10.1 + rev: 5.12.0 hooks: - id: isort args: [ @@ -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" @@ -28,7 +28,6 @@ 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", @@ -36,13 +35,13 @@ repos: "@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: [ @@ -105,4 +104,7 @@ repos: args: [ "--config=./\\.pycodestyle", - ] \ No newline at end of file + ] + +ci: + skip: [pylint, pycodestyle] diff --git a/docs/conf.py b/docs/conf.py index 74371a93..c8f3ff90 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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):