diff --git a/Makefile b/Makefile index fb57d15..8ec0f09 100644 --- a/Makefile +++ b/Makefile @@ -4,12 +4,11 @@ requirements: .PHONY: check check: - black --check . - ruff . + ruff check . .PHONY: format format: - black . + ruff format . .PHONY: coverage coverage: diff --git a/pyproject.toml b/pyproject.toml index 1a29c1a..24610b8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,6 @@ target-version = ['py38'] skip-string-normalization = true [tool.ruff] -select = ["E", "F"] line-length = 88 target-version = "py38" exclude = [ @@ -16,6 +15,13 @@ exclude = [ ".ruff_cache", ] +[tool.ruff.format] +quote-style = "single" + +[tool.ruff.lint] +select = ["E", "F"] +ignore = ["E501"] + [tool.cibuildwheel] build = [ "cp38-*", diff --git a/requirements/base.txt b/requirements/base.txt index 7306ed5..1d43d46 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -1,5 +1,5 @@ # What we want -cffi==1.15.1 +cffi==1.16.0 # What we need pycparser==2.21 diff --git a/requirements/development.txt b/requirements/development.txt index 9a3fbe5..4891e7d 100644 --- a/requirements/development.txt +++ b/requirements/development.txt @@ -1,45 +1,40 @@ # What we want -build==0.10.0 -black==23.3.0 -cffi==1.15.1 -coverage==7.2.5 -ruff==0.0.267 -setuptools==67.7.2 -Sphinx==7.0.0 -twine==4.0.2 -wheel==0.40.0 +build==1.1.1 +coverage==7.4.3 +ruff==0.3.2 +setuptools==69.1.1 +Sphinx==7.1.2 +twine==5.0.0 +wheel==0.43.0 # What we need alabaster==0.7.13 -Babel==2.12.1 -bleach==6.0.0 -certifi==2023.5.7 -charset-normalizer==3.1.0 -click==8.1.3 -docutils==0.19 -idna==3.4 +Babel==2.14.0 +certifi==2024.2.2 +cffi==1.16.0 +charset-normalizer==3.3.2 +docutils==0.20.1 +idna==3.6 imagesize==1.4.1 -importlib-metadata==6.6.0 -jaraco.classes==3.2.3 -Jinja2==3.1.2 -keyring==23.13.1 -markdown-it-py==2.2.0 -MarkupSafe==2.1.2 +importlib_metadata==7.0.2 +jaraco.classes==3.3.1 +Jinja2==3.1.3 +keyring==24.3.1 +markdown-it-py==3.0.0 +MarkupSafe==2.1.5 mdurl==0.1.2 -more-itertools==9.1.0 -mypy-extensions==1.0.0 -packaging==23.1 -pathspec==0.11.1 -pkginfo==1.9.6 -platformdirs==3.5.1 +more-itertools==10.2.0 +nh3==0.2.15 +packaging==24.0 +pkginfo==1.10.0 pycparser==2.21 +Pygments==2.17.2 pyproject_hooks==1.0.0 -Pygments==2.15.1 -readme-renderer==37.3 -requests==2.30.0 +readme_renderer==43.0 +requests==2.31.0 requests-toolbelt==1.0.0 rfc3986==2.0.0 -rich==13.3.5 +rich==13.7.1 six==1.16.0 snowballstemmer==2.2.0 sphinxcontrib-applehelp==1.0.4 @@ -48,8 +43,7 @@ sphinxcontrib-htmlhelp==2.0.1 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 -urllib3==2.0.2 -webencodings==0.5.1 -zipp==3.15.0 +urllib3==2.2.1 +zipp==3.17.0 -r base.txt diff --git a/setup.py b/setup.py index 0ce1920..f4484da 100644 --- a/setup.py +++ b/setup.py @@ -2,6 +2,6 @@ setup( cffi_modules=[ - "./ada_url/ada_build.py:ffi_builder", + './ada_url/ada_build.py:ffi_builder', ], ) diff --git a/update_ada.py b/update_ada.py index 87eaaab..0dcf537 100644 --- a/update_ada.py +++ b/update_ada.py @@ -4,6 +4,7 @@ Run this script to pull in the latest version of `ada-url/ada` single header package. """ + from io import BytesIO from os.path import dirname, join from zipfile import ZipFile