Skip to content

[Code scan] Remove deprecated Ruff ignore-init-module-imports setting #130

Description

@njzjz

This issue was found by a Codex global code scan of the repository.

Affected code:

dargs/pyproject.toml

Lines 54 to 84 in b4db564

[tool.ruff.lint]
select = [
"E", # errors
"F", # pyflakes
"D", # pydocstyle
"UP", # pyupgrade
"C4", # flake8-comprehensions
"RUF", # ruff
"I", # isort
"TCH", # flake8-type-checking
"ANN", # flake8-annotations
"B904", # raise-without-from-inside-except
]
ignore = [
"E501", # line too long
"F841", # local variable is assigned to but never used
"E741", # ambiguous variable name
"E402", # module level import not at top of file
"D100", # TODO: missing docstring in public module
"D101", # TODO: missing docstring in public class
"D102", # TODO: missing docstring in public method
"D103", # TODO: missing docstring in public function
"D104", # TODO: missing docstring in public package
"D105", # TODO: missing docstring in magic method
"D205", # 1 blank line required between summary line and description
"D401", # TODO: first line should be in imperative mood
"D404", # TODO: first word of the docstring should not be This
"ANN401", # Allow typing.Any - necessary for a library handling arbitrary types
]
ignore-init-module-imports = true

Problem:
The Ruff configuration still sets ignore-init-module-imports = true. Current Ruff emits a deprecation warning for this option and says it will be removed in a future release.

Reproducer:

python -m ruff check .

Observed behavior:

warning: The `ignore-init-module-imports` option is deprecated and will be removed in a future release.

Expected behavior:
Remove or replace the deprecated option so lint output remains clean and future Ruff releases do not break the configuration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions