fix: use remove()
instead of difference()
for self collision checks
#2404
ruff.yaml
on: push
ruff-format
4s
ruff-check
7s