Skip to content

Commit 1476c1d

Browse files
committed
update deps
1 parent fe6a3e1 commit 1476c1d

File tree

4 files changed

+18
-20
lines changed

4 files changed

+18
-20
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.2.2
3+
rev: v0.3.3
44
hooks:
55
- id: ruff
66
args: [ --fix ]
77
- id: ruff-format
88

99
- repo: https://github.com/RobertCraigie/pyright-python
10-
rev: v1.1.351
10+
rev: v1.1.354
1111
hooks:
1212
- id: pyright
1313

blendmodes/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
"""Use this module to apply a number of blending modes to a background and foreground image.
2-
"""
1+
"""Use this module to apply a number of blending modes to a background and foreground image."""

pyproject.toml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,18 @@ Pillow = "<11,>=10.2.0"
2626
numpy = "<2,>=1.26.4"
2727
aenum = "<4,>=3.1.15"
2828

29-
3029
[tool.poetry.group.dev.dependencies]
3130
imgcompare = "^2.0.1"
32-
pytest = "^8.0.2"
31+
pytest = "^8.1.1"
3332
handsdown = "^2.1.0"
34-
coverage = "^7.4.3"
33+
coverage = "^7.4.4"
3534
ruff = "^0.2.2"
36-
pyright = "^1.1.351"
35+
pyright = "^1.1.354"
3736

3837
[build-system]
3938
requires = ["poetry-core"]
4039
build-backend = "poetry.core.masonry.api"
4140

42-
43-
4441
[tool.ruff]
4542
line-length = 100
4643
indent-width = 4
@@ -49,26 +46,28 @@ target-version = "py38"
4946
[tool.ruff.lint]
5047
select = ["ALL"]
5148
ignore = [
52-
"ANN101", # type annotation for self in method
53-
"COM812", # enforce trailing comma
49+
"ANN101", # type annotation for self in method
50+
"COM812", # enforce trailing comma
5451
"D2", # pydocstyle formatting
55-
"N", # pep8 naming
56-
"PLR09", # pylint refactor too many
57-
"TCH", # type check blocks
58-
"W191" # ignore this to allow tabs
52+
"ISC001",
53+
"N", # pep8 naming
54+
"PLR09", # pylint refactor too many
55+
"TCH", # type check blocks
56+
"W191" # ignore this to allow tabs
5957
]
6058
fixable = ["ALL"]
6159

62-
6360
[tool.ruff.lint.per-file-ignores]
6461
"**/{tests,docs,tools}/*" = ["D", "S101", "E402"]
6562

63+
[tool.ruff.lint.flake8-tidy-imports]
64+
ban-relative-imports = "all" # Disallow all relative imports.
65+
6666
[tool.ruff.format]
6767
indent-style = "tab"
6868
docstring-code-format = true
6969
line-ending = "lf"
7070

71-
7271
[tool.pyright]
7372
venvPath = "."
7473
venv = ".venv"

tests/test_main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
from imgcompare import imgcompare
99
from PIL import Image
1010

11-
THISDIR = str(Path(__file__).resolve().parent)
12-
sys.path.insert(0, str(Path(THISDIR).parent))
11+
THISDIR = Path(__file__).resolve().parent
12+
sys.path.insert(0, str(THISDIR.parent))
1313

1414
from blendmodes.blend import BlendType, blendLayers
1515

0 commit comments

Comments
 (0)