Skip to content

Commit 2a7cbea

Browse files
committed
feat: add Python 3.11
1 parent b7fcb67 commit 2a7cbea

File tree

12 files changed

+21
-6
lines changed

12 files changed

+21
-6
lines changed

‎.github/workflows/python.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
# ubuntu-latest is being moved from ubuntu-18.04 to ubuntu-20.04
1717
# See https://github.com/actions/virtual-environments/issues/1816
1818
os: [ubuntu-latest, windows-latest, macos-latest]
19-
python-version: ["3.7", "3.8", "3.9", "3.10"]
19+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
2020
runs-on: ${{ matrix.os }}
2121
env:
2222
PYTHONUNBUFFERED: 1

‎README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ python
251251
- Description
252252
* - `py://nitpick/resources/python/310 <src/nitpick/resources/python/310.toml>`_
253253
- Python 3.10
254+
* - `py://nitpick/resources/python/311 <src/nitpick/resources/python/311.toml>`_
255+
- Python 3.11
254256
* - `py://nitpick/resources/python/37 <src/nitpick/resources/python/37.toml>`_
255257
- Python 3.7
256258
* - `py://nitpick/resources/python/38 <src/nitpick/resources/python/38.toml>`_

‎docs/ideas/yaml/contains.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[[".github/workflows/python.yaml".contains]]
44
__jmespath = "jobs.build.strategy.matrix"
55
os = ["ubuntu-latest", "macos-latest", "windows-latest"]
6-
"python-version" = ["3.7", "3.8", "3.9", "3.10"]
6+
"python-version" = ["3.7", "3.8", "3.9", "3.10", "3.11"]
77

88
# 3. Same as item 4 on "jmespath-on-section.toml", but with a different syntax.
99
[[".github/workflows/python.yaml".contains]]
@@ -56,7 +56,7 @@ __yaml = "- uses: actions/checkout@v2"
5656
[[".github/workflows/python.yaml".contains_sorted]]
5757
__jmespath = "jobs.build.strategy.matrix"
5858
os = ["ubuntu-latest", "macos-latest", "windows-latest"]
59-
"python-version" = ["3.7", "3.8", "3.9", "3.10"]
59+
"python-version" = ["3.7", "3.8", "3.9", "3.10", "3.11"]
6060

6161
[[".github/workflows/python.yaml".contains_sorted]]
6262
__jmespath = "jobs.build"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# This should be the result of a parent style including all the styles in this directory
22
[".github/workflows/python.yaml".jobs.build.strategy.matrix]
33
os = ["ubuntu-latest", "macos-latest", "windows-latest"]
4-
"python-version" = ["3.7", "3.8", "3.9", "3.10"]
4+
"python-version" = ["3.7", "3.8", "3.9", "3.10", "3.11"]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[".github/workflows/python.yaml".jobs.build.strategy.matrix]
2+
"python-version" = ["3.11"]

‎docs/library.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ python
9292
- Description
9393
* - :gitref:`py://nitpick/resources/python/310 <src/nitpick/resources/python/310.toml>`
9494
- Python 3.10
95+
* - :gitref:`py://nitpick/resources/python/311 <src/nitpick/resources/python/311.toml>`
96+
- Python 3.11
9597
* - :gitref:`py://nitpick/resources/python/37 <src/nitpick/resources/python/37.toml>`
9698
- Python 3.7
9799
* - :gitref:`py://nitpick/resources/python/38 <src/nitpick/resources/python/38.toml>`

‎src/nitpick/resources/python/311.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[nitpick.meta]
2+
name = "Python 3.11"
3+
4+
["pyproject.toml".tool.poetry.dependencies]
5+
python = "^3.11"

‎src/nitpick/resources/python/github-workflow.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ fail-fast = false
1111

1212
[".github/workflows/python.yaml".jobs.build.strategy.matrix]
1313
os = ["ubuntu-latest", "windows-latest", "macos-latest"]
14-
python-version = ["3.7", "3.8", "3.9", "3.10"]
14+
python-version = ["3.7", "3.8", "3.9", "3.10", "3.11"]
1515

1616
[".github/workflows/python.yaml".jobs.build]
1717
name = "${{ matrix.python-version }} ${{ matrix.os }}"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[tool.poetry.dependencies]
2+
python = "^3.11"

‎tests/test_builtin/python/github-workflow/.github/workflows/python.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
- '3.8'
1616
- '3.9'
1717
- '3.10'
18+
- '3.11'
1819
name: ${{ matrix.python-version }} ${{ matrix.os }}
1920
runs-on: ${{ matrix.os }}
2021
env:

‎tests/test_yaml/new-desired.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ with = {"python-version" = "${{ matrix.python-version }}"}
1212

1313
[".github/workflows/python.yaml".jobs.build.strategy.matrix]
1414
os = ["ubuntu-latest", "macos-latest", "windows-latest"]
15-
"python-version" = ["3.7", "3.8", "3.9", "3.10"]
15+
"python-version" = ["3.7", "3.8", "3.9", "3.10", "3.11"]
1616

1717
[".github/workflows/python.yaml".jobs.build]
1818
"runs-on" = "${{ matrix.os }}"

‎tests/test_yaml/new-expected.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ jobs:
1717
- '3.8'
1818
- '3.9'
1919
- '3.10'
20+
- '3.11'
2021
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)