Skip to content

Commit 8497b81

Browse files
committed
⬆️ update some dev dependencies
1 parent b5c823a commit 8497b81

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ repos:
2222
]
2323

2424
- repo: https://github.com/PyCQA/pylint
25-
rev: v2.16.1
25+
rev: v2.17.1
2626
hooks:
2727
- id: pylint
2828
name: pylint
@@ -34,7 +34,7 @@ repos:
3434
]
3535

3636
- repo: https://github.com/pre-commit/mirrors-mypy
37-
rev: v1.0.0
37+
rev: v1.0.1
3838
hooks:
3939
- id: mypy
4040
args: []

mindee/geometry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ def get_centroid(points: Points) -> Point:
158158
:param points: Polygon to process.
159159
:return: The centroid
160160
"""
161-
numb_vertices = len(points)
161+
vertices_count = len(points)
162162
x_sum = sum(x for x, _ in points)
163163
y_sum = sum(y for _, y in points)
164-
return Point(x_sum / numb_vertices, y_sum / numb_vertices)
164+
return Point(x_sum / vertices_count, y_sum / vertices_count)
165165

166166

167167
def get_min_max_y(points: Points) -> MinMax:

setup.cfg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ mindee =
4646
[options.extras_require]
4747
dev =
4848
black==23.1.0
49-
mypy==1.0.0
50-
pip-tools~=6.12.2
51-
pylint==2.16.1
49+
mypy==1.0.1
50+
pip-tools~=6.12.3
51+
pylint==2.17.1
5252
setuptools==51.3.3
5353
isort==5.11.5
5454
pre-commit~=2.21.0

0 commit comments

Comments
 (0)