<commit_before># This workflow runs flake8 and pylint through the check-codestyle.py script for every pull request

name: Check code style

on:
  pull_request:
    branches: [ "**" ]

jobs:
  check:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2

    - name: Set up Python 3.8
      uses: actions/setup-python@v2
      with:
        python-version: 3.8

    - name: Install dependencies via apt
      run: sudo apt-get install libldap2-dev libsasl2-dev libmariadb-dev-compat

    - name: Install dependencies via pip
      run: |
        python -m pip install --upgrade pip
        pip install -r src/requirements.txt -r src/requirements_dev.txt

    - name: Run codestyle checker
      run: python ./scripts/check-codestyle.py<commit_msg>run apt update in github action<commit_after># This workflow runs flake8 and pylint through the check-codestyle.py script for every pull request

name: Check code style

on:
  pull_request:
    branches: [ "**" ]

jobs:
  check:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2

    - name: Set up Python 3.8
      uses: actions/setup-python@v2
      with:
        python-version: 3.8

    - name: Install dependencies via apt
      run: |
        sudo apt-get update
        sudo apt-get install libldap2-dev libsasl2-dev libmariadb-dev-compat

    - name: Install dependencies via pip
      run: |
        python -m pip install --upgrade pip
        pip install -r src/requirements.txt -r src/requirements_dev.txt

    - name: Run codestyle checker
      run: python ./scripts/check-codestyle.py
{'fraction_non_alphanumeric': 0.08470290771175727, 'fraction_numerical': 0.011378002528445006, 'mean_word_length': 2.44880174291939, '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': '393681', 'n_tokens_mistral': 518, 'n_tokens_neox': 491, 'n_words': 159}