Skip to content

Commit 710e8e7

Browse files
committed
fix
1 parent e417bf3 commit 710e8e7

7 files changed

Lines changed: 9 additions & 15 deletions

File tree

20-poetry.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ poetry init --name "$POETRY_PROJECT_NAME" --python ">=3.14,<4" --no-interaction
2020
# Modify the existing [tool.poetry] section to add package-mode = false
2121
sed -i '/^\[tool.poetry\]/a package-mode = false' pyproject.toml
2222

23+
# Remove authors from pyproject.toml (handles both single line and multiline)
24+
python3 -c "import sys, re; sys.stdout.write(re.sub(r'(?ms)^authors = \[.*?\]\n?', '', sys.stdin.read()))" < pyproject.toml > pyproject.toml.tmp && mv pyproject.toml.tmp pyproject.toml
25+
2326
echo "__pycache__/" >> .gitignore
2427

2528
cat <<EOF >> "README.md"

example/commits.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
.gitignore | 1 +
77
README.md | 11 +++++++++++
8-
pyproject.toml | 16 ++++++++++++++++
9-
3 files changed, 28 insertions(+)
8+
pyproject.toml | 13 +++++++++++++
9+
3 files changed, 25 insertions(+)
1010

1111
--- Install and configure Flake8 with flake8-pyproject
1212

example/pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
name = "example"
33
version = "0.1.0"
44
description = ""
5-
authors = [
6-
{name = "Jan Rydzewski",email = "flegmer@gmail.com"}
7-
]
85
readme = "README.md"
96
requires-python = ">=3.14,<4"
107
dependencies = [

fastapi/example/commits.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
.gitignore | 1 +
77
README.md | 11 +++++++++++
8-
pyproject.toml | 16 ++++++++++++++++
9-
3 files changed, 28 insertions(+)
8+
pyproject.toml | 13 +++++++++++++
9+
3 files changed, 25 insertions(+)
1010

1111
--- Install and configure Flake8 with flake8-pyproject
1212

fastapi/example/pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
name = "example"
33
version = "0.1.0"
44
description = ""
5-
authors = [
6-
{name = "Jan Rydzewski",email = "flegmer@gmail.com"}
7-
]
85
readme = "README.md"
96
requires-python = ">=3.14,<4"
107
dependencies = [

flask/example/commits.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
.gitignore | 1 +
77
README.md | 11 +++++++++++
8-
pyproject.toml | 16 ++++++++++++++++
9-
3 files changed, 28 insertions(+)
8+
pyproject.toml | 13 +++++++++++++
9+
3 files changed, 25 insertions(+)
1010

1111
--- Install and configure Flake8 with flake8-pyproject
1212

flask/example/pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
name = "example"
33
version = "0.1.0"
44
description = ""
5-
authors = [
6-
{name = "Jan Rydzewski",email = "flegmer@gmail.com"}
7-
]
85
readme = "README.md"
96
requires-python = ">=3.14,<4"
107
dependencies = [

0 commit comments

Comments
 (0)