Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,3 @@ repos:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: local
hooks:
- id: format
name: format
entry: rye fmt
language: system
types: [python]
- id: lint
name: lint
entry: rye lint
language: system
types: [python]
Comment on lines -8 to -19
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не очень понял, чем Вас не устроил этот кусок конфига. Поэтому надеюсь, что Вы добавите еще какие-то комментарии к этому изменению.

P.s. В противном случае у меня рука не поднимется влить Ваши изменения)

6 changes: 6 additions & 0 deletions tests/test_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ def test_concrete_case(self):
(10000, 2, 8, 1, 1000, 1000, const.EUCLIDEAN_DISTANCE),
(10000, 2, 8, 1, 1500, 2000, const.EUCLIDEAN_DISTANCE),
(50000, 2, 8, 1, 1000, 1000, const.EUCLIDEAN_DISTANCE),
# other metrics + change order between r0 and r1
(10, 2, 2, 1, 100, 100, const.CHEBYSHEV_DISTANCE),
(10, 8, 2, 1, 100, 100, const.MANHATTAN_DISTANCE),
# map corner cases: 1x1 map, "line" map
(100000, 1, 1, 1, 1, 1, const.EUCLIDEAN_DISTANCE),
(10000, 10, 1, 1, 1000, 1, const.EUCLIDEAN_DISTANCE),
],
)
def test_primitive_func(self, N, R0, R1, RADIUS, WIDTH, HEIGHT, distance_type):
Expand Down
5 changes: 5 additions & 0 deletions tests/test_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ def move_line(
(42, 17, 15),
(59, 10, 45),
(1, 2, 10),
# some corner cases
(1, 1, 100000),
(0, 0, 1),
(-100, -100, -1),
(10, 50, 0),
],
)
def test_move_radius(self, x: int, y: int, move_radius: int):
Expand Down
Loading