Skip to content

Commit

Permalink
Use lowest available python version (#386)
Browse files Browse the repository at this point in the history
* Use lowest available python version

* Updating python versions in the CI to match default versions in the questions.

---------

Co-authored-by: Drew Oldag <[email protected]>
  • Loading branch information
delucchi-cmu and drewoldag authored Feb 6, 2024
1 parent 0067c72 commit 63d0da4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: true
matrix:
python-version: ['3.8', '3.9', '3.10']
python-version: ['3.9', '3.10', '3.11']
copier_config:
- name: Base example
package_name: example_package # The default package_name
Expand Down
5 changes: 3 additions & 2 deletions python-project-template/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ classifiers = [
"Programming Language :: Python",
]
dynamic = ["version"]
requires-python = ">={{ python_versions[0] }}"
dependencies = [
{%- if include_notebooks %}
"ipykernel", # Support for Jupyter notebooks
Expand Down Expand Up @@ -80,15 +81,15 @@ testpaths = [

[tool.black]
line-length = 110
target-version = ["py38"]
target-version = ["py{{ python_versions[0] | replace(".", "") }}"]

[tool.isort]
profile = "black"
line_length = 110

[tool.ruff]
line-length = 110
target-version = "py38"
target-version = "py{{ python_versions[0] | replace(".", "") }}"

[tool.ruff.lint]
select = [
Expand Down

0 comments on commit 63d0da4

Please sign in to comment.