Skip to content

IN-1697 - update Python guidelines updates#62

Merged
ghukill merged 3 commits intomainfrom
python-guidelines-updates
Apr 7, 2026
Merged

IN-1697 - update Python guidelines updates#62
ghukill merged 3 commits intomainfrom
python-guidelines-updates

Conversation

@ghukill
Copy link
Copy Markdown
Contributor

@ghukill ghukill commented Mar 24, 2026

Why these changes are being introduced

The python guidelines were remarkably accurate given a fairly lengthy stay
between updates, but some areas were beginning to need some updates.

Additionally, we are currently actively experimenting with a "specification"
of sorts for python projects, a document that is designed to be a bit more
granular than these guidelines.

How this addresses that need:

  • Updates sections where small changes are needed (e.g. pipenv -> uv)
  • Adds new "python projects specification" section that briefly notes
    and links to a specification document with more granular details about
    project conventions

How this addresses that need

See the updated form of the python guidelines rendered here.

Side effects of this change

  • First experimental integration of the dev docs wiki and the new
    python project specification repository

Relevant ticket(s)

@ghukill ghukill marked this pull request as ready for review March 24, 2026 17:06
Why these changes are being introduced:

The python guidelines were remarkably accurate given a fairly lengthy stay
between updates, but some areas were beginning to need some updates.

Additionally, we are currently actively experimenting with a "specification"
of sorts for python projects, a document that is designed to be a bit more
granular than these guidelines.

How this addresses that need:
* Updates sections where small changes are needed (e.g. pipenv -> uv)
* Adds new "python projects specification" section that briefly notes
and links to a specification document with more granular details about
project conventions

Side effects of this change:
* First experimental integration of the dev docs wiki and the new
python project specification repository

Relevant ticket(s):
* https://mitlibraries.atlassian.net/browse/IN-1697
@ghukill ghukill force-pushed the python-guidelines-updates branch from 8b842b4 to 7cd05f6 Compare April 6, 2026 17:42
Copy link
Copy Markdown
Contributor

@ehanson8 ehanson8 left a comment

Choose a reason for hiding this comment

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

Looks good, 1 optional suggestion!

Comment thread languages/python.md Outdated
These tools should be used during development and are run automatically in Github Actions during CI. They are all included in the template repositories listed above, and have integrations for common code editors to allow automatic checking and reformatting during development.

The linters are usually run together with the `make lint` command in a project's Makefile. See the template repositories for examples.
The linters are usually run together with the `make lint` command in a project's Makefile, which runs `ruff check`, `ruff format`, and `mypy`. See the template repositories for examples.
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.

Optional: this sentence seems ripe for getting outdated, how about just The linters are usually run together with the make lint command in a project's Makefile.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good call! Updating.

@ghukill ghukill merged commit 6c3ac8d into main Apr 7, 2026
1 check passed
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