v2.0.0
What's Changed
- Update call sites when --fix removes a default by @adamtheturtle in #15
- Treat re-exported names as public under private_only by @adamtheturtle in #17
- Check field defaults on pydantic models by @adamtheturtle in #26
- Reject unknown keys in
[tool.no_defaults]by @adamtheturtle in #44 - Compile per-file enforcement globs once per configuration by @adamtheturtle in #45
- Error on a named path that is not a Python file by @adamtheturtle in #47
- Deduplicate checked files by canonical path by @adamtheturtle in #48
- Fix through a symlink instead of replacing it by @adamtheturtle in #49
- Report diagnostic columns in characters rather than bytes by @adamtheturtle in #50
- Strip a leading byte-order mark before checking by @adamtheturtle in #51
- Read each file once when reporting full output by @adamtheturtle in #52
- Report a syntax error per file instead of aborting the run by @adamtheturtle in #53
- Recognise a file-level noqa without a space after the colon by @adamtheturtle in #54
- Recognise a noqa directive anywhere in a comment by @adamtheturtle in #55
- Stop --fix deleting pragmas that follow a directive by @adamtheturtle in #56
- Merge overlapping deletions before applying them by @adamtheturtle in #57
- Honour --output-format when fixing by @adamtheturtle in #58
- Follow renaming imports of dataclasses and pydantic members by @adamtheturtle in #59
- Judge module privacy from the project root down by @adamtheturtle in #60
- Report defaults on lambda parameters by @adamtheturtle in #61
- Report but do not fix
= ...in stub files by @adamtheturtle in #62 - Index each file's line starts instead of rescanning per diagnostic by @adamtheturtle in #63
- Treat bases that declare no fields as non-inheriting by @adamtheturtle in #64
- Leave a call taking a bare generator expression alone by @adamtheturtle in #65
- Resolve
from . import moduleto the sibling module by @adamtheturtle in #66 - Do not rewrite calls to names an enclosing scope binds by @adamtheturtle in #67
- Resolve an absolute import at the importer's own root first by @adamtheturtle in #68
- Account for keyword-only fields in a dataclass constructor by @adamtheturtle in #69
- Address review findings from the issue-fixing series by @adamtheturtle in #70
- Prepare the 2.0.0 release by @adamtheturtle in #71
Full Changelog: v1.1.0...v2.0.0