Skip to content

Commit 86935ff

Browse files
committed
ci: use ruff as formatter instead of black
1 parent 66a90da commit 86935ff

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

.github/workflows/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
pip install pytest
4848
pytest -v
4949
- name: Upload wheels
50-
uses: actions/upload-artifact@v3
50+
uses: actions/upload-artifact@v4.6.2
5151
with:
5252
name: wheels
5353
path: dist

.pre-commit-config.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ repos:
2020
hooks:
2121
- id: ruff
2222
args: ["--fix"]
23-
- repo: https://github.com/psf/black
24-
rev: 23.7.0
25-
hooks:
26-
- id: black
27-
args: [--config=./pyproject.toml]
2823
- repo: https://github.com/codespell-project/codespell
2924
rev: v2.2.5
3025
hooks:

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ exclude = ["**/uv.lock"]
5656
[tool.ruff]
5757
line-length = 120
5858
target-version = "py38"
59+
60+
[tool.ruff.lint]
5961
select = [
6062
"A", # flake8-builtins
6163
"B", # flake8-bugbear
@@ -104,8 +106,8 @@ ignore = [
104106
"D107", # pydocstyle - missing docstring in __init__
105107
"D202", # pydocstyle - no blank lines allowed after function docstring
106108
"D205", # pydocstyle - 1 blank line required between summary line and description
109+
"D203", # pydocstyle - incompatible with D211
107110
"D415", # pydocstyle - first line should end with a period, question mark, or exclamation point
108-
"E501", # pycodestyle line too long, handled by black
109111
"N818", # pep8-naming - exception name should be named with an Error suffix
110112
"S311", # flake8-bandit - Standard pseudo-random generators are not suitable for security/cryptographic purposes
111113
"S101", # asserts

tests/test_parse_qsl.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from urllib.parse import parse_qsl, urlencode
33

44
import pytest
5+
56
from fast_query_parsers import parse_query_string
67

78

0 commit comments

Comments
 (0)