Skip to content

Commit

Permalink
ci: use Python 3.10 in linting & testing (#908)
Browse files Browse the repository at this point in the history
* ci: use Python 3.8 in testing (lowest supported version)

* ci: set ruff & black target-version to lowest supported py38 (from py311)

* ci: bump minimum Python to 3.10

* ci: removed `paths` from on: ci config
  • Loading branch information
ErikBjare authored Dec 18, 2023
1 parent 4a49502 commit 02f99f1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
name: Poetry install and pytest
on:
pull_request:
branches: [ main ]
paths:
- "**.py"
- "**.yaml"
- "**.yml"
push:
branches: [ main ]
paths:
- "**.py"
- "**.yaml"
- "**.yml"
pull_request:
branches: [ main ]

jobs:
test:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ GPT Engineer is made to be easy to adapt, extend, and make your agent learn how

## Setup

This project supports Python 3.8 - 3.11.
This project supports Python 3.10 - 3.11.

Choose either **stable** or **development**.

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ experimental = ["llama-index", "rank-bm25", "tree_sitter_languages"]
[tool.ruff]
select = ["F", "E", "W", "I001"]
show-fixes = false
target-version = "py311"
target-version = "py310"
task-tags = ["TODO", "FIXME"]
extend-ignore = ["E501", "E722"]

[tool.black]
target-version = ["py311"]
target-version = ["py310"]

[tool.ruff.isort]
known-first-party = []
Expand Down

0 comments on commit 02f99f1

Please sign in to comment.