diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 905ebb2..5ea60cc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: trailing-whitespace - id: check-ast @@ -50,7 +50,7 @@ repos: - id: add-trailing-comma - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.3 + rev: v0.6.9 hooks: - id: ruff args: ["--fix", "--show-fixes"] @@ -73,7 +73,7 @@ repos: - id: nb-strip-paths - repo: https://github.com/tox-dev/pyproject-fmt - rev: 2.2.1 + rev: 2.2.4 hooks: - id: pyproject-fmt diff --git a/gliderpy/plotting.py b/gliderpy/plotting.py index 88c88e5..ccd78c1 100644 --- a/gliderpy/plotting.py +++ b/gliderpy/plotting.py @@ -56,7 +56,7 @@ def plot_transect( :param var: variable to colour the scatter plot :return: figure, axes """ - cmap = kw.get("cmap", None) + cmap = kw.get("cmap") fignums = plt.get_fignums() if ax is None and not fignums: