<commit_before># Work around for virtualenv with python=3.10
# https://github.com/pre-commit/pre-commit/issues/1375
default_language_version:
  python: python3

fail_fast: false
repos:
- repo: https://github.com/pocc/pre-commit-hooks
  rev: v1.3.5
  hooks:
  - id: clang-format
    args: ["-i", "--style=file"]  # Use style set in .clang-format
    files: ^src/
    exclude: src/msg_database.c  # Skip too large file to wait every time
  - id: clang-tidy
    files: ^src/
  # - id: oclint
  #   files: ^src/
  # - id: uncrustify
  #   files: ^src/
  #   args: ["--replace"]
  # - id: cppcheck
  #   files: ^src/
  # - id: cpplint
  #   files: ^src/
  # - id: include-what-you-use
  #   files: ^src/
<commit_msg>Set python/_spglib.c under clang-format in pre-commit<commit_after># Work around for virtualenv with python=3.10
# https://github.com/pre-commit/pre-commit/issues/1375
default_language_version:
  python: python3

fail_fast: false
repos:
- repo: https://github.com/pocc/pre-commit-hooks
  rev: v1.3.5
  hooks:
  - id: clang-format
    args: ["-i", "--style=file"]  # Use style set in .clang-format
    files: |
      (?x)^(
        ^src/.+\.(c|h)|
        ^python/_spglib.c
      )$
    exclude: src/msg_database.c  # Skip too large file to wait every time
  - id: clang-tidy
    files: ^src/
  # - id: oclint
  #   files: ^src/
  # - id: uncrustify
  #   files: ^src/
  #   args: ["--replace"]
  # - id: cppcheck
  #   files: ^src/
  # - id: cpplint
  #   files: ^src/
  # - id: include-what-you-use
  #   files: ^src/

{'fraction_non_alphanumeric': 0.16143790849673204, 'fraction_numerical': 0.01437908496732026, 'mean_word_length': 2.4250559284116333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '4856186', 'n_tokens_mistral': 613, 'n_tokens_neox': 604, 'n_words': 141}