File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 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
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 : []
Original file line number Diff line number Diff 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
167167def get_min_max_y (points : Points ) -> MinMax :
Original file line number Diff line number Diff line change @@ -46,9 +46,9 @@ mindee =
4646[options.extras_require]
4747dev =
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
You can’t perform that action at this time.
0 commit comments