<commit_before>"""Static checking."""


# [ Imports ]
# [ -Python ]
from pathlib import Path
import logging
from typing import Sequence
# [ -Project ]
from .components.checker import Checker
from .components.watcher import Watcher
from .components.source_control import commit
from .interactors import config
from .interactors import cli
from .thin_types.command import Command


# [ Logging ]
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)


# XXX Better doc strings
# XXX Bump logging to warning
# XXX watch the config file by default
# XXX add unit tests
# [ Helpers ]
def get_paths() -> Sequence[Path]:
    """Return the paths to watch/check."""
    # XXX rename get_config to just get
    return [Path(p) for p in config.get_config('paths')]


def get_commands() -> Sequence[Command]:
    """Return the commands to run."""
    return [Command(*c) for c in config.get_config('checks')]<commit_msg>updating to warning logging only<commit_after>"""Static checking."""


# [ Imports ]
# [ -Python ]
from pathlib import Path
import logging
from typing import Sequence
# [ -Project ]
from .components.checker import Checker
from .components.watcher import Watcher
from .components.source_control import commit
from .interactors import config
from .interactors import cli
from .thin_types.command import Command


# [ Logging ]
logging.basicConfig(level=logging.WARN)
logger = logging.getLogger(__name__)


# XXX Better doc strings
# XXX watch the config file by default
# XXX add unit tests
# [ Helpers ]
def get_paths() -> Sequence[Path]:
    """Return the paths to watch/check."""
    # XXX rename get_config to just get
    return [Path(p) for p in config.get_config('paths')]


def get_commands() -> Sequence[Command]:
    """Return the commands to run."""
    return [Command(*c) for c in config.get_config('checks')]
{'fraction_non_alphanumeric': 0.10642895732036736, 'fraction_numerical': 0.0, 'mean_word_length': 4.431085043988269, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1523206', 'n_tokens_mistral': 541, 'n_tokens_neox': 514, 'n_words': 194}