<commit_before>[pytest]
addopts =
  # FIXME: Enable this once the test suite has no race conditions
  # `pytest-xdist`:
  # --numprocesses=auto

  # Show 10 slowest invocations:
  --durations=10

  # A bit of verbosity doesn't hurt:
  -v

  # Report all the things == -rxXs:
  -ra

  # Show values of the local vars in errors/tracebacks:
  --showlocals

  # Autocollect and invoke the doctests from all modules:
  # https://docs.pytest.org/en/stable/doctest.html
  --doctest-modules

  # Dump the test results in junit format:
  --junitxml=.tox/tmp/test-results/pytest/results.xml

  # Fail on config parsing warnings:
  --strict-config

  # Fail on non-existing markers:
  # * Deprecated since v6.2.0 but may be reintroduced later covering a
  #   broader scope:
  # --strict
  # * Exists since v4.5.0 (advised to be used instead of `--strict`):
  --strict-markers

  # `pytest-cov`:
  # `pytest-cov`, "-p" preloads the module early:
  -p pytest_cov
  --no-cov-on-fail
  --cov=proxy
  --cov=tests/
  --cov-branch
  --cov-report=term-missing:skip-covered
  --cov-report=html:.tox/tmp/test-results/pytest/cov/
  --cov-report=xml
  --cov-context=test
  --cov-config=.coveragerc

doctest_optionflags = ALLOW_UNICODE ELLIPSIS

# Marks tests with an empty parameterset as xfail(run=False)
empty_parameter_set_mark = xfail

faulthandler_timeout = 30

filterwarnings =
  error

junit_duration_report = call
# xunit1 contains more metadata than xunit2 so it's better for CI UIs:
junit_family = xunit1
junit_logging = all
junit_log_passing_tests = true
junit_suite_name = proxy_py_test_suite

# A mapping of markers to their descriptions allowed in strict mode:
markers =

minversion = 6.2.0

# Optimize pytest's lookup by restricting potentially deep dir tree scan:
norecursedirs =
  build
  dist
  docs
  examples
  proxy.egg-info
  .cache
  .eggs
  .git
  .github
  .tox<commit_msg>Ignore a `DeprecationWarning` in `pytest` config (#683)<commit_after>[pytest]
addopts =
  # FIXME: Enable this once the test suite has no race conditions
  # `pytest-xdist`:
  # --numprocesses=auto

  # Show 10 slowest invocations:
  --durations=10

  # A bit of verbosity doesn't hurt:
  -v

  # Report all the things == -rxXs:
  -ra

  # Show values of the local vars in errors/tracebacks:
  --showlocals

  # Autocollect and invoke the doctests from all modules:
  # https://docs.pytest.org/en/stable/doctest.html
  --doctest-modules

  # Dump the test results in junit format:
  --junitxml=.tox/tmp/test-results/pytest/results.xml

  # Fail on config parsing warnings:
  --strict-config

  # Fail on non-existing markers:
  # * Deprecated since v6.2.0 but may be reintroduced later covering a
  #   broader scope:
  # --strict
  # * Exists since v4.5.0 (advised to be used instead of `--strict`):
  --strict-markers

  # `pytest-cov`:
  # `pytest-cov`, "-p" preloads the module early:
  -p pytest_cov
  --no-cov-on-fail
  --cov=proxy
  --cov=tests/
  --cov-branch
  --cov-report=term-missing:skip-covered
  --cov-report=html:.tox/tmp/test-results/pytest/cov/
  --cov-report=xml
  --cov-context=test
  --cov-config=.coveragerc

doctest_optionflags = ALLOW_UNICODE ELLIPSIS

# Marks tests with an empty parameterset as xfail(run=False)
empty_parameter_set_mark = xfail

faulthandler_timeout = 30

filterwarnings =
  error

  # FIXME: Address the deprecation warning in Python 3.10 and revert this ignore
  ignore:There is no current event loop:DeprecationWarning:proxy.core.acceptor.threadless

junit_duration_report = call
# xunit1 contains more metadata than xunit2 so it's better for CI UIs:
junit_family = xunit1
junit_logging = all
junit_log_passing_tests = true
junit_suite_name = proxy_py_test_suite

# A mapping of markers to their descriptions allowed in strict mode:
markers =

minversion = 6.2.0

# Optimize pytest's lookup by restricting potentially deep dir tree scan:
norecursedirs =
  build
  dist
  docs
  examples
  proxy.egg-info
  .cache
  .eggs
  .git
  .github
  .tox
{'fraction_non_alphanumeric': 0.09984871406959153, 'fraction_numerical': 0.01059001512859304, 'mean_word_length': 3.402885682574917, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1393312', 'n_tokens_mistral': 1437, 'n_tokens_neox': 1377, 'n_words': 395}