Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix strange behaviour of interrogate hook #464

Merged
merged 2 commits into from
Nov 29, 2020

Conversation

s-weigand
Copy link
Member

Now interrogate should always run on the whole project, as intended.

This is a known issue when running as pre-commit hook.

Since my projects where I use it have 100% coverage I didn't see that before, so sorry for the problem 😢

Now interrogate should always run on the whole project, as intended.
@s-weigand s-weigand added the Type: Tooling Tools used for the project (CI, CD, docs etc.) label Nov 29, 2020
@s-weigand s-weigand requested a review from jsnel November 29, 2020 18:58
@codecov
Copy link

codecov bot commented Nov 29, 2020

Codecov Report

Merging #464 (fd2c46a) into master (51b8799) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master    #464   +/-   ##
======================================
  Coverage    68.7%   68.7%           
======================================
  Files          66      66           
  Lines        3167    3167           
  Branches      616     616           
======================================
  Hits         2176    2176           
  Misses        860     860           
  Partials      131     131           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 51b8799...8e3ee43. Read the comment docs.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@@ -43,7 +43,7 @@ repos:
hooks:
- id: interrogate
args: [-vv, --config=pyproject.toml]
exclude: ^(docs|setup.py)|test/|__init__.py
pass_filenames: false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change makes interrogate basically behave like if you would call it from the command line.

And the whole idea behind using interrogate was, put simply: "Don't add new code if it isn't documented!"
Basically a test coverage for docstrings.

So at some point (close to v1 release) we can use pydocstyle and darglint to have a good and in sync API documentation.

Copy link
Member

@jsnel jsnel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@s-weigand s-weigand merged commit 33405b1 into glotaran:master Nov 29, 2020
@s-weigand s-weigand deleted the fix-interrogate branch November 29, 2020 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Tooling Tools used for the project (CI, CD, docs etc.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants