Skip to content

Commit

Permalink
ci: deny warnings using RUSTFLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Dec 26, 2020
1 parent 384f32a commit 51d1996
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ jobs:
env:
RUST_BACKTRACE: 1
RUSTFLAGS: "-D warnings"

coverage:
needs: [fmt]
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased]
### Fixed
- Stop including `Py_TRACE_REFS` config setting automatically if `Py_DEBUG` is set on Python 3.8 and up. [#1334](https://github.com/PyO3/pyo3/pull/1334)
- Remove `#[deny(warnings)]` attribute (and instead refuse warnings only in CI). [#1340](https://github.com/PyO3/pyo3/pull/1340)

## [0.13.0] - 2020-12-22
### Packaging
Expand Down
4 changes: 3 additions & 1 deletion Contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ Here are a few things to note when you are writing PRs.

The PyO3 repo uses Github Actions. PRs are blocked from merging if CI is not successful.

Formatting, linting and tests are checked for all Rust and Python code. Tests run with all supported Python versions with the latest stable Rust compiler, as well as for Python 3.9 with the minimum supported Rust version.
Formatting, linting and tests are checked for all Rust and Python code. In addition, all warnings in Rust code are disallowed (using `RUSTFLAGS="-D warnings"`).

Tests run with all supported Python versions with the latest stable Rust compiler, as well as for Python 3.9 with the minimum supported Rust version.

### Minimum supported Rust version

Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![cfg_attr(feature = "nightly", feature(specialization))]
#![allow(clippy::missing_safety_doc)] // FIXME (#698)
#![deny(warnings)]

//! Rust bindings to the Python interpreter.
//!
Expand Down

0 comments on commit 51d1996

Please sign in to comment.