File tree Expand file tree Collapse file tree 4 files changed +15
-4
lines changed
{{cookiecutter.project_slug}} Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 1616 - name : ' Install Python'
1717 uses : actions/setup-python@v4
1818 with :
19- python-version : ' 3.8 '
19+ python-version : ' 3.10 '
2020 - name : ' Install cookiecutter'
2121 run : pip install cookiecutter
2222 - name : ' Install Poetry'
3737 runs-on : ubuntu-latest
3838 strategy :
3939 matrix :
40- python-version : ['3.8 ', '3.10 ']
40+ python-version : ['3.10 ', '3.11 ']
4141 steps :
4242 - name : ' Install Python'
4343 uses : actions/setup-python@v4
5252 key : test-project-${{ github.run_id }}
5353 - name : ' Run tests'
5454 run : make -C test-project all
55+ - name : ' Run pyupgrade'
56+ run : make -C test-project pyupgrade
5557
5658 nix-build :
5759 name : ' Build with Nix'
Original file line number Diff line number Diff line change @@ -82,3 +82,11 @@ black: poetry-install
8282
8383check-black : poetry-install
8484 $(POETRY_RUN ) black --check src
85+
86+
87+ # Optional tools
88+
89+ SRC_FILES := $(shell find src -type f -name '* .py')
90+
91+ pyupgrade : poetry-install
92+ $(POETRY_RUN ) pyupgrade --py310-plus $(SRC_FILES )
Original file line number Diff line number Diff line change 1111 poetry2nix . overlay
1212 ( final : prev : {
1313 { { cookiecutter . project_slug } } = prev . poetry2nix . mkPoetryApplication {
14- python = prev . python39 ;
14+ python = prev . python310 ;
1515 projectDir = ./. ;
1616 groups = [ ] ;
1717 # We remove `dev` from `checkGroups`, so that poetry2nix does not try to resolve dev dependencies.
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ authors = [
1111]
1212
1313[tool .poetry .dependencies ]
14- python = " ^3.8 "
14+ python = " ^3.10 "
1515
1616[tool .poetry .group .dev .dependencies ]
1717autoflake = " *"
@@ -28,6 +28,7 @@ pytest = "*"
2828pytest-cov = " *"
2929pytest-mock = " *"
3030pytest-xdist = " *"
31+ pyupgrade = " *"
3132
3233[tool .isort ]
3334profile = " black"
You can’t perform that action at this time.
0 commit comments