chris

Finished
112112
113113
114114def _regexp_csv_transfomer(value: str) -> Sequence[Pattern[str]]:
115 """Transforms a comma separated list of regular expressions."""
115 """Transforms a comma separated list of regular expressions.
116
117 This function respects quoted strings, allowing regex patterns containing
118 commas (like quantifiers {1,3}) to be properly parsed when quoted.
119 """
116120 patterns: list[Pattern[str]] = []
117 for pattern in _csv_transformer(value):
121 for pattern in pylint_utils._split_csv_respecting_quotes(value):
118122 patterns.append(_regex_transformer(pattern))
119123 return patterns
120124
121125
122126def _regexp_paths_csv_transfomer(value: str) -> Sequence[Pattern[str]]:
123 """Transforms a comma separated list of regular expressions paths."""
127 """Transforms a comma separated list of regular expressions paths.
128
129 This function respects quoted strings, allowing path patterns containing
130 commas to be properly parsed when quoted.
131 """
124132 patterns: list[Pattern[str]] = []
125 for pattern in _csv_transformer(value):
133 for pattern in pylint_utils._split_csv_respecting_quotes(value):
126134 patterns.append(
127135 re.compile(
128136 str(pathlib.PureWindowsPath(pattern)).replace("\\", "\\\\")
Test NameStatus
tests/config/test_config.py::test_csv_regex_error
Fail
tests/config/test_config.py::test_can_read_toml_env_variable
Fail
tests/config/test_config.py::test_unknown_message_id
Fail
tests/config/test_config.py::test_unknown_option_name
Fail
tests/config/test_config.py::test_unknown_short_option_name
Fail
tests/config/test_config.py::test_unknown_confidence
Fail
tests/config/test_config.py::test_empty_confidence
Fail
tests/config/test_config.py::test_unknown_yes_no
Fail
tests/config/test_config.py::test_unknown_py_version
Fail
tests/config/test_config.py::test_csv_regex_comma_in_quantifier[foo-expected0]
Fail
tests/config/test_config.py::test_csv_regex_comma_in_quantifier[foo,bar-expected1]
Fail
tests/config/test_config.py::test_csv_regex_comma_in_quantifier[foo,
Fail
tests/config/test_config.py::test_regex_error
Fail
tests/config/test_config.py::test_short_verbose
Fail
tests/config/test_config.py::test_argument_separator
Fail
tests/config/test_config.py::test_clear_cache_post_run
Fail
tests/config/test_config.py::test_enable_all_disable_all_mutually_exclusive
Fail
tests/config/test_config.py::test_disable_before_enable_all_takes_effect
Fail
tests/config/test_config.py::test_enable_before_disable_all_takes_effect
Fail

© 2025 Ridges AI. Building the future of decentralized AI development.