<commit_before>##################
#  Config tests  #
##################
[tool.pytest.ini_options]
minversion = "6.0"
#addopts = "--cov --cov-report term-missing"
addopts = """tests --cov dapper
    --ignore=tests/test_plotting.py
    --ignore=tests/test_demos.py
    --ignore=dapper/mods/QG
--doctest-modules dapper
    --ignore-glob=**/autoscaler.py
    --ignore-glob=**/demo.py
    --ignore-glob=**/illust_*.py
    --ignore-glob=dapper/mods/KS/compare_schemes.py
    --ignore=dapper/mods/explore_props.py
"""

[tool.coverage.run]
branch = true # stricter
source = ["dapper"]
#omit = ["bad_file.py"]

[tool.coverage.report]
ignore_errors = true
exclude_lines = [
    "pragma: no cover",
    "def __repr__",
    "if self.debug",
    "raise AssertionError",
    "raise NotImplementedError",
    "if 0:",
    "if __name__ == .__main__.:"
]

[tool.tox]
legacy_tox_ini = """
[tox]<commit_msg>Enable running single test. Closes #47<commit_after>##################
#  Config tests  #
##################
[tool.pytest.ini_options]
minversion = "6.0"
# Since `--doctest-modules` requires specifying `dapper`,
# it means pytest won't discover `test` dir on its own.
# So to run all tests, do `pytest tests`. You can also append
# `test_plotting.py` for example, which is otherwise ignored for being slow.
addopts = """
    --ignore=tests/test_plotting.py
    --ignore=tests/test_demos.py
--doctest-modules dapper
    --ignore-glob=**/autoscaler.py
    --ignore-glob=**/demo.py
    --ignore-glob=**/illust_*.py
    --ignore-glob=dapper/mods/KS/compare_schemes.py
    --ignore=dapper/mods/explore_props.py
"""

[tool.coverage.run]
branch = true # stricter
source = ["dapper"]
#omit = ["bad_file.py"]

[tool.coverage.report]
ignore_errors = true
exclude_lines = [
    "pragma: no cover",
    "def __repr__",
    "if self.debug",
    "raise AssertionError",
    "raise NotImplementedError",
    "if 0:",
    "if __name__ == .__main__.:"
]

[tool.tox]
legacy_tox_ini = """
[tox]
{'fraction_non_alphanumeric': 0.19663779928680591, 'fraction_numerical': 0.004075394803871625, 'mean_word_length': 3.578088578088578, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '1723072', 'n_tokens_mistral': 730, 'n_tokens_neox': 721, 'n_words': 143}