Skip to content

Commit 19aa12d

Browse files
committed
Python: update deps and switch to ruff.
1 parent ef04e51 commit 19aa12d

File tree

4 files changed

+16
-56
lines changed

4 files changed

+16
-56
lines changed

python/requirements-dev.txt

Lines changed: 13 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#
2-
# This file is autogenerated by pip-compile
3-
# To update, run:
2+
# This file is autogenerated by pip-compile with Python 3.12
3+
# by the following command:
44
#
55
# pip-compile --output-file=requirements-dev.txt requirements.in/development.txt
66
#
@@ -11,13 +11,9 @@ attrs==21.4.0
1111
# openapi-python-client
1212
# pytest
1313
autoflake==1.4
14-
# via
15-
# -r requirements.in/development.txt
16-
# openapi-python-client
14+
# via openapi-python-client
1715
black==23.3.0
18-
# via
19-
# -r requirements.in/development.txt
20-
# openapi-python-client
16+
# via openapi-python-client
2117
build==0.10.0
2218
# via pip-tools
2319
certifi==2023.07.22
@@ -29,15 +25,6 @@ click==8.0.1
2925
# black
3026
# pip-tools
3127
# typer
32-
flake8-polyfill==1.0.2
33-
# via pep8-naming
34-
flake8-print==4.0.0
35-
# via -r requirements.in/development.txt
36-
flake8==3.9.2
37-
# via
38-
# -r requirements.in/development.txt
39-
# flake8-polyfill
40-
# flake8-print
4128
h11==0.12.0
4229
# via httpcore
4330
httpcore==0.15.0
@@ -53,23 +40,19 @@ idna==3.3
5340
iniconfig==1.1.1
5441
# via pytest
5542
isort==5.8.0
56-
# via
57-
# -r requirements.in/development.txt
58-
# openapi-python-client
43+
# via openapi-python-client
5944
jinja2==3.1.3
6045
# via
6146
# -r requirements.in/development.txt
6247
# openapi-python-client
6348
markupsafe==2.1.0
6449
# via jinja2
65-
mccabe==0.6.1
66-
# via flake8
50+
mypy==1.4.0
51+
# via -r requirements.in/development.txt
6752
mypy-extensions==1.0.0
6853
# via
6954
# black
7055
# mypy
71-
mypy==1.4.0
72-
# via -r requirements.in/development.txt
7356
openapi-python-client==0.14.1
7457
# via -r requirements.in/development.txt
7558
packaging==23.1
@@ -79,8 +62,6 @@ packaging==23.1
7962
# pytest
8063
pathspec==0.11.1
8164
# via black
82-
pep8-naming==0.11.1
83-
# via -r requirements.in/development.txt
8465
pip-tools==6.13.0
8566
# via -r requirements.in/development.txt
8667
platformdirs==3.5.1
@@ -89,45 +70,33 @@ pluggy==0.13.1
8970
# via pytest
9071
py==1.10.0
9172
# via pytest
92-
pycodestyle==2.7.0
93-
# via
94-
# flake8
95-
# flake8-print
96-
pydantic==1.10.0
73+
pydantic==1.10.13
9774
# via openapi-python-client
9875
pyflakes==2.3.1
99-
# via
100-
# autoflake
101-
# flake8
76+
# via autoflake
10277
pyproject-hooks==1.0.0
10378
# via build
10479
pytest==6.2.4
10580
# via -r requirements.in/development.txt
10681
python-dateutil==2.8.2
10782
# via openapi-python-client
108-
pyyaml==6.0
83+
pyyaml==6.0.1
10984
# via openapi-python-client
11085
rfc3986[idna2008]==1.5.0
11186
# via httpx
87+
ruff==0.4.8
88+
# via -r requirements.in/development.txt
11289
shellingham==1.4.0
11390
# via openapi-python-client
11491
six==1.16.0
115-
# via
116-
# flake8-print
117-
# python-dateutil
92+
# via python-dateutil
11893
sniffio==1.2.0
11994
# via
12095
# anyio
12196
# httpcore
12297
# httpx
12398
toml==0.10.2
12499
# via pytest
125-
tomli==2.0.1
126-
# via
127-
# black
128-
# build
129-
# mypy
130-
# pyproject-hooks
131100
typer==0.7.0
132101
# via openapi-python-client
133102
typing-extensions==4.6.3

python/requirements.in/development.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
autoflake
2-
black
3-
isort
4-
flake8
5-
flake8-print
6-
pep8-naming
1+
ruff
72
mypy>=1.4.0
83
pip-tools>=6.13.0
94
pytest

python/scripts/format.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#!/bin/sh -e
22
set -x
33

4-
autoflake --remove-all-unused-imports --recursive --remove-unused-variables --in-place svix --exclude=__init__.py
5-
isort svix
6-
black svix
4+
ruff format svix

python/scripts/lint.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,4 @@
33
set -ex
44

55
mypy svix
6-
isort --check-only svix
7-
black svix --check
8-
flake8 svix
6+
ruff check svix

0 commit comments

Comments
 (0)