<commit_before><commit_msg>#7 added pre-commit hooks<commit_after>repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.3.0
    hooks:
      - id: trailing-whitespace
      - id: end-of-file-fixer
      - id: check-yaml
      - id: check-added-large-files
      - id: check-toml
  - repo: https://github.com/asottile/pyupgrade
    rev: v3.1.0
    hooks:
      - id: pyupgrade
        args: [--py310-plus]
  - repo: https://github.com/adamchainz/django-upgrade
    rev: 1.11.0
    hooks:
      - id: django-upgrade
        args: [--target-version, "4.1"]
  - repo: https://github.com/psf/black
    # black config is in pyproject.toml
    rev: 22.10.0
    hooks:
      - id: black
        language_version: python3.11
        exclude: ^docs
  - repo: https://github.com/timothycrosley/isort
    # isort config in pyproject.toml does not work FIXME
    rev: 5.10.1
    hooks:
      - id: isort
        language_version: python3
        args: [--profile=black, --line-length=120]
  - repo: https://gitlab.com/pycqa/flake8
    # flake8 config is in .flake8
    rev: 3.9.2
    hooks:
      - id: flake8
        language_version: python3
        exclude: ^docs
  - repo: https://github.com/rtts/djhtml
    rev: "v1.5.2"  # replace with the latest tag on GitHub
    hooks:
      - id: djhtml
        args: [-t, "2"]
{'fraction_non_alphanumeric': 0.13544018058690746, 'fraction_numerical': 0.03310759969902182, 'mean_word_length': 1.9621380846325167, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 7, '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': '1036431', 'n_tokens_mistral': 503, 'n_tokens_neox': 489, 'n_words': 107}