Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,22 @@ repos:
- id: rst-inline-touching-normal

- repo: https://github.com/rbubley/mirrors-prettier
rev: "v3.9.4"
rev: "v3.9.9"
hooks:
- id: prettier
types_or: [yaml, markdown, html, css, scss, javascript, json]
args: [--prose-wrap=always]
exclude: \.md|ci.yml

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.15.20"
rev: "v0.16.10"
hooks:
- id: ruff-check
args: ["--fix", "--show-fixes"]
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v2.1.0"
rev: "v2.4.0"
hooks:
- id: mypy
files: src|tests
Expand All @@ -67,7 +67,7 @@ repos:
- types-requests

- repo: https://github.com/codespell-project/codespell
rev: "v2.4.2"
rev: "v2.4.3"
hooks:
- id: codespell
additional_dependencies:
Expand All @@ -77,7 +77,7 @@ repos:
--skip="*.js,*.html,*.css,*.svg, *.bib,"

- repo: https://github.com/shellcheck-py/shellcheck-py
rev: "v0.11.0.1"
rev: "v0.11.0.1-1"
hooks:
- id: shellcheck

Expand All @@ -90,13 +90,13 @@ repos:
exclude: .pre-commit-config.yaml

- repo: https://github.com/abravalheri/validate-pyproject
rev: "v0.25"
rev: "0.26"
hooks:
- id: validate-pyproject
additional_dependencies: ["validate-pyproject-schema-store[all]"]

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: "0.37.4"
rev: "0.38.2"
hooks:
- id: check-dependabot
- id: check-github-workflows
Expand Down
10 changes: 5 additions & 5 deletions src/polartoolkit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ def __init__(self, additional=None, ncol=3, text_width=80, sort=False): # type:
)


from .fetch import ( # noqa: E402
from .fetch import (
resample_grid,
)
from .maps import ( # noqa: E402
from .maps import (
Figure,
basemap,
geoviews_points,
Expand All @@ -70,7 +70,7 @@ def __init__(self, additional=None, ncol=3, text_width=80, sort=False): # type:
plot_grid,
subplots,
)
from .profiles import ( # noqa: E402
from .profiles import (
default_data,
default_layers,
draw_lines,
Expand All @@ -79,13 +79,13 @@ def __init__(self, additional=None, ncol=3, text_width=80, sort=False): # type:
plot_profile,
sample_grids,
)
from .regions import ( # noqa: E402
from .regions import (
alter_region,
combine_regions,
draw_region,
regions_overlap,
)
from .utils import ( # noqa: E402
from .utils import (
block_reduce,
change_registration,
dd2dms,
Expand Down
4 changes: 2 additions & 2 deletions src/polartoolkit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -889,11 +889,11 @@ def points_inside_region(

if reverse is True:
# subset if False
df_result = df1.loc[df1.inside_tmp == False].copy() # noqa: E712 # pylint: disable=singleton-comparison
df_result = df1.loc[df1.inside_tmp == False].copy() # pylint: disable=singleton-comparison

else:
# subset if True
df_result = df1.loc[df1.inside_tmp == True].copy() # noqa: E712 # pylint: disable=singleton-comparison
df_result = df1.loc[df1.inside_tmp == True].copy() # pylint: disable=singleton-comparison

# drop the column 'inside'
return df_result.drop(columns="inside_tmp")
Expand Down
Loading