Skip to content

Commit

Permalink
💚 Make CI read Python version from main pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
cjumel committed Dec 18, 2023
1 parent f30a749 commit 7541ae4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3.9
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version-file: pyproject.toml

- name: Install pre-commit
run: python -m pip install -r requirements-pre-commit.txt
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[project]
requires-python = ">=3.9,<3.10"

[tool]

[tool.black]
Expand Down

0 comments on commit 7541ae4

Please sign in to comment.