<commit_before>import flake8.defaults
import flake8.main.application

from exchangelib.errors import ErrorAccessDenied, ErrorFolderNotFound, ErrorItemNotFound, ErrorInvalidOperation, \
    ErrorNoPublicFolderReplicaAvailable
from exchangelib.properties import EWSElement

from .common import EWSTest, TimedTestCase


class StyleTest(TimedTestCase):
    def test_flake8(self):
        import exchangelib
        flake8.defaults.MAX_LINE_LENGTH = 120
        app = flake8.main.application.Application()
        app.run(exchangelib.__path__)<commit_msg>Disable multiprocessing in flake8 tests - doesn't work well with multiproces test runners<commit_after>import flake8.defaults
import flake8.main.application

from exchangelib.errors import ErrorAccessDenied, ErrorFolderNotFound, ErrorItemNotFound, ErrorInvalidOperation, \
    ErrorNoPublicFolderReplicaAvailable
from exchangelib.properties import EWSElement

from .common import EWSTest, TimedTestCase


class StyleTest(TimedTestCase):
    def test_flake8(self):
        import exchangelib
        flake8.defaults.MAX_LINE_LENGTH = 120
        app = flake8.main.application.Application()
        app.run(exchangelib.__path__ + ['-j', '0'])  # Multiprocessing doesn't work with parallel tests runners
{'fraction_non_alphanumeric': 0.0648, 'fraction_numerical': 0.0144, 'mean_word_length': 4.928909952606635, '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': '4783577', 'n_tokens_mistral': 369, 'n_tokens_neox': 347, 'n_words': 83}