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

Make CI fail on clippy warnings #534

Merged
merged 4 commits into from
Jul 15, 2019
Merged

Make CI fail on clippy warnings #534

merged 4 commits into from
Jul 15, 2019

Conversation

Alexander-N
Copy link
Member

Fix or ignore all current clippy warnings and let the CI fail if in the future if there are warnings.

@@ -221,7 +221,7 @@ where
// Behave like python's __getattr__ (as opposed to __getattribute__) and check
// for existing fields and methods first
let existing = ffi::PyObject_GenericGetAttr(slf, arg);
if existing == std::ptr::null_mut() {
if existing.is_null() {
Copy link
Member

Choose a reason for hiding this comment

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

👍

@codecov
Copy link

codecov bot commented Jul 15, 2019

Codecov Report

Merging #534 into master will decrease coverage by 0.11%.
The diff coverage is 75%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #534      +/-   ##
==========================================
- Coverage   87.68%   87.56%   -0.12%     
==========================================
  Files          65       65              
  Lines        3443     3443              
==========================================
- Hits         3019     3015       -4     
- Misses        424      428       +4
Impacted Files Coverage Δ
src/python.rs 93.82% <ø> (ø) ⬆️
src/types/tuple.rs 90% <100%> (ø) ⬆️
src/class/basic.rs 91.53% <50%> (ø) ⬆️
src/instance.rs 96.66% <0%> (-1.34%) ⬇️
src/err.rs 61.11% <0%> (-1.24%) ⬇️

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 29b0a02...67a7a6d. Read the comment docs.

@codecov
Copy link

codecov bot commented Jul 15, 2019

Codecov Report

Merging #534 into master will not change coverage.
The diff coverage is 75%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #534   +/-   ##
=======================================
  Coverage   87.56%   87.56%           
=======================================
  Files          65       65           
  Lines        3443     3443           
=======================================
  Hits         3015     3015           
  Misses        428      428
Impacted Files Coverage Δ
src/python.rs 93.82% <ø> (ø) ⬆️
src/types/tuple.rs 90% <100%> (ø) ⬆️
src/class/basic.rs 91.53% <50%> (ø) ⬆️

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 29b0a02...67a7a6d. Read the comment docs.

@@ -234,6 +234,7 @@ impl<'p> Python<'p> {
}

/// Register `ffi::PyObject` pointer in release pool
#[allow(clippy::wrong_self_convention)]
Copy link
Member

Choose a reason for hiding this comment

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

I'd like to eventually rename and and move those functions, but for now that's fine.

Copy link
Member

@konstin konstin left a comment

Choose a reason for hiding this comment

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

Thank you for fixing the remaining warnings!

@konstin konstin merged commit 7e4b716 into PyO3:master Jul 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants