Skip to content

Commit 01db0bc

Browse files
committed
use ruff instead of pylama
1 parent e4c48a7 commit 01db0bc

4 files changed

Lines changed: 49 additions & 68 deletions

File tree

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,15 @@ pyvecorg = "pyvecorg.__main__:main"
2424
[dependency-groups]
2525
dev = [
2626
"jsonschema",
27-
"pylama",
2827
"pytest",
28+
"pytest-ruff",
29+
"ruff",
2930
"setuptools<82",
3031
]
3132

33+
[tool.pytest.ini_options]
34+
addopts = "--ruff"
35+
3236
[tool.uv]
3337
default-groups = ["dev"]
3438

src/pyvecorg/avatars.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def get_gravatar_url(email):
3131
try:
3232
requests.head(url).raise_for_status()
3333
return url
34-
except:
34+
except requests.RequestException:
3535
return None
3636

3737

tests/test_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
STATIC_PATH = os.path.join(DATA_PATH, '..', 'static')
1616
RE_MISSING_LANG = re.compile(
17-
f"'(" +
17+
"'(" +
1818
'|'.join([re.escape(lang) for lang in SUPPORTED_LANGS]) +
1919
")' is a required property"
2020
)

uv.lock

Lines changed: 42 additions & 65 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)