Skip to content

Commit

Permalink
HDXDSYS-1629 Add HDXErrorManager subclass of ErrorManager to HDX Pyth…
Browse files Browse the repository at this point in the history
…on API (#76)

* Add HDX Error Handler

* Fix tests

* Update requirements
  • Loading branch information
mcarans authored Jan 12, 2025
1 parent c13ff6c commit 76d76cb
Show file tree
Hide file tree
Showing 14 changed files with 327 additions and 52 deletions.
4 changes: 2 additions & 2 deletions .config/pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repos:
- id: end-of-file-fixer
- id: check-ast
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.0
rev: v0.8.6
hooks:
# Run the linter.
- id: ruff
Expand All @@ -17,7 +17,7 @@ repos:
- id: ruff-format
args: [--config, .config/ruff.toml]
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.4.24
rev: 0.5.15
hooks:
# Run the pip compile
- id: pip-compile
Expand Down
9 changes: 6 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ dependencies = [
"ckanapi>=4.8",
"defopt>=6.4.0",
"email_validator",
"hdx-python-country>=3.8.3",
"hdx-python-utilities>=3.7.4",
"hdx-python-country>=3.8.6",
"hdx-python-utilities>=3.8.0",
"libhxl>=5.2.2",
"makefun",
"quantulum3",
Expand Down Expand Up @@ -70,6 +70,9 @@ packages = ["src/hdx"]
[tool.hatch.build.hooks.vcs]
version-file = "src/hdx/api/_version.py"

[tool.hatch.metadata]
allow-direct-references = true

# Versioning

[tool.hatch.version]
Expand All @@ -95,7 +98,7 @@ run = """
"""

[tool.hatch.envs.hatch-static-analysis]
dependencies = ["ruff==0.7.0"]
dependencies = ["ruff==0.8.6"]

[tool.hatch.envs.hatch-static-analysis.scripts]
format-check = ["ruff format --config .config/ruff.toml --check --diff {args:.}",]
Expand Down
56 changes: 28 additions & 28 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@
# uv pip compile pyproject.toml --resolver=backtracking --all-extras -o requirements.txt
annotated-types==0.7.0
# via pydantic
attrs==24.2.0
attrs==24.3.0
# via
# frictionless
# jsonlines
# jsonschema
# referencing
cachetools==5.5.0
# via google-auth
certifi==2024.8.30
certifi==2024.12.14
# via requests
cfgv==3.4.0
# via pre-commit
chardet==5.2.0
# via frictionless
charset-normalizer==3.4.0
charset-normalizer==3.4.1
# via requests
ckanapi==4.8
# via hdx-python-api (pyproject.toml)
click==8.1.7
click==8.1.8
# via typer
coverage==7.6.4
coverage==7.6.10
# via pytest-cov
defopt==6.4.0
# via hdx-python-api (pyproject.toml)
Expand All @@ -44,37 +44,37 @@ filelock==3.16.1
# via virtualenv
frictionless==5.18.0
# via hdx-python-utilities
google-auth==2.36.0
google-auth==2.37.0
# via
# google-auth-oauthlib
# gspread
google-auth-oauthlib==1.2.1
# via gspread
gspread==6.1.4
# via hdx-python-api (pyproject.toml)
hdx-python-country==3.8.3
hdx-python-country==3.8.6
# via hdx-python-api (pyproject.toml)
hdx-python-utilities==3.7.4
hdx-python-utilities==3.8.0
# via
# hdx-python-api (pyproject.toml)
# hdx-python-country
humanize==4.11.0
# via frictionless
identify==2.6.1
identify==2.6.5
# via pre-commit
idna==3.10
# via
# email-validator
# requests
ijson==3.3.0
# via hdx-python-utilities
inflect==7.4.0
inflect==7.5.0
# via quantulum3
iniconfig==2.0.0
# via pytest
isodate==0.7.2
# via frictionless
jinja2==3.1.4
jinja2==3.1.5
# via frictionless
jsonlines==4.0.0
# via hdx-python-utilities
Expand All @@ -90,7 +90,7 @@ libhxl==5.2.2
# via
# hdx-python-api (pyproject.toml)
# hdx-python-country
loguru==0.7.2
loguru==0.7.3
# via hdx-python-utilities
makefun==1.15.6
# via hdx-python-api (pyproject.toml)
Expand All @@ -106,13 +106,13 @@ more-itertools==10.5.0
# via inflect
nodeenv==1.9.1
# via pre-commit
num2words==0.5.13
num2words==0.5.14
# via quantulum3
oauthlib==3.2.2
# via requests-oauthlib
openpyxl==3.1.5
# via hdx-python-utilities
packaging==24.1
packaging==24.2
# via pytest
petl==1.7.15
# via frictionless
Expand All @@ -134,15 +134,15 @@ pyasn1==0.6.1
# rsa
pyasn1-modules==0.4.1
# via google-auth
pydantic==2.9.2
pydantic==2.10.5
# via frictionless
pydantic-core==2.23.4
pydantic-core==2.27.2
# via pydantic
pygments==2.18.0
pygments==2.19.1
# via rich
pyphonetics==0.5.3
# via hdx-python-country
pytest==8.3.3
# via hdx-python-utilities
pytest==8.3.4
# via
# hdx-python-api (pyproject.toml)
# pytest-cov
Expand Down Expand Up @@ -188,25 +188,25 @@ rfc3986==2.0.0
# via frictionless
rich==13.9.4
# via typer
rpds-py==0.21.0
rpds-py==0.22.3
# via
# jsonschema
# referencing
rsa==4.9
# via google-auth
ruamel-yaml==0.18.6
ruamel-yaml==0.18.10
# via hdx-python-utilities
ruamel-yaml-clib==0.2.12
# via ruamel-yaml
setuptools==75.3.0
setuptools==75.8.0
# via ckanapi
shellingham==1.5.4
# via typer
simpleeval==1.0.3
# via frictionless
simplejson==3.19.3
# via ckanapi
six==1.16.0
six==1.17.0
# via
# ckanapi
# pockets
Expand All @@ -228,7 +228,7 @@ text-unidecode==1.3
# via python-slugify
typeguard==4.4.1
# via inflect
typer==0.13.0
typer==0.15.1
# via frictionless
typing-extensions==4.12.2
# via
Expand All @@ -241,21 +241,21 @@ unidecode==1.3.8
# via
# libhxl
# pyphonetics
urllib3==2.2.3
urllib3==2.3.0
# via
# libhxl
# requests
validators==0.34.0
# via frictionless
virtualenv==20.27.1
virtualenv==20.28.1
# via pre-commit
wheel==0.44.0
wheel==0.45.1
# via libhxl
xlrd==2.0.1
# via hdx-python-utilities
xlrd3==1.1.0
# via libhxl
xlsx2csv==0.8.3
xlsx2csv==0.8.4
# via hdx-python-utilities
xlsxwriter==3.2.0
# via tableschema-to-template
Expand Down
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 76d76cb

Please sign in to comment.