<commit_before>actions:
  black:
    run: black --check --diff {files}
    fix: black {files}
    include: "*.py"

  flake8:
    run: flake8 {files}
    include: "*.py"
    exclude: "docs/"

  sort-requirements:
    run: sort-requirements --check {files}
    fix: sort-requirements {files}
    include: "requirements/*.txt"

  eslint:
    run: yarn eslint {files}
    fix: yarn eslint --fix {files}
    include:
      - "*.js"
      - "*.jsx"
    exclude:
      - ".eslintrc.js"
shortcuts:
  lint:
    flags:
      - include-unstaged
      - include-untracked
  "lint:all":
    extends: lint
    flags: use-tracked-files
  fix:
    extends: lint
    flags: fix
  "fix:all":<commit_msg>Add yarn audit to therapist<commit_after>actions:
  black:
    run: black --check --diff {files}
    fix: black {files}
    include: "*.py"

  flake8:
    run: flake8 {files}
    include: "*.py"
    exclude: "docs/"

  sort-requirements:
    run: sort-requirements --check {files}
    fix: sort-requirements {files}
    include: "requirements/*.txt"

  eslint:
    run: yarn eslint {files}
    fix: yarn eslint --fix {files}
    include:
      - "*.js"
      - "*.jsx"
    exclude:
      - ".eslintrc.js"

  yarn-audit:
    run: yarn audit
shortcuts:
  lint:
    flags:
      - include-unstaged
      - include-untracked
  "lint:all":
    extends: lint
    flags: use-tracked-files
  fix:
    extends: lint
    flags: fix
  "fix:all":
{'fraction_non_alphanumeric': 0.1416490486257928, 'fraction_numerical': 0.0028188865398167725, 'mean_word_length': 2.1767337807606264, 'pattern_counts': {'":': 4, '<': 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': '4688036', 'n_tokens_mistral': 532, 'n_tokens_neox': 518, 'n_words': 129}