PlasmaPy / PlasmaPy/PlasmaPy

Scrape `pyproject.toml` to get `supported_python_versions` in `noxfile.py`

Open
#2,954 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

nox Plasma Lv0 | Novice Python Lv2 | Intermediate refactoring ♻️
Dominant language
Python
Stars
711
Forks
375
Avg merge
3h 2m
Merged PRs (30d)
8

Description

Right now, the supported versions of Python are defined in pyproject.toml, and then separately defined in noxfile.py. Defining the same thing in two places increases the likelihood that it'll get out of sync, so scraping pyproject.toml to get supported_python_versions will ensure that it's the same in both places.

Thanks to @rocco8773 for bringing this up!

Contributor guide

Open the contributing guide

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.

Research direction

Start by comparing the supported Python version definitions in pyproject.toml and noxfile.py. Determine how noxfile.py can use the value from pyproject.toml, then verify that the versions remain consistent and the nox sessions still run as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.