Skip to content

feat: add DALL1xx for __dir__#92

Open
henryiii wants to merge 3 commits into
python-formate:masterfrom
henryiii:henryiii/feat/__dir__
Open

feat: add DALL1xx for __dir__#92
henryiii wants to merge 3 commits into
python-formate:masterfrom
henryiii:henryiii/feat/__dir__

Conversation

@henryiii

@henryiii henryiii commented Jan 5, 2026

Copy link
Copy Markdown
Contributor

Close #86.

Adds a check for __dir__, split into two codes (one for __init__). The __init__ check will not trigger unless something is defined in init.

@auto-assign auto-assign Bot requested a review from domdfcoding January 5, 2026 20:24
@repo-helper repo-helper Bot added failure: mypy The mypy check is failing. failure: flake8 The Flake8 check is failing. labels Jan 5, 2026
@henryiii henryiii force-pushed the henryiii/feat/__dir__ branch from f17d744 to 40a16aa Compare January 5, 2026 20:26
@repo-helper repo-helper Bot added failure: Linux The Linux tests are failing. failure: Windows The Windows tests are failing. and removed failure: flake8 The Flake8 check is failing. labels Jan 5, 2026
@henryiii henryiii force-pushed the henryiii/feat/__dir__ branch from 40a16aa to 8951144 Compare January 5, 2026 20:42
@repo-helper repo-helper Bot removed failure: Linux The Linux tests are failing. failure: Windows The Windows tests are failing. labels Jan 5, 2026
@henryiii henryiii force-pushed the henryiii/feat/__dir__ branch from 8951144 to 453ecf9 Compare January 5, 2026 21:51
@repo-helper repo-helper Bot added failure: flake8 The Flake8 check is failing. failure: Linux The Linux tests are failing. failure: Windows The Windows tests are failing. and removed failure: mypy The mypy check is failing. labels Jan 5, 2026
@henryiii henryiii force-pushed the henryiii/feat/__dir__ branch from 453ecf9 to 16ec0c1 Compare January 5, 2026 21:53
@repo-helper repo-helper Bot removed the failure: flake8 The Flake8 check is failing. label Jan 5, 2026
Signed-off-by: Henry Schreiner <henryfs@princeton.edu>
@henryiii henryiii force-pushed the henryiii/feat/__dir__ branch from 16ec0c1 to 6886446 Compare June 22, 2026 15:34
@repo-helper repo-helper Bot removed failure: Linux The Linux tests are failing. failure: Windows The Windows tests are failing. labels Jun 22, 2026
henryiii added 2 commits June 22, 2026 11:46
Noticed by a GPT-5.5 review.

Assisted-by: ClaudeCode:claude-opus-4.8
Signed-off-by: Henry Schreiner <henryfs@princeton.edu>
Address review feedback on the DALL1xx __dir__ checks:

- DALL100 no longer fires on memberless modules; the __dir__
  requirement now mirrors DALL101 and applies only when public
  members exist.
- Drop the unused Visitor.found_lineno and add the missing found_dir
  attribute annotation.
- Simplify the DALL000 branch and tighten the test code filter
  (startswith instead of substring); restore the deliberate noqa
  split in test_subprocess.

Assisted-by: ClaudeCode:claude-opus-4.8
Signed-off-by: Henry Schreiner <henryfs@princeton.edu>
@henryiii

henryiii commented Jun 22, 2026

Copy link
Copy Markdown
Contributor Author

A couple of rounds of automated reviews removing unneeded code and this looks pretty good now, I think.

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.

Add check for __dir__

2 participants