Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarans committed Apr 9, 2024
1 parent 3e03fac commit 91f6c29
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 39 deletions.
49 changes: 13 additions & 36 deletions requirements.txt
@@ -1,9 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile --all-extras --output-file=requirements.txt pyproject.toml
#
# This file was autogenerated by uv via the following command:
# uv pip compile pyproject.toml --resolver=backtracking --all-extras -o requirements.txt
annotated-types==0.6.0
# via pydantic
attrs==23.2.0
Expand All @@ -24,15 +20,13 @@ chardet==5.2.0
charset-normalizer==3.3.2
# via requests
ckanapi==4.8
# via hdx-python-api (pyproject.toml)
click==8.1.7
# via typer
coverage[toml]==7.4.4
coverage==7.4.4
# via pytest-cov
cryptography==42.0.5
# via pyopenssl
defopt==6.4.0
# via hdx-python-api (pyproject.toml)
distlib==0.3.8
# via virtualenv
dnspython==2.6.1
Expand All @@ -41,10 +35,9 @@ docopt==0.6.2
# via
# ckanapi
# num2words
docutils==0.21
docutils==0.21.post1
# via defopt
email-validator==2.1.1
# via hdx-python-api (pyproject.toml)
et-xmlfile==1.1.0
# via openpyxl
filelock==3.13.4
Expand All @@ -58,13 +51,9 @@ google-auth==2.29.0
google-auth-oauthlib==1.2.0
# via gspread
gspread==6.1.0
# via hdx-python-api (pyproject.toml)
hdx-python-country==3.7.0
# via hdx-python-api (pyproject.toml)
hdx-python-utilities==3.6.7
# via
# hdx-python-api (pyproject.toml)
# hdx-python-country
# via hdx-python-country
humanize==4.9.0
# via frictionless
identify==2.5.35
Expand Down Expand Up @@ -92,13 +81,10 @@ jsonschema==4.17.3
# frictionless
# tableschema-to-template
libhxl==5.2.1
# via
# hdx-python-api (pyproject.toml)
# hdx-python-country
# via hdx-python-country
loguru==0.7.2
# via hdx-python-utilities
makefun==1.15.2
# via hdx-python-api (pyproject.toml)
markdown-it-py==3.0.0
# via rich
marko==2.0.3
Expand All @@ -110,7 +96,6 @@ mdurl==0.1.2
more-itertools==10.2.0
# via inflect
ndg-httpsclient==0.5.1
# via hdx-python-api (pyproject.toml)
nodeenv==1.8.0
# via pre-commit
num2words==0.5.13
Expand All @@ -134,10 +119,8 @@ ply==3.11
pockets==0.9.1
# via sphinxcontrib-napoleon
pre-commit==3.7.0
# via hdx-python-api (pyproject.toml)
pyasn1==0.6.0
# via
# hdx-python-api (pyproject.toml)
# ndg-httpsclient
# pyasn1-modules
# rsa
Expand All @@ -152,19 +135,14 @@ pydantic-core==2.16.3
pygments==2.17.2
# via rich
pyopenssl==24.1.0
# via
# hdx-python-api (pyproject.toml)
# ndg-httpsclient
# via ndg-httpsclient
pyphonetics==0.5.3
# via hdx-python-country
pyrsistent==0.20.0
# via jsonschema
pytest==8.1.1
# via
# hdx-python-api (pyproject.toml)
# pytest-cov
# via pytest-cov
pytest-cov==5.0.0
# via hdx-python-api (pyproject.toml)
python-dateutil==2.8.2
# via
# frictionless
Expand All @@ -182,14 +160,12 @@ pyyaml==6.0.1
# pre-commit
# tableschema-to-template
quantulum3==0.9.0
# via hdx-python-api (pyproject.toml)
ratelimit==2.2.1
# via hdx-python-utilities
requests==2.31.0
# via
# ckanapi
# frictionless
# hdx-python-api (pyproject.toml)
# libhxl
# requests-file
# requests-oauthlib
Expand All @@ -207,6 +183,10 @@ ruamel-yaml==0.18.6
# via hdx-python-utilities
ruamel-yaml-clib==0.2.8
# via ruamel-yaml
setuptools==69.2.0
# via
# ckanapi
# nodeenv
shellingham==1.5.4
# via typer
simpleeval==0.9.13
Expand Down Expand Up @@ -236,7 +216,7 @@ text-unidecode==1.3
# via python-slugify
typeguard==4.2.1
# via inflect
typer[all]==0.12.3
typer==0.12.3
# via frictionless
typing-extensions==4.11.0
# via
Expand Down Expand Up @@ -268,6 +248,3 @@ xlsxwriter==3.2.0
# via tableschema-to-template
xlwt==1.3.0
# via hdx-python-utilities

# The following packages are considered to be unsafe in a requirements file:
# setuptools
12 changes: 9 additions & 3 deletions tests/hdx/api/test_ckan.py
Expand Up @@ -176,7 +176,9 @@ def create_resource():
assert dataset["title"] == title
assert dataset.get_tags() == tags
assert dataset.get_maintainer()["id"] == maintainer_id
assert dataset.get_organization()["display_name"] == "INNAGO (inactive)"
assert (
dataset.get_organization()["display_name"] == "INNAGO (inactive)"
)
resources = dataset.get_resources()
for i, resource in enumerate(resources):
assert resource["name"] == f"test_resource_{i}"
Expand Down Expand Up @@ -227,7 +229,9 @@ def create_resource():
assert dataset["caveats"] == caveats
assert dataset.get_tags() == tags
assert dataset.get_maintainer()["id"] == maintainer_id
assert dataset.get_organization()["display_name"] == "INNAGO (inactive)"
assert (
dataset.get_organization()["display_name"] == "INNAGO (inactive)"
)
updated_resources = dataset.get_resources()
for i, updated_resource in enumerate(updated_resources):
resource = resources[i]
Expand Down Expand Up @@ -269,7 +273,9 @@ def create_resource():
assert "caveats" not in dataset
assert dataset.get_tags() == tags
assert dataset.get_maintainer()["id"] == maintainer_id
assert dataset.get_organization()["display_name"] == "INNAGO (inactive)"
assert (
dataset.get_organization()["display_name"] == "INNAGO (inactive)"
)
updated_resources = dataset.get_resources()
for i, updated_resource in enumerate(updated_resources):
resource = resources[i]
Expand Down

0 comments on commit 91f6c29

Please sign in to comment.