<commit_before># Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
"""Tests ensuring codebase style compliance for Python."""

from framework import utils


def test_python_style():
    """
    Test that python code passes style checks.

    @type: style
    """
    # Runs command
    utils.run_cmd("black . --check")<commit_msg>If black fails, add diff output<commit_after># Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
"""Tests ensuring codebase style compliance for Python."""

from framework import utils


def test_python_style():
    """
    Test that python code passes style checks.

    @type: style
    """
    # Runs command
    utils.run_cmd("black . --check --diff")
{'fraction_non_alphanumeric': 0.11055900621118013, 'fraction_numerical': 0.014906832298136646, 'mean_word_length': 3.5027932960893855, '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': '6878938', 'n_tokens_mistral': 233, 'n_tokens_neox': 222, 'n_words': 83}