I’m having a bit of trouble setting up a dev envir...
# contributing
d
I’m having a bit of trouble setting up a dev environment, has anyone seen this issue with the pre-commit hooks?
Copy code
$ git commit
[WARNING] Unstaged files detected.
[INFO] Stashing unstaged files to /Users/dean/.cache/pre-commit/patch1622593901.
Trim Trailing Whitespace.................................................Passed
Fix End of Files.........................................................Passed
Check Yaml...........................................(no files to check)Skipped
Check for added large files..............................................Passed
Check for merge conflicts................................................Passed
Check Toml...........................................(no files to check)Skipped
Debug Statements (Python)............................(no files to check)Skipped
pyupgrade............................................(no files to check)Skipped
seed isort known_third_party.............................................Passed
isort................................................(no files to check)Skipped
black................................................(no files to check)Skipped
flakehell................................................................Failed
- hook id: flakehell
- exit code: 1

Traceback (most recent call last):
  File "/Users/dean/.cache/pre-commit/repou17ft8nv/py_env-python3.8/bin/flakehell", line 8, in <module>
    sys.exit(entrypoint())
  File "/Users/dean/.cache/pre-commit/repou17ft8nv/py_env-python3.8/lib/python3.8/site-packages/flakehell/_cli.py", line 40, in entrypoint
    exit_code, msg = main(argv)
  File "/Users/dean/.cache/pre-commit/repou17ft8nv/py_env-python3.8/lib/python3.8/site-packages/flakehell/_cli.py", line 32, in main
    return COMMANDS[command_name](argv=argv[1:])
  File "/Users/dean/.cache/pre-commit/repou17ft8nv/py_env-python3.8/lib/python3.8/site-packages/flakehell/commands/_lint.py", line 12, in lint_command
    app.run(argv)
  File "/Users/dean/.cache/pre-commit/repou17ft8nv/py_env-python3.8/lib/python3.8/site-packages/flake8/main/application.py", line 363, in run
    self._run(argv)
  File "/Users/dean/.cache/pre-commit/repou17ft8nv/py_env-python3.8/lib/python3.8/site-packages/flake8/main/application.py", line 350, in _run
    self.initialize(argv)
  File "/Users/dean/.cache/pre-commit/repou17ft8nv/py_env-python3.8/lib/python3.8/site-packages/flake8/main/application.py", line 337, in initialize
    self.make_guide()
  File "/Users/dean/.cache/pre-commit/repou17ft8nv/py_env-python3.8/lib/python3.8/site-packages/flakehell/_patched/_app.py", line 177, in make_guide
    self.guide = FlakeHellStyleGuideManager(self.options, self.formatter)
  File "/Users/dean/.cache/pre-commit/repou17ft8nv/py_env-python3.8/lib/python3.8/site-packages/flakehell/_patched/_style_guide.py", line 17, in __init__
    super().__init__(options, formatter, decider)
  File "/Users/dean/.cache/pre-commit/repou17ft8nv/py_env-python3.8/lib/python3.8/site-packages/flake8/style_guide.py", line 339, in __init__
    self.decider = decider or DecisionEngine(options)
  File "/Users/dean/.cache/pre-commit/repou17ft8nv/py_env-python3.8/lib/python3.8/site-packages/flake8/style_guide.py", line 171, in __init__
    ).union(options.extended_default_ignore)
AttributeError: 'Namespace' object has no attribute 'extended_default_ignore'


eslint...............................................(no files to check)Skipped
[INFO] Restored changes from /Users/dean/.cache/pre-commit/patch1622593901.
I’ve tried with python
3.6.2
,
3.6.13
, and
3.8.9