ledatelescope / bifrost

A stream processing framework for high-throughput applications.
BSD 3-Clause "New" or "Revised" License
67 stars 29 forks source link

Fix DeprecationWarning: invalid escape sequence \d #236

Closed league closed 5 months ago

league commented 5 months ago

Two places where regexes used \d without being "raw" strings. The one in like_pmap was showing up in tests as:

like_pmap:95: DeprecationWarning: invalid escape sequence '\d'

~Though it's not yet clear to me how/why like_pmap is being imported into any tests...?~

league commented 5 months ago

For reference, like_pmap.py is being tested from test_scripts.py, with a glob over TOOLS_DIR.

jaycedowell commented 5 months ago

Yes, it's test_scripts.py that looks at those files. It's an attempt to use static analysis with pylint to find problems with the scripts without having to run them.