Skip to content

Commit 666418a

Browse files
authored
Switch from flake8 and black to ruff, upgrade dependencies (#62)
1 parent 91a641e commit 666418a

File tree

6 files changed

+41
-41
lines changed

6 files changed

+41
-41
lines changed

Makefile

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@ requirements:
44

55
.PHONY: check
66
check:
7-
black --check .
8-
ruff .
7+
ruff check .
98

109
.PHONY: format
1110
format:
12-
black .
11+
ruff format .
1312

1413
.PHONY: coverage
1514
coverage:

pyproject.toml

+7-1
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,20 @@ target-version = ['py38']
88
skip-string-normalization = true
99

1010
[tool.ruff]
11-
select = ["E", "F"]
1211
line-length = 88
1312
target-version = "py38"
1413
exclude = [
1514
".git",
1615
".ruff_cache",
1716
]
1817

18+
[tool.ruff.format]
19+
quote-style = "single"
20+
21+
[tool.ruff.lint]
22+
select = ["E", "F"]
23+
ignore = ["E501"]
24+
1925
[tool.cibuildwheel]
2026
build = [
2127
"cp38-*",

requirements/base.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# What we want
2-
cffi==1.15.1
2+
cffi==1.16.0
33

44
# What we need
55
pycparser==2.21

requirements/development.txt

+29-35
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,40 @@
11
# What we want
2-
build==0.10.0
3-
black==23.3.0
4-
cffi==1.15.1
5-
coverage==7.2.5
6-
ruff==0.0.267
7-
setuptools==67.7.2
8-
Sphinx==7.0.0
9-
twine==4.0.2
10-
wheel==0.40.0
2+
build==1.1.1
3+
coverage==7.4.3
4+
ruff==0.3.2
5+
setuptools==69.1.1
6+
Sphinx==7.1.2
7+
twine==5.0.0
8+
wheel==0.43.0
119

1210
# What we need
1311
alabaster==0.7.13
14-
Babel==2.12.1
15-
bleach==6.0.0
16-
certifi==2023.5.7
17-
charset-normalizer==3.1.0
18-
click==8.1.3
19-
docutils==0.19
20-
idna==3.4
12+
Babel==2.14.0
13+
certifi==2024.2.2
14+
cffi==1.16.0
15+
charset-normalizer==3.3.2
16+
docutils==0.20.1
17+
idna==3.6
2118
imagesize==1.4.1
22-
importlib-metadata==6.6.0
23-
jaraco.classes==3.2.3
24-
Jinja2==3.1.2
25-
keyring==23.13.1
26-
markdown-it-py==2.2.0
27-
MarkupSafe==2.1.2
19+
importlib_metadata==7.0.2
20+
jaraco.classes==3.3.1
21+
Jinja2==3.1.3
22+
keyring==24.3.1
23+
markdown-it-py==3.0.0
24+
MarkupSafe==2.1.5
2825
mdurl==0.1.2
29-
more-itertools==9.1.0
30-
mypy-extensions==1.0.0
31-
packaging==23.1
32-
pathspec==0.11.1
33-
pkginfo==1.9.6
34-
platformdirs==3.5.1
26+
more-itertools==10.2.0
27+
nh3==0.2.15
28+
packaging==24.0
29+
pkginfo==1.10.0
3530
pycparser==2.21
31+
Pygments==2.17.2
3632
pyproject_hooks==1.0.0
37-
Pygments==2.15.1
38-
readme-renderer==37.3
39-
requests==2.30.0
33+
readme_renderer==43.0
34+
requests==2.31.0
4035
requests-toolbelt==1.0.0
4136
rfc3986==2.0.0
42-
rich==13.3.5
37+
rich==13.7.1
4338
six==1.16.0
4439
snowballstemmer==2.2.0
4540
sphinxcontrib-applehelp==1.0.4
@@ -48,8 +43,7 @@ sphinxcontrib-htmlhelp==2.0.1
4843
sphinxcontrib-jsmath==1.0.1
4944
sphinxcontrib-qthelp==1.0.3
5045
sphinxcontrib-serializinghtml==1.1.5
51-
urllib3==2.0.2
52-
webencodings==0.5.1
53-
zipp==3.15.0
46+
urllib3==2.2.1
47+
zipp==3.17.0
5448

5549
-r base.txt

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
setup(
44
cffi_modules=[
5-
"./ada_url/ada_build.py:ffi_builder",
5+
'./ada_url/ada_build.py:ffi_builder',
66
],
77
)

update_ada.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
Run this script to pull in the latest version of `ada-url/ada` single
55
header package.
66
"""
7+
78
from io import BytesIO
89
from os.path import dirname, join
910
from zipfile import ZipFile

0 commit comments

Comments
 (0)