Skip to content
Merged
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
21 changes: 0 additions & 21 deletions .github/workflows/pre-commit.yml

This file was deleted.

19 changes: 15 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ repos:
files: requirements-dev.txt

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.247
rev: v0.0.277
hooks:
- id: ruff

- repo: https://github.com/psf/black
rev: 23.1.0
rev: 23.7.0
hooks:
- id: black
language_version: python3
Expand All @@ -31,13 +31,24 @@ repos:
- id: blackdoc

- repo: https://github.com/codespell-project/codespell
rev: v2.2.2
rev: v2.2.5
hooks:
- id: codespell
args:
- --ignore-words-list=thex,nd,fo,som,nam,tha
- --ignore-words-list=thex,nd,fo,som,nam,tha,caf
exclude: >
(?x)^(
.*\.csv |
.*\.json |
)$

ci:
autofix_commit_msg: |
[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
autofix_prs: false
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
autoupdate_schedule: monthly
skip: []
submodules: false
14 changes: 7 additions & 7 deletions folium/plugins/vectorgrid_protobuf.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,13 @@ class VectorGridProtobuf(JSCSSMixin, Layer):
]

def __init__(
self,
url: str,
name: Optional[str] = None,
options: Union[str, dict, None] = None,
overlay: bool = True,
control: bool = True,
show: bool = True,
self,
url: str,
name: Optional[str] = None,
options: Union[str, dict, None] = None,
overlay: bool = True,
control: bool = True,
show: bool = True,
):
super().__init__(name=name, overlay=overlay, control=control, show=show)
self._name = "VectorGridProtobuf"
Expand Down