Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (symerio#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] authored Apr 3, 2023
1 parent cdf69e6 commit 3e3235b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
rev: v4.4.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace


- repo: https://github.com/psf/black
rev: 22.12.0
rev: 23.3.0
hooks:
- id: black

Expand All @@ -19,15 +19,15 @@ repos:
args: ["--py38-plus"]

- repo: https://github.com/hadialqattan/pycln
rev: "v2.1.2"
rev: "v2.1.3"
hooks:
- id: pycln
args: [--config=pyproject.toml]
stages: [manual]


- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.991
rev: v1.1.1
hooks:
- id: mypy
files: ".+.py"
Expand Down
2 changes: 0 additions & 2 deletions pgeocode.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ class Nominatim:
"""

def __init__(self, country: str = "fr", unique: bool = True):

country = country.upper()
if country not in COUNTRIES_VALID:
raise ValueError(
Expand Down Expand Up @@ -259,7 +258,6 @@ def _index_postal_codes(self) -> pd.DataFrame:
data_path_unique, dtype={"postal_code": str}
)
else:

# group together places with the same postal code
df_unique_cp_group = self._data.groupby("postal_code")
data_unique = df_unique_cp_group[["latitude", "longitude"]].mean()
Expand Down
1 change: 0 additions & 1 deletion test_pgeocode.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ def test_nominatim_all_countries(country):


def test_nominatim_distance_postal_code():

gdist = GeoDistance("fr")

dist = gdist.query_postal_code("91120", "91120")
Expand Down

0 comments on commit 3e3235b

Please sign in to comment.