title: Flakehell with .toml configuration and pre-commit hook
body: <p>I'm trying to run flakehell as pre-commit hook.</p>
  <p>my .pre-commit-config.yaml:</p>
  <pre><code>repos:
  -   repo: local
      hooks:             
      -   id: flakehell
          name: flakehell
          entry: flakehell lint project/
          language: python
          pass_filenames: true
          stages: [push, commit]
          verbose: true
  </code></pre>
  <p>pyproject.toml:</p>
  <pre><code>[tool.flakehell]
  exclude = [&quot;README.md&quot;]
  format = &quot;colored&quot;
  show_source = true
  
  [tool.flakehell.plugins]
  flake8-bandit = [&quot;+*&quot;, &quot;-S322&quot;]
  flake8-bugbear = [&quot;+*&quot;]
  flake8-builtins = [&quot;+*&quot;]
  flake8-comprehensions = [&quot;+*&quot;]
  flake8-darglint = [&quot;+*&quot;]
  flake8-docstrings = [&quot;+*&quot;]
  flake8-eradicate = [&quot;+*&quot;]
  flake8-isort = [&quot;+*&quot;]
  flake8-mutable = [&quot;+*&quot;]
  flake8-pytest-style = [&quot;+*&quot;]
  flake8-spellcheck = [&quot;+*&quot;]
  mccabe = [&quot;+*&quot;]
  pep8-naming = [&quot;+*&quot;]
  pycodestyle = [&quot;+*&quot;]
  pyflakes = [&quot;+*&quot;]
  pylint = [&quot;+*&quot;]
  
  </code></pre>
  <p>Still have some problems. When I try to use git commit I see that flakehell started working. After a few seconds it fails and I got the error:</p>
  <p>&quot;UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb8 in position 10: invalid start byte&quot;</p>
  <p>Without &quot;pre-commit&quot; it works great (I mean when I just type &quot;flakehell lint&quot;)</p>
  <p>Is it even possible to configure flakehell as pre-commit?</p>
  <p>If not - do you recommend any better/working solution for python projects?</p>