Skip to content

Commit

Permalink
black -> ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
haliphax committed Mar 27, 2024
1 parent 5580f07 commit 63f6010
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 36 deletions.
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ repos:

- repo: local
hooks:
- id: ruff
- id: ruff-lint
name: Lint files with ruff
args: [check, --target-version, py311, --fix, --show-fixes]
args: [check, --fix, --show-fixes]
entry: ruff
language: system
types: [python]

- id: black
name: Format files with black
args: [-t, py311]
entry: black
- id: ruff-format
name: Format files with ruff
args: [format]
entry: ruff
language: system
types: [python]

Expand Down
1 change: 0 additions & 1 deletion requirements/dev.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
black
pre-commit
ruff
28 changes: 8 additions & 20 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,25 @@
#
# pip-compile dev.in
#
black==23.11.0
# via -r dev.in
cfgv==3.4.0
# via pre-commit
click==8.1.7
# via black
distlib==0.3.7
distlib==0.3.8
# via virtualenv
filelock==3.13.1
filelock==3.13.3
# via virtualenv
identify==2.5.31
identify==2.5.35
# via pre-commit
mypy-extensions==1.0.0
# via black
nodeenv==1.8.0
# via pre-commit
packaging==23.2
# via black
pathspec==0.11.2
# via black
platformdirs==3.11.0
# via
# black
# virtualenv
pre-commit==3.5.0
platformdirs==4.2.0
# via virtualenv
pre-commit==3.7.0
# via -r dev.in
pyyaml==6.0.1
# via pre-commit
ruff==0.1.4
ruff==0.3.4
# via -r dev.in
virtualenv==20.24.6
virtualenv==20.25.1
# via pre-commit

# The following packages are considered to be unsafe in a requirements file:
Expand Down
6 changes: 3 additions & 3 deletions requirements/docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
#
# pip-compile docs.in
#
mako==1.2.4
mako==1.3.2
# via pdoc3
markdown==3.5.1
markdown==3.6
# via pdoc3
markupsafe==2.1.3
markupsafe==2.1.5
# via mako
pdoc3==0.10.0
# via -r docs.in
12 changes: 6 additions & 6 deletions requirements/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ discord-pretty-help==2.0.7
# via -r requirements.in
discord-py==2.3.2
# via -r requirements.in
fastapi==0.109.2
fastapi==0.110.0
# via -r requirements.in
frozenlist==1.4.1
# via
Expand All @@ -42,30 +42,30 @@ multidict==6.0.5
# via
# aiohttp
# yarl
pydantic==2.6.1
pydantic==2.6.4
# via fastapi
pydantic-core==2.16.2
pydantic-core==2.16.3
# via pydantic
python-dotenv==1.0.1
# via uvicorn
pytz==2024.1
# via -r requirements.in
pyyaml==6.0.1
# via uvicorn
sniffio==1.3.0
sniffio==1.3.1
# via anyio
sqlitedict==2.1.0
# via -r requirements.in
starlette==0.36.3
# via fastapi
toml==0.10.2
# via -r requirements.in
typing-extensions==4.9.0
typing-extensions==4.10.0
# via
# fastapi
# pydantic
# pydantic-core
uvicorn[standard]==0.27.1
uvicorn[standard]==0.29.0
# via -r requirements.in
uvloop==0.19.0
# via uvicorn
Expand Down

0 comments on commit 63f6010

Please sign in to comment.