[`ruff`] Add `non-empty-init-module` (`RUF067`) #22143
ntBre
commented
on 2025-12-22
ntBre
marked this pull request as ready for review 334 days ago
[`ruff`] Add `non-empty-init-module` (`RUF070`)
e99f4f9a
add strict option
378fea44
update other snapshots
d9669630
fix docs formatting
e8583d4b
cache checker.path.ends_with("__init__.py") checks
9434c074
allow __getattr__
2ae6b5a0
factor out is_assignment_to, allow __path__ assignment
e701272c
fix top-level statement check
7a4c2c95
allow type_checking blocks, tidy up a bit
99559ccf
allow assignment to __version__ and __dir__ functions
e42f5ef0
ntBre
force pushed
from
8b38a83a
to
e42f5ef0
333 days ago
Update crates/ruff_linter/src/rules/ruff/rules/non_empty_init_module.rs
78f538d7
use SemanticModel::at_top_level
23803304
factor out Assignment type, be more strict on extend_path
437e1137
rewrap and expand docs slightly
9a6c7641
a few more tests for __path__ changes
de3d0100
allow __author__
449b1b42
revert attribute docstring exception
16fc443e
expand the diagnostic a bit, branch on strictness
63bb56dc
sync okay.py
d70ba435
recode to RUF067
eb750ac1
ntBre
changed the title [`ruff`] Add `non-empty-init-module` (`RUF070`) [`ruff`] Add `non-empty-init-module` (`RUF067`) 327 days ago
restore attribute docstring exception, with a comment
353eec26
Merge branch 'main' into brent/eim
d27406e1
improve rule documentation
1755a1fd
ntBre
merged
c483b59d
into main 326 days ago
ntBre
deleted the brent/eim branch 326 days ago
Assignees
No one assigned
Login to write a write a comment.
Login via GitHub