Skip to content

Commit 250f987

Browse files
chore: consolidate template file headers
Co-authored-by: OpenAI <support@openai.com>
1 parent 4c6b17a commit 250f987

24 files changed

Lines changed: 38 additions & 27 deletions

File tree

cookiecutter.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
"github_owner": "sphinx-notes",
1010
"github_repo": "{{ cookiecutter.name }}",
11+
"generated_file_header": "This file is generated from {{ cookiecutter.github_owner }}/cookiecutter.",
12+
"dont_edit_header": "DO NOT EDIT.",
1113
"pypi_name": "{{ cookiecutter.full_name }}",
1214
"pypi_owner": "SilverRainZ",
1315

{{cookiecutter.name}}/.github/workflows/lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# {{ cookiecutter.generated_file_header }}
2+
13
name: Ruff
24
on: [ push, pull_request ]
35

{{cookiecutter.name}}/.github/workflows/pages.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# {{ cookiecutter.generated_file_header }}
2+
13
name: Deploy Sphinx documentation to Pages
24

35
# Runs on pushes targeting the default branch

{{cookiecutter.name}}/.github/workflows/pypi.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# {{ cookiecutter.generated_file_header }}
2+
13
name: Publish package distributions to PyPI
24

35
on:

{{cookiecutter.name}}/.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# {{ cookiecutter.generated_file_header }}
2+
13
name: Publish Github Release
24

35
on:

{{cookiecutter.name}}/.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# {{ cookiecutter.generated_file_header }}
2+
13
name: Test
24
on:
35
push:

{{cookiecutter.name}}/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# {{ cookiecutter.generated_file_header }}
2+
13
# Byte-compiled / optimized / DLL files
24
__pycache__/
35
*.py[cod]

{{cookiecutter.name}}/.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# {{ cookiecutter.generated_file_header }}
2+
13
repos:
24
- repo: https://github.com/astral-sh/ruff-pre-commit
35
rev: v0.14.11

{{cookiecutter.name}}/MANIFEST.in

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# This file is generated from {{ cookiecutter.github_owner }}/cookiecutter.
2-
# You need to consider modifying the TEMPLATE or modifying THIS FILE.
1+
# {{ cookiecutter.generated_file_header }}
32

43
include LICENSE
54
include README.rst

{{cookiecutter.name}}/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# This file is generated from {{ cookiecutter.github_owner }}/cookiecutter.
2-
# You need to consider modifying the TEMPLATE or modifying THIS FILE.
1+
# {{ cookiecutter.generated_file_header }}
32

43
LANG = en_US.UTF-8
54

0 commit comments

Comments
 (0)