Skip to content

Commit 9942a44

Browse files
authored
Merge pull request #64 from nahoj/rm_types_all
Maintenance: several updates
2 parents e7f80ef + b91ac65 commit 9942a44

10 files changed

Lines changed: 34 additions & 20 deletions

File tree

.github/workflows/test.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
- 'v*'
99
pull_request:
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
testing:
1316
strategy:
@@ -17,17 +20,17 @@ jobs:
1720
# - macos-latest
1821
# - windows-latest
1922
python-version:
20-
- "3.8"
21-
- "3.9"
22-
- "3.10"
2323
- "3.11"
24+
- "3.12"
25+
- "3.13"
26+
- "3.14"
2427

2528
runs-on: ${{ matrix.os }}
2629
steps:
27-
- uses: actions/checkout@v2
30+
- uses: actions/checkout@v5
2831

2932
- name: Set up Python ${{ matrix.python-version }}
30-
uses: actions/setup-python@v4
33+
uses: actions/setup-python@v6
3134
with:
3235
python-version: ${{ matrix.python-version }}
3336
cache: pip

project-template/{{ project_repo_name }}/.github/issue_template.md renamed to project-template/{{ project_repo_name }}/.github/ISSUE_TEMPLATE/new-issue.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
---
2+
name: New Issue
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---
8+
19
Hi! Thank you for the awesome xontrib! I gave it a star!
210

311
I've found that ...

project-template/{{ project_repo_name }}/.github/workflows/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV
2626

2727
# Drafts your next Release notes as Pull Requests are merged into "master"
28-
- uses: release-drafter/release-drafter@v5
28+
- uses: release-drafter/release-drafter@v7
2929
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
3030
# with:
3131
# config-name: my-config.yml

project-template/{{ project_repo_name }}/.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ jobs:
2222
runs-on: ubuntu-latest
2323

2424
steps:
25-
- uses: actions/checkout@v3
25+
- uses: actions/checkout@v5
2626
- name: Set up Python
27-
uses: actions/setup-python@v3
27+
uses: actions/setup-python@v6
2828
with:
2929
python-version: '3.x'
3030
- name: Install dependencies

project-template/{{ project_repo_name }}/.github/workflows/test.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
pull_request:
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
testing:
912
strategy:
@@ -13,20 +16,20 @@ jobs:
1316
- macos-latest
1417
- windows-latest
1518
python-version:
16-
- "3.8"
17-
- "3.9"
18-
- "3.10"
1919
- "3.11"
20+
- "3.12"
21+
- "3.13"
22+
- "3.14"
2023
runs-on: {% raw %}${{ matrix.os }}{% endraw %}
2124
steps:
22-
- uses: actions/checkout@v3
25+
- uses: actions/checkout@v5
2326
{%- if package_manager == 'poetry' %}
2427
- name: Install poetry
2528
run: pipx install poetry
2629
{% endif -%}
2730
{% raw %}
2831
- name: Set up Python ${{ matrix.python-version }}
29-
uses: actions/setup-python@v3
32+
uses: actions/setup-python@v6
3033
with:
3134
python-version: ${{ matrix.python-version }} {% endraw %}
3235
cache: {% if package_manager == 'poetry' %}poetry{% else %}pip{% endif %}
@@ -38,4 +41,4 @@ jobs:
3841
- name: Run tests
3942
run: |
4043
xonsh -c "xontrib load {{ project_package_name}}"
41-
poetry run pytest
44+
{% if package_manager == 'poetry' %}poetry run pytest{% else %}pytest{% endif %}

project-template/{{ project_repo_name }}/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ classifiers = [
3737
"Topic :: System :: System Shells",
3838
"Topic :: Terminals",
3939
]
40-
requires-python = ">=3.8"
40+
requires-python = ">=3.11"
4141
dependencies = ["xonsh>=0.12.5"]
4242
authors = [
4343
{ name = "{{full_name}}", email = "{{email}}" },
@@ -64,7 +64,7 @@ Code = "https://github.com/{{github_username}}/{{project_repo_name}}"
6464

6565
{% if package_manager == 'poetry' %}
6666
[tool.poetry.dependencies]
67-
python = ">=3.8"
67+
python = ">=3.11"
6868
xonsh = ">=0.12.5"
6969
{% endif %}
7070

@@ -120,7 +120,7 @@ force-exclude = '''
120120
'''
121121

122122
[tool.ruff]
123-
select = [
123+
lint.select = [
124124
"E",
125125
"F",
126126
"B", # flake8-bugbear

project-template/{{ project_repo_name }}/{% if enable_pre_commit_hooks %}.pre-commit-config.yaml{%endif%}

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ repos:
1010
hooks:
1111
- id: mypy
1212
args: [ "--allow-untyped-globals", "--ignore-missing-imports" ]
13-
additional_dependencies: [ types-all ]
1413

1514
- repo: https://github.com/pre-commit/pre-commit-hooks
1615
rev: ""
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
from setuptools import setup
2+
23
setup()

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ authors = [
1515
{ name = "Your Name", email = "you@example.com" },
1616
]
1717
license = { text = "MIT" }
18-
requires-python = ">=3.8,<4.0"
18+
requires-python = ">=3.11,<4.0"
1919
dependencies = [
2020
"copier>=9",
2121
"copier-templates-extensions"

tests/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
".copier-answers.yml",
33
".editorconfig",
44
".gitattributes",
5-
".github/issue_template.md",
5+
".github/ISSUE_TEMPLATE/new-issue.md",
66
".github/FUNDING.yml",
77
".github/pull_request_template.md",
88
".github/release-drafter.yml",

0 commit comments

Comments
 (0)