[hacking] N373 do not use eventlet primitives

Add a new hacking check to prevent adding Eventlet concurrency
primitives where the stdlib one is equivalent.

Right now only eventlet/greenthread.sleep is checked but as we progress
with the transformation we will add more primitives.

Change-Id: I1310bb7a8c8133364060eb8814226cab52219171
This commit is contained in:
Balazs Gibizer
2025-04-15 17:54:55 +02:00
parent 3946a94538
commit a0dc4e8516
4 changed files with 39 additions and 0 deletions
+2
View File
@@ -77,6 +77,8 @@ Nova Specific Commandments
- [N370] Don't use or import six
- [N371] You must explicitly import python's mock: ``from unittest import mock``
- [N372] Don't use the setDaemon method. Use the daemon attribute instead.
- [N373] Don't use eventlet specific concurrency primitives. Use the one
from stdlib instead. E.g. eventlet.sleep => time.sleep
Creating Unit Tests
-------------------