You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your bug may already be reported!
Please search on the issue tracker before creating one.
Expected Behavior
Run flake8
Current Behavior
flake8 crashes
This does not show when uninstalling nitpick from env
Running nitpick through pre-commit does work: pre-commit run nitpick --files setup.py
Steps to Reproduce
$ flake8 .
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/local-venv/lib/python3.7/multiprocessing/pool.py", line 121, in worker
result = (True, func(*args, **kwds))
File "/local-venv/lib/python3.7/multiprocessing/pool.py", line 44, in mapstar
return list(map(*args))
File "/local-venv/lib/python3.7/site-packages/flake8/checker.py", line 676, in _run_checks
return checker.run_checks()
File "/local-venv/lib/python3.7/site-packages/flake8/checker.py", line 589, in run_checks
self.run_ast_checks()
File "/local-venv/lib/python3.7/site-packages/flake8/checker.py", line 494, in run_ast_checks
for (line_number, offset, text, _) in runner:
File "/local-venv/lib/python3.7/site-packages/nitpick/flake8.py", line 51, in run
yield from itertools.chain(app.config.merge_styles(), self.check_files(True), self.check_files(False))
File "/local-venv/lib/python3.7/site-packages/nitpick/config.py", line 66, in merge_styles
style.find_initial_styles(configured_styles)
File "/local-venv/lib/python3.7/site-packages/nitpick/style.py", line 66, in find_initial_styles
self.include_multiple_styles(chosen_styles)
File "/local-venv/lib/python3.7/site-packages/nitpick/style.py", line 113, in include_multiple_styles
self.include_multiple_styles(sub_styles)
File "/local-venv/lib/python3.7/site-packages/nitpick/style.py", line 113, in include_multiple_styles
self.include_multiple_styles(sub_styles)
File "/local-venv/lib/python3.7/site-packages/nitpick/style.py", line 113, in include_multiple_styles
self.include_multiple_styles(sub_styles)
File "/local-venv/lib/python3.7/site-packages/nitpick/style.py", line 98, in include_multiple_styles
toml_dict = toml.as_data
File "/local-venv/lib/python3.7/site-packages/nitpick/formats.py", line 128, in as_data
self.load()
File "/local-venv/lib/python3.7/site-packages/nitpick/formats.py", line 229, in load
self._reformatted = toml.dumps(self._data)
File "/local-venv/lib/python3.7/site-packages/toml/encoder.py", line 67, in dumps
raise ValueError("Circular reference detected")
ValueError: Circular reference detected
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/local-venv/bin/flake8", line 8, in <module>
sys.exit(main())
File "/local-venv/lib/python3.7/site-packages/flake8/main/cli.py", line 22, in main
app.run(argv)
File "/local-venv/lib/python3.7/site-packages/flake8/main/application.py", line 363, in run
self._run(argv)
File "/local-venv/lib/python3.7/site-packages/flake8/main/application.py", line 351, in _run
self.run_checks()
File "/local-venv/lib/python3.7/site-packages/flake8/main/application.py", line 264, in run_checks
self.file_checker_manager.run()
File "/local-venv/lib/python3.7/site-packages/flake8/checker.py", line 321, in run
self.run_parallel()
File "/local-venv/lib/python3.7/site-packages/flake8/checker.py", line 287, in run_parallel
for ret in pool_map:
File "/local-venv/lib/python3.7/multiprocessing/pool.py", line 354, in <genexpr>
return (item for chunk in result for item in chunk)
File "/local-venv/lib/python3.7/multiprocessing/pool.py", line 748, in next
raise value
ValueError: Circular reference detected
Context
Your Environment
nitpick version used: latest
Python version: 3.7 and 3.8
Operating System and version: Ubuntu
Link to your project:
Run the following commands and paste the output:
which python3
python3 -V
pip freeze
cat $(which flake8)
Your bug may already be reported!
Please search on the issue tracker before creating one.
Expected Behavior
Run flake8
Current Behavior
flake8 crashes
This does not show when uninstalling nitpick from env
Running nitpick through pre-commit does work:
pre-commit run nitpick --files setup.py
Steps to Reproduce
Context
Your Environment
nitpick
version used: latestPython version: 3.7 and 3.8
Operating System and version: Ubuntu
Link to your project:
Run the following commands and paste the output:
which python3 python3 -V pip freeze cat $(which flake8)
The text was updated successfully, but these errors were encountered: