question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: diff_cover_report_quality() got an unexpected keyword argument 'reports'

See original GitHub issue

Just started getting errors on CircleCI within the past few days. We’re using diff-quality to run a linter on only the sql files that changed in the pull request with diff-quality --violations sqlfluff --fail-under=100 --compare-branch origin/master and getting the following error:

Traceback (most recent call last):
  File "/home/circleci/.pyenv/versions/3.8.15/bin/diff-quality", line 8, in <module>
    sys.exit(main())
  File "/home/circleci/.pyenv/versions/3.8.15/lib/python3.8/site-packages/diff_cover/diff_quality_tool.py", line 347, in main
    reporter = reporter_factory_fn(reports=input_reports, options=user_options)
TypeError: diff_cover_report_quality() got an unexpected keyword argument 'reports'

Looks to be related to this recently merged PR that changed the offending line. Let me know what other info might be helpful to troubleshoot.

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
barrywhartcommented, Dec 14, 2022

@Bachmann1234: This issue can be closed now. Sorry for the kerfuffle!

2reactions
Bachmann1234commented, Dec 12, 2022

I would suggest rolling diff_cover 7.2.0 until we can get this resolved.

@barrywhart are you available to look into this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: got an unexpected keyword argument
You get an exception because UserDefinedFunction.__call__ supports only varargs and not keyword args. def __call__(self, ...
Read more >
TypeError: login() got an unexpected keyword argument 'msi ...
I'm new to bug reporting btw, Sorry for the inconveniences! Command Name az login Extension Name: azure-ml-admin-cli. Version: 0.0.1. Errors:.
Read more >
TypeError: copy() got an unexpected keyword argument 'deep'
currently we have 2 prediction model and we setup the prediction model in the next recipe # setup efficiency function efficiency = lambda...
Read more >
Error "get_file_data() got an unexpected keyword argument ...
I have configured one input using the File-Meta Data input to monitor a log file. ... TypeError: get_file_data() got an unexpected keyword argument...
Read more >
save_file() got an unexpected keyword argument 'save'
TypeError : save_file() got an unexpected keyword argument 'save'. This happens when I try to save a new record to a table using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found