Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

In autogenerated _version file, use full Git hash

Open
#33 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
python
Domain
build-system

Research direction

Start by reading the setup script that generates codetools/_version.py and trace how git_revision is produced. Regenerate the file and verify that git_revision contains the full Git commit hash rather than a seven-character abbreviation.

Written by the indexing model from the issue text.

Description

The codetools/_version.py file (which is autogenerated by the setup script) should use the full Git commit hash instead of the abbreviated 7-hex version. It currently looks like this:

mirzakhani:codetools mdickinson$ cat codetools/_version.py 
# THIS FILE IS GENERATED FROM CODETOOLS SETUP.PY
version = '4.3.0'
full_version = '4.3.0'
git_revision = 'c2a0c1b'
is_released = True

if not is_released:
    version = full_version
Dominant language
Python
Stars
54
Forks
10
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from enthought/codetools

All issues in enthought/codetools

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.