ruff/crates/ruff_linter
Auguste Lalande 8fba97f72f
PLR2004: Accept 0.0 and 1.0 as common magic values (#9964)
## Summary

Accept 0.0 and 1.0 as common magic values. This is in line with the
pylint behaviour, and I think makes sense conceptually.


## Test Plan

Test cases were added to
`crates/ruff_linter/resources/test/fixtures/pylint/magic_value_comparison.py`
2024-02-13 01:21:06 +00:00
..
resources PLR2004: Accept 0.0 and 1.0 as common magic values (#9964) 2024-02-13 01:21:06 +00:00
src PLR2004: Accept 0.0 and 1.0 as common magic values (#9964) 2024-02-13 01:21:06 +00:00
__init__.py [pylint] (Re-)Implement import-private-name (C2701) (#9553) 2024-01-16 14:03:11 -05:00
Cargo.toml Bump version to v0.2.1 (#9843) 2024-02-05 15:31:05 -05:00