Skip to content

Commit b4f2fdb

Browse files
authored
feat: Python 3.11 support (#32)
1 parent 2683b6a commit b4f2fdb

File tree

13 files changed

+76
-49
lines changed

13 files changed

+76
-49
lines changed

.github/ISSUE_TEMPLATE/bug.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
---
22
name: Bug report
33
about: Report an error that you've encountered.
4-
labels: 'bug'
4+
labels: bug
55
---
6+
67
### Environment information
78

8-
* Python Version: x.x.x
9-
* OS: macOS/linux/win
9+
- Python Version: x.x.x
10+
- OS: macOS/linux/win
1011

1112
Python environment
1213

@@ -19,9 +20,9 @@ $ pip freeze
1920

2021
Please include information like:
2122

22-
* what command you ran
23-
* the code that caused the failure (see [this link](https://help.github.com/articles/basic-writing-and-formatting-syntax/) for help with formatting code)
24-
* full output of the error you received
23+
- what command you ran
24+
- the code that caused the failure (see [this link](https://help.github.com/articles/basic-writing-and-formatting-syntax/) for help with formatting code)
25+
- full output of the error you received
2526

2627
### How can it be fixed?
2728

.github/ISSUE_TEMPLATE/feature.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
name: Feature request
33
about: Request a new feature, or an improvement to existing functionality.
4-
labels: 'enhancement'
4+
labels: enhancement
55
---
66

77
### Overview
88

99
Provide a simple overview of what you wish to see added. Please include:
1010

11-
* What you are trying to do
12-
* Why Ape's current functionality is inadequate to address your goal
11+
- What you are trying to do
12+
- Why Ape's current functionality is inadequate to address your goal
1313

1414
### Specification
1515

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,48 @@
11
---
22
name: Work item
33
about: New work item
4-
labels: 'backlog'
5-
4+
labels: backlog
65
---
76

87
### Elevator pitch:
8+
99
<!-- 1-2 line summary of the scope of this work item -->
1010

1111
### Value:
12+
1213
<!--
1314
Who is this for?
1415
Persona or group of people whom will derive value from the scenario.
1516
What benefits will be achieved or business metrics improved?
1617
-->
1718

1819
### Dependencies:
20+
1921
<!-- Call out key people, teams, tech dependencies, or assumptions. -->
2022

2123
### Design approach:
24+
2225
<!--
2326
Free text / diagram / whiteboard picture / etc. that clearly shows your approach and considerations to build the task list.
2427
Existing code patterns in production code base that you will base your work off of.
2528
-->
2629

2730
### Task list:
31+
2832
<!-- Bulleted list describing the exit criteria, desired end state and any documentation, monitors, work for DRI, etc. that will need to be added to make sure someone else can support once it's live. -->
29-
* [ ] Tasks go here
3033

31-
### Estimated completion date:
34+
- [ ] Tasks go here
3235

36+
### Estimated completion date:
3337

3438
### Design review:
39+
3540
<!-- 1-2 people needed for signoff -->
41+
3642
Do not signoff unless:
37-
- 1) agreed the tasks and design approach will achieve acceptance, and
38-
- 2) the work can be completed by one person within the SLA.
39-
Design reviewers should consider simpler approaches to achieve goals.
43+
44+
- 1. agreed the tasks and design approach will achieve acceptance, and
45+
- 2. the work can be completed by one person within the SLA.
46+
Design reviewers should consider simpler approaches to achieve goals.
4047

4148
(Please leave a comment to sign off)

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
### What I did
2+
23
<!-- Create a summary of the changes -->
34

45
<!-- The `fixes:` field denotes an issue that will be marked resolved by merging this PR -->
6+
57
fixes: #
68

79
### How I did it
10+
811
<!-- Discuss the thought process behind the change -->
912

1013
### How to verify it
14+
1115
<!-- Discuss any methods that should be used to verify the change -->
1216

1317
### Checklist
18+
1419
<!-- All PRs must complete the following checklist before being merged -->
1520

1621
- [ ] All changes are completed

.github/workflows/commitlint.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v3
1313
with:
1414
fetch-depth: 0
1515

1616
- name: Setup Python
17-
uses: actions/setup-python@v2
17+
uses: actions/setup-python@v4
1818
with:
19-
python-version: 3.8
19+
python-version: "3.10"
2020

2121
- name: Install Dependencies
2222
run: pip install .[dev]

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v3
1414

1515
- name: Set up Python
16-
uses: actions/setup-python@v2
16+
uses: actions/setup-python@v4
1717
with:
18-
python-version: 3.8
18+
python-version: "3.10"
1919

2020
- name: Install dependencies
2121
run: |

.github/workflows/test.yaml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v3
1414

1515
- name: Setup Python
16-
uses: actions/setup-python@v2
16+
uses: actions/setup-python@v4
1717
with:
18-
python-version: 3.8
18+
python-version: "3.10"
1919

2020
- name: Install Dependencies
2121
run: pip install .[lint]
@@ -29,16 +29,19 @@ jobs:
2929
- name: Run isort
3030
run: isort --check-only .
3131

32+
- name: Run mdformat
33+
run: mdformat . --check
34+
3235
type-check:
3336
runs-on: ubuntu-latest
3437

3538
steps:
36-
- uses: actions/checkout@v2
39+
- uses: actions/checkout@v3
3740

3841
- name: Setup Python
39-
uses: actions/setup-python@v2
42+
uses: actions/setup-python@v4
4043
with:
41-
python-version: 3.8
44+
python-version: "3.10"
4245

4346
- name: Install Dependencies
4447
run: pip install .[lint,test] # Might need test deps
@@ -52,13 +55,13 @@ jobs:
5255
strategy:
5356
matrix:
5457
os: [ubuntu-latest, macos-latest] # eventually add `windows-latest`
55-
python-version: [3.7, 3.8, 3.9, "3.10"]
58+
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
5659

5760
steps:
58-
- uses: actions/checkout@v2
61+
- uses: actions/checkout@v3
5962

6063
- name: Setup Python
61-
uses: actions/setup-python@v2
64+
uses: actions/setup-python@v4
6265
with:
6366
python-version: ${{ matrix.python-version }}
6467

@@ -75,12 +78,12 @@ jobs:
7578
fail-fast: true
7679

7780
steps:
78-
- uses: actions/checkout@v2
81+
- uses: actions/checkout@v3
7982

8083
- name: Setup Python
81-
uses: actions/setup-python@v2
84+
uses: actions/setup-python@v4
8285
with:
83-
python-version: 3.8
86+
python-version: "3.10"
8487

8588
- name: Install Dependencies
8689
run: pip install .[test]

.github/workflows/title.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v3
1616

1717
- name: Setup Python
18-
uses: actions/setup-python@v2
18+
uses: actions/setup-python@v4
1919
with:
20-
python-version: 3.8
20+
python-version: "3.10"
2121

2222
- name: Install Dependencies
2323
run: pip install commitizen

.mdformat.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
number = true

.pre-commit-config.yaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,27 @@ repos:
1010
- id: isort
1111

1212
- repo: https://github.com/psf/black
13-
rev: 22.6.0
13+
rev: 23.3.0
1414
hooks:
1515
- id: black
1616
name: black
1717

18-
- repo: https://gitlab.com/pycqa/flake8
19-
rev: 4.0.1
18+
- repo: https://github.com/pycqa/flake8
19+
rev: 6.0.0
2020
hooks:
2121
- id: flake8
2222

2323
- repo: https://github.com/pre-commit/mirrors-mypy
24-
rev: v0.971
24+
rev: v0.991
2525
hooks:
2626
- id: mypy
27-
additional_dependencies: [types-requests]
27+
additional_dependencies: [types-setuptools, types-requests]
28+
29+
- repo: https://github.com/executablebooks/mdformat
30+
rev: 0.7.14
31+
hooks:
32+
- id: mdformat
33+
additional_dependencies: [mdformat-gfm, mdformat-frontmatter]
2834

2935
default_language_version:
3036
python: python3

0 commit comments

Comments
 (0)