Skip to content

Commit e563b9a

Browse files
committed
pyproject.toml: use raw TOML strings for filterwarnings to avoid unreadable double escaping
1 parent ce8b8a7 commit e563b9a

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

pyproject.toml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -380,39 +380,39 @@ norecursedirs = [
380380
]
381381
strict = true
382382
filterwarnings = [
383-
"error",
384-
"default:Using or importing the ABCs:DeprecationWarning:unittest2.*",
383+
'error',
384+
'default:Using or importing the ABCs:DeprecationWarning:unittest2.*',
385385
# produced by older pyparsing<=2.2.0.
386-
"default:Using or importing the ABCs:DeprecationWarning:pyparsing.*",
387-
"default:the imp module is deprecated in favour of importlib:DeprecationWarning:nose.*",
386+
'default:Using or importing the ABCs:DeprecationWarning:pyparsing.*',
387+
'default:the imp module is deprecated in favour of importlib:DeprecationWarning:nose.*',
388388
# distutils is deprecated in 3.10, scheduled for removal in 3.12
389-
"ignore:The distutils package is deprecated:DeprecationWarning",
389+
'ignore:The distutils package is deprecated:DeprecationWarning',
390390
# produced by pytest-xdist
391-
"ignore:.*type argument to addoption.*:DeprecationWarning",
391+
'ignore:.*type argument to addoption.*:DeprecationWarning',
392392
# produced on execnet (pytest-xdist)
393-
"ignore:.*inspect.getargspec.*deprecated, use inspect.signature.*:DeprecationWarning",
393+
'ignore:.*inspect.getargspec.*deprecated, use inspect.signature.*:DeprecationWarning',
394394
# pytest's own futurewarnings
395-
"ignore::pytest.PytestExperimentalApiWarning",
395+
'ignore::pytest.PytestExperimentalApiWarning',
396396
# Do not cause SyntaxError for invalid escape sequences in py37.
397397
# Those are caught/handled by pyupgrade, and not easy to filter with the
398398
# module being the filename (with .py removed).
399-
"default:invalid escape sequence:DeprecationWarning",
399+
'default:invalid escape sequence:DeprecationWarning',
400400
# ignore not yet fixed warnings for hook markers
401-
"default:.*not marked using pytest.hook.*",
402-
"ignore:.*not marked using pytest.hook.*::xdist.*",
401+
'default:.*not marked using pytest.hook.*',
402+
'ignore:.*not marked using pytest.hook.*::xdist.*',
403403
# ignore use of unregistered marks, because we use many to test the implementation
404-
"ignore::_pytest.warning_types.PytestUnknownMarkWarning",
404+
'ignore::_pytest.warning_types.PytestUnknownMarkWarning',
405405
# https://github.com/benjaminp/six/issues/341
406-
"ignore:_SixMetaPathImporter\\.exec_module\\(\\) not found; falling back to load_module\\(\\):ImportWarning",
406+
'ignore:_SixMetaPathImporter\.exec_module\(\) not found; falling back to load_module\(\):ImportWarning',
407407
# https://github.com/benjaminp/six/pull/352
408-
"ignore:_SixMetaPathImporter\\.find_spec\\(\\) not found; falling back to find_module\\(\\):ImportWarning",
408+
'ignore:_SixMetaPathImporter\.find_spec\(\) not found; falling back to find_module\(\):ImportWarning',
409409
# https://github.com/pypa/setuptools/pull/2517
410-
"ignore:VendorImporter\\.find_spec\\(\\) not found; falling back to find_module\\(\\):ImportWarning",
410+
'ignore:VendorImporter\.find_spec\(\) not found; falling back to find_module\(\):ImportWarning',
411411
# https://github.com/pytest-dev/execnet/pull/127
412-
"ignore:isSet\\(\\) is deprecated, use is_set\\(\\) instead:DeprecationWarning",
412+
'ignore:isSet\(\) is deprecated, use is_set\(\) instead:DeprecationWarning',
413413
# https://github.com/pytest-dev/pytest/issues/2366
414414
# https://github.com/pytest-dev/pytest/pull/13057
415-
"default::pytest.PytestFDWarning",
415+
'default::pytest.PytestFDWarning',
416416
]
417417
pytester_example_dir = "testing/example_scripts"
418418
markers = [

0 commit comments

Comments
 (0)