Skip to content

refactor: remove unused GITHUB_DOMAIN constant - #954

Closed
ebios-star wants to merge 1 commit into
entrius:testfrom
ebios-star:refactor/remove-unused-github-domain-constant
Closed

refactor: remove unused GITHUB_DOMAIN constant#954
ebios-star wants to merge 1 commit into
entrius:testfrom
ebios-star:refactor/remove-unused-github-domain-constant

Conversation

@ebios-star

Copy link
Copy Markdown
Contributor

Summary

GITHUB_DOMAIN = 'https://github.com/' is defined at module scope in gittensor/classes.py but has zero references anywhere in gittensor/, neurons/, or tests/. The sites that build GitHub URLs use inline f-strings (e.g. f'https://github.com/{repo}/issues/{issue_number}' in cli/issue_commands/helpers.py, mutations.py, and submissions.py) and don't import this constant.

Verified via grep -rn GITHUB_DOMAIN — only the definition line.

Net: -2 lines.

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Other

Testing

  • pytest tests/ — all 726 tests pass.

Checklist

  • Code follows project style guidelines
  • Self-review completed
  • Changes are documented (if applicable)

GITHUB_DOMAIN is defined at module scope in gittensor/classes.py but
has zero references anywhere in gittensor/, neurons/, or tests/. The
sites that build GitHub URLs use inline f-strings (e.g.
f'https://github.com/{repo}/issues/{issue_number}') and don't import
this constant.

Verified via 'grep -rn GITHUB_DOMAIN' — only the definition line.
@ebios-star

Copy link
Copy Markdown
Contributor Author

@anderdc whenever you have a moment, this is a one-line removal of an unused module-level constant. Happy to revise scope if you'd prefer. Thanks!

@xiao-xiao-mao xiao-xiao-mao Bot added the refactor Code restructuring without behavior change label May 3, 2026
@anderdc anderdc mentioned this pull request May 5, 2026
8 tasks
@anderdc

anderdc commented May 5, 2026

Copy link
Copy Markdown
Collaborator

Closing — please consolidate into #917.

@anderdc anderdc closed this May 5, 2026
@ebios-star

Copy link
Copy Markdown
Contributor Author

Consolidated into #955 per @anderdc's request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Code restructuring without behavior change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants