Skip to content

Commit aab5390

Browse files
authored
Merge pull request #269 from lyz-code/fix/pdm
feat: support Python 3.11
2 parents 3bf1a88 + b23cb63 commit aab5390

File tree

5 files changed

+712
-952
lines changed

5 files changed

+712
-952
lines changed

.github/workflows/install.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
max-parallel: 3
1313
matrix:
14-
python-version: [3.7, 3.8, 3.9, '3.10']
14+
python-version: [3.8, 3.9, '3.10', '3.11']
1515
steps:
1616
- uses: actions/checkout@v1
1717
- name: Set up Python ${{ matrix.python-version }}

.github/workflows/tests.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
max-parallel: 4
1616
matrix:
17-
python-version: [3.7, 3.8, 3.9, '3.10']
17+
python-version: [3.8, 3.9, '3.10', '3.11']
1818
steps:
1919
- uses: actions/checkout@v1
2020
- name: Set up Python ${{ matrix.python-version }}
@@ -31,20 +31,12 @@ jobs:
3131
source .venv/bin/activate
3232
pdm config python.use_venv True
3333
make install
34-
# 3.7 is giving me some issues with flake8 and importlib-metadata, until
35-
# https://github.com/flakeheaven/flakeheaven/issues/132 is done, I won't spend
36-
# time testing in this environment.
37-
# https://github.com/lyz-code/mkdocs-newsletter/actions/runs/3548202587/jobs/5959150030
3834
- name: Test linters
39-
run: if [[ ${{ matrix.python-version }} != '3.7' ]];then make lint; fi
35+
run: make lint
4036
- name: Test type checkers
4137
run: make mypy
42-
# 3.7 is giving me some issues with flake8 and importlib-metadata, until
43-
# https://github.com/flakeheaven/flakeheaven/issues/132 is done, I won't spend
44-
# time testing in this environment.
45-
# https://github.com/lyz-code/mkdocs-newsletter/actions/runs/3548202587/jobs/5959150030
4638
- name: Test security
47-
run: if [[ ${{ matrix.python-version }} != '3.7' ]];then make security; fi
39+
run: make security
4840
- name: Test with pytest
4941
run: make test
5042
- name: Upload Coverage

mkdocs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ plugins:
1616
rendering:
1717
show_root_heading: true
1818
heading_level: 1
19-
watch: [src]
2019
- autolinks
2120
- git-revision-date-localized:
2221
type: timeago
@@ -25,6 +24,9 @@ plugins:
2524
minify_html: true
2625
- section-index
2726

27+
watch:
28+
- src
29+
2830
markdown_extensions:
2931
- abbr
3032
- def_list

0 commit comments

Comments
 (0)