Skip to content

Commit f68027b

Browse files
committed
bump dev dependencies and update config
... and commit formatting changes caused by this
1 parent 12d16d9 commit f68027b

6 files changed

+13
-14
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ docker-shell:
4747

4848
.PHONY: lint-fix
4949
lint-fix:
50-
ruff --fix ./app
50+
ruff check --fix ./app
5151
black ./app
5252
# mypy has no fix mode, we run it anyway to report (unfixable) errors
5353
mypy ./app
5454

5555
.PHONY: lint-check
5656
lint-check:
57-
ruff ./app
57+
ruff check ./app
5858
black -S --check --diff app
5959
mypy ./app

app/converters/db_connect_ttl_fixes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
All rights reserved.
55
"""
66

7-
from typing import List, Union, cast
7+
from typing import Union
88

99
from app.base_converter import BaseConverter
1010

app/converters/gbfs_nextbike_vehicle_availabilities.py

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
All rights reserved.
55
"""
66

7-
from typing import Any
8-
97
from app.base_converter import BaseConverter
108
from app.utils.gbfs_util import update_stations_availability_status
119

app/utils/gbfs_util.py

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Copyright (c) 2023, systect Holger Bruch
44
All rights reserved.
55
"""
6+
67
import logging
78
from collections import Counter
89
from typing import Any, Callable, Dict, List, Optional

pyproject.toml

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ line-length = 140
33
skip-string-normalization = 1
44

55
[tool.ruff]
6-
select = [
6+
lint.select = [
77
"E", # pycodestyle errors
88
"W", # pycodestyle warnings
99
"F", # pyflakes
@@ -16,17 +16,17 @@ select = [
1616
"B", # flake8-bugbear
1717
]
1818

19-
ignore = [
19+
lint.ignore = [
2020
"E501", # line too long, handled by black
2121
"B008", # do not perform function calls in argument defaults
2222
"C901", # too complex
2323
"F401", # imported but unused
2424
"S101", # use of assert detected
2525
]
2626

27-
fixable = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT"]
27+
lint.fixable = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT"]
2828

29-
exclude = [
29+
lint.exclude = [
3030
".bzr",
3131
".direnv",
3232
".eggs",
@@ -51,10 +51,10 @@ exclude = [
5151

5252
line-length = 140
5353

54-
[tool.ruff.per-file-ignores]
54+
[tool.ruff.lint.per-file-ignores]
5555
"__init__.py" = ["F401"]
5656

57-
[tool.ruff.flake8-quotes]
57+
[tool.ruff.lint.flake8-quotes]
5858
inline-quotes = "single"
5959
multiline-quotes = "single"
6060
docstring-quotes = "double"

requirements-dev.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ruff~=0.4.1
2-
black~=23.12.0
3-
mypy~=1.9.0
1+
ruff~=0.4.8
2+
black~=24.4.2
3+
mypy~=1.10.0
44
types-pyyaml~=6.0.12.12

0 commit comments

Comments
 (0)