Skip to content

Commit 24d66fd

Browse files
authored
Update Poetry + Python packages (#86)
1 parent 66e0b25 commit 24d66fd

14 files changed

Lines changed: 1698 additions & 1543 deletions

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v4
2020
- name: Install Poetry
21-
run: pipx install poetry==1.7.1
21+
run: pipx install poetry==1.8.3
2222

2323
- name: Set up Python
2424
uses: actions/setup-python@v5

.github/workflows/rename-project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
6666
- name: Install Poetry
6767
if: env.is_template == 'false' && env.needs_renaming == 'true'
68-
run: pipx install poetry==1.7.1
68+
run: pipx install poetry==1.8.3
6969

7070
- name: Set up Python
7171
if: env.is_template == 'false' && env.needs_renaming == 'true'

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ test: ## Run the tests
1717

1818
.PHONY: install
1919
install: ## Install the dependencies excluding dev.
20-
poetry install --only main --no-root
20+
poetry install --only main
2121

2222
.PHONY: install-dev
2323
install-dev: ## Install the dependencies including dev.
24-
poetry install --no-root
24+
poetry install
2525

2626
.PHONY: megalint
2727
megalint: ## Run the mega-linter.

poetry.lock

Lines changed: 428 additions & 390 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

project_template/.github/workflows/ci.yml.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- uses: actions/checkout@v4
2222
{%- if package_manager == 'poetry' %}
2323
- name: Install Poetry
24-
run: pipx install poetry==1.7.1
24+
run: pipx install poetry==1.8.3
2525
{%- endif %}
2626

2727
- name: Set up Python

project_template/Makefile.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ mypy: ## Run mypy.
3737
.PHONY: install
3838
install: ## Install the dependencies excluding dev.
3939
{% if package_manager == "poetry" -%}
40-
poetry install --only main --no-root
40+
poetry install --only main
4141
{%- elif package_manager == "pipenv" -%}
4242
pipenv install
4343
{%- endif %}
4444

4545
.PHONY: install-dev
4646
install-dev: ## Install the dependencies including dev.
4747
{% if package_manager == "poetry" -%}
48-
poetry install --no-root
48+
poetry install
4949
{%- elif package_manager == "pipenv" -%}
5050
pipenv install --dev
5151
{%- endif %}

project_template/{% if not_pipenv_copier %}Pipfile.lock{% endif %}.jinja

Lines changed: 178 additions & 162 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

project_template/{% if not_poetry_copier %}poetry.lock{% endif %}.jinja

Lines changed: 192 additions & 169 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

project_template/{% if not_poetry_copier %}pyproject.toml{% endif %}.jinja

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,18 @@ description = "{{ repository_description }}"
55
authors = ["{{ repository_owner }}"]
66
license = "MIT"
77
readme = "README.md"
8+
package-mode = false
89

910
[tool.poetry.dependencies]
1011
python = "^3.10"
1112

1213
[tool.poetry.group.dev.dependencies]
1314
# :TODO: Remove pylint when ruff supports all pylint rules
1415
# :TODO: Remove black when ruff supports all black rules
15-
pylint = "^3.1.0"
16-
black = "^24.4.1"
17-
pytest = "^8.1.1"
18-
pytest-xdist = "^3.5.0"
19-
ruff = "^0.4.2"
16+
pylint = "^3.3.1"
17+
black = "^24.10.0"
18+
pytest = "^8.3.3"
19+
pytest-xdist = "^3.6.1"
20+
ruff = "^0.7.1"
2021
pytest-cov = "^5.0.0"
21-
mypy = "^1.10.0"
22+
mypy = "^1.13.0"

project_template/{% if pipenv_copier %}Pipfile.lock{% endif %}.jinja

Lines changed: 414 additions & 385 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)