From c148a3cb82bcaee066d168ba68ee651116c3aa1a Mon Sep 17 00:00:00 2001 From: Robb Shecter Date: Sun, 22 Dec 2024 22:13:44 -0700 Subject: [PATCH] fix: deps --- poetry.lock | 2 +- pyproject.toml | 92 ++++++++++++++++++++++++-------------------------- 2 files changed, 45 insertions(+), 49 deletions(-) diff --git a/poetry.lock b/poetry.lock index 12d9d0dc..eae87518 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1899,4 +1899,4 @@ testing = ["coverage[toml]", "zope.event", "zope.testing"] [metadata] lock-version = "2.0" python-versions = "^3.12" -content-hash = "043dfc0ad46ebd3b0f67f08a65d997e1fba47beb189aae7bfeb25dc25f34c87d" +content-hash = "c04554dd0d3f2f3cfd24a786b2514e115a5ef4c206719618fb9fcd90f6a2aae5" diff --git a/pyproject.toml b/pyproject.toml index 633246cc..01ec9f7b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,76 +1,72 @@ [tool.poetry] -authors = ["Robb Shecter "] +authors = ["Robb Shecter "] description = "Open-gov spiders written with Python" -name = "open-gov-crawlers" -packages = [ { include = "public_law" } ] -repository = "https://github.com/public-law/open-gov-crawlers" -version = "1.1.2" +name = "open-gov-crawlers" +packages = [{ include = "public_law" }] +repository = "https://github.com/public-law/open-gov-crawlers" +version = "1.1.2" [tool.poetry.dependencies] -beautifulsoup4 = "^4.10" -cryptography = "*" -lxml = "*" -more-itertools = "*" -progressbar2 = "*" -pydantic = "^2.5" -python = "^3.12" -pytz = "*" -scrapy = "*" -tika = "*" -titlecase = "*" -toolz = "*" +beautifulsoup4 = "^4.10" +cryptography = "*" +lxml = "*" +more-itertools = "*" +progressbar2 = "*" +pydantic = "^2.5" +python = "^3.12" +pytz = "*" +scrapy = "*" +tika = "*" +titlecase = "*" +toolz = "*" # spidermon = {extras = ["monitoring", "validation"], version = "^1.16.2"} scrapy-zyte-smartproxy = "^2.3.5" +python-dotenv = "^1.0.1" [tool.poetry.group.dev.dependencies] -pyright = "^1.1" -pytest = "*" +pyright = "^1.1" +pytest = "*" pytest-watch = "*" -vcrpy = "*" - - - -[tool.poetry.group.development.dependencies] -python-dotenv = "^1.0.1" +vcrpy = "*" [tool.pyright] pythonVersion = "3.12" -include = ["public_law", "tests"] -ignore = ["**/typings"] +include = ["public_law", "tests"] +ignore = ["**/typings"] # As strict as possible: strict mode plus the optional strict checks. -typeCheckingMode = "strict" +typeCheckingMode = "strict" -reportCallInDefaultInitializer = "error" -reportImplicitStringConcatenation = "error" -reportMissingSuperCall = "error" -reportPropertyTypeMismatch = "error" +reportCallInDefaultInitializer = "error" +reportImplicitStringConcatenation = "error" +reportMissingSuperCall = "error" +reportPropertyTypeMismatch = "error" reportUninitializedInstanceVariable = "error" -reportUnnecessaryTypeIgnoreComment = "error" -reportUnusedCallResult = "error" +reportUnnecessaryTypeIgnoreComment = "error" +reportUnusedCallResult = "error" -reportUnusedImport = false -reportMissingTypeStubs = false # I don't know the purpose. Scrapy does better w/out type stubs. +reportUnusedImport = false +reportMissingTypeStubs = false # I don't know the purpose. Scrapy does better w/out type stubs. [tool.pytest.ini_options] -addopts = "-q --no-header --doctest-modules -p no:pastebin" -minversion = "7.1" -pythonpath = "." -python_files = ["*_test.py",] -python_classes = ["Test", "Describe"] +addopts = "-q --no-header --doctest-modules -p no:pastebin" +minversion = "7.1" +pythonpath = "." +python_files = ["*_test.py"] +python_classes = ["Test", "Describe"] python_functions = ["test_", "it_", "and_", "but_", "they_"] -testpaths = ["tests", "public_law"] +testpaths = ["tests", "public_law"] [build-system] -requires = ["poetry>=0.12"] +requires = ["poetry>=0.12"] build-backend = "poetry.masonry.api" [tool.pylint.main] disable = [ - "missing-function-docstring", - "missing-module-docstring", - "no-value-for-parameter", - "too-few-public-methods", - ] + "missing-function-docstring", + "missing-module-docstring", + "no-value-for-parameter", + "too-few-public-methods", +]