1
0

Ruff
All checks were successful
Python Ruff Code Quality / ruff (push) Successful in 22s
Run Python tests (through Pytest) / Test (push) Successful in 25s
Verify Python project can be installed, loaded and have version checked / Test (push) Successful in 22s

This commit is contained in:
Jon Michael Aanes 2024-11-21 19:39:55 +01:00
parent d71db727d5
commit 10f71be39b
Signed by: Jmaa
SSH Key Fingerprint: SHA256:Ab0GfHGCblESJx7JRE4fj4bFy/KRpeLhi41y4pF3sNA

View File

@ -211,14 +211,15 @@ RE_ID = r'@?([^\s/]+)'
RE_DUAL_ID = r'@?([^\s/]+/[^\s/]+)' RE_DUAL_ID = r'@?([^\s/]+/[^\s/]+)'
RE_ANY_SUBPATH = r'(|\/|\/\S*)$' RE_ANY_SUBPATH = r'(|\/|\/\S*)$'
SPECIAL_REGEX_LITERALS = frozenset({RE_ID, RE_DUAL_ID, RE_ANY_SUBPATH, SPECIAL_REGEX_LITERALS = frozenset(
RE_ID_AT, RE_ID_NOAT}) {RE_ID, RE_DUAL_ID, RE_ANY_SUBPATH, RE_ID_AT, RE_ID_NOAT},
)
REGEX_LITERALS_TO_FORMATTER = { REGEX_LITERALS_TO_FORMATTER = {
RE_ID: '{id}', RE_ID: '{id}',
RE_ID_AT: '@{id}', RE_ID_AT: '@{id}',
RE_ID_NOAT: '{id}', RE_ID_NOAT: '{id}',
RE_DUAL_ID: '{id}', RE_DUAL_ID: '{id}',
RE_ANY_SUBPATH: '', RE_ANY_SUBPATH: '',
} }
DOES_NOT_NEED_AUTO_SLASH = frozenset({RE_ANY_SUBPATH}) DOES_NOT_NEED_AUTO_SLASH = frozenset({RE_ANY_SUBPATH})