From dd46732cf2c0b7671184c48478fe5fdfd1412e79 Mon Sep 17 00:00:00 2001 From: michplunkett <5885605+michplunkett@users.noreply.github.com> Date: Sun, 8 Sep 2024 22:27:34 -0700 Subject: [PATCH] Remove specific inclusion of click --- incident_scraper/__main__.py | 5 ++--- poetry.lock | 2 +- pyproject.toml | 1 - 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/incident_scraper/__main__.py b/incident_scraper/__main__.py index 329d0cc..2ffdbcb 100644 --- a/incident_scraper/__main__.py +++ b/incident_scraper/__main__.py @@ -7,8 +7,6 @@ from datetime import datetime from typing import Any -from click import IntRange - from incident_scraper.external.geocoder import Geocoder from incident_scraper.external.google_logger import init_logger from incident_scraper.external.google_nbd import GoogleNBD @@ -55,8 +53,9 @@ def main(): # noqa: C901 days_back.add_argument( "days", # The range is locked between 3 and 30. - type=IntRange(3, 90), + choices=range(3, 31), default=3, + type=int, ) subparser.add_parser(SystemFlags.BUILD_MODEL) diff --git a/poetry.lock b/poetry.lock index ba3636d..81a5dfa 100644 --- a/poetry.lock +++ b/poetry.lock @@ -2044,4 +2044,4 @@ test = ["big-O", "importlib-resources", "jaraco.functools", "jaraco.itertools", [metadata] lock-version = "2.0" python-versions = "^3.11" -content-hash = "04d78d8971a73a38cf9c09de211ead898f497971f6bddb5e10817ad36a05687f" +content-hash = "6e3e5a08dcf2cd3a615b60f5ac42686b820793d98cf056b4e1909b99263fda19" diff --git a/pyproject.toml b/pyproject.toml index 85b2877..b693470 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,7 +25,6 @@ pandas = "^2.1.3" pyarrow = "^17.0.0" xgboost = "^2.1.1" neattext = "^0.1.3" -click = "^8.1.7" textblob = "^0.18.0.post0" censusgeocode = "^0.5.2" nltk = "^3.9"