Skip to content

Remove unused imports#268

Open
abrown wants to merge 2 commits intokernelize-ai:mainfrom
abrown:unused-imports
Open

Remove unused imports#268
abrown wants to merge 2 commits intokernelize-ai:mainfrom
abrown:unused-imports

Conversation

@abrown
Copy link
Copy Markdown
Contributor

@abrown abrown commented Feb 3, 2026

No description provided.

This enables additional lints that will catch unused imports and
variables (see previous commit).
Comment thread .pre-commit-config.yaml
- id: debug-statements

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.1
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may want to keep this the same as upstream to avoid formatting differences when we want to PR code back to them: https://github.com/triton-lang/triton/blob/main/.pre-commit-config.yaml#L21

Comment thread backend/compiler.py
@staticmethod
def make_ttgir(mod, metadata, options):
pm = ir.pass_manager(mod.context)
dump_enabled = pm.enable_debug()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This came from upstream but it's true, we are not using it right now. I think I left it as a placeholder that meant we might want to support dumping debug info via different passes if debugging is available (I might even have that in a branch somewhere).

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.

2 participants