Skip to content

Commit 1b829bb

Browse files
authored
Update python version and dependencies (#140)
* Add dependabot config file for monthly alerts * Update python version and dependencies
1 parent aa546ef commit 1b829bb

File tree

7 files changed

+787
-724
lines changed

7 files changed

+787
-724
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "monthly"
7+
open-pull-requests-limit: 99
8+
groups:
9+
github-action-dependencies:
10+
patterns:
11+
- "*"
12+
13+
- package-ecosystem: "pip"
14+
directory: "/"
15+
schedule:
16+
interval: "monthly"
17+
versioning-strategy: "lockfile-only"
18+
allow:
19+
- dependency-type: "all"
20+
groups:
21+
poetry-dependencies:
22+
patterns:
23+
- "*"

{{cookiecutter.project_name}}/.github/workflows/tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
steps:
1818
- name: Check out the repository
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@v6
2020
with:
2121
fetch-depth: 0 # Shallow clones disabled for a better SonarCloud analysis
2222

@@ -25,10 +25,10 @@ jobs:
2525
pipx install poetry
2626
poetry --version
2727
28-
- name: Set up Python 3.10
29-
uses: actions/setup-python@v5
28+
- name: Set up Python 3.13
29+
uses: actions/setup-python@v6
3030
with:
31-
python-version: "3.10"
31+
python-version: "3.13"
3232
cache: "poetry"
3333

3434
- name: Install dependencies
@@ -49,4 +49,4 @@ jobs:
4949
SONAR_TOKEN: {{ "${{ secrets.SONAR_TOKEN }}" }}
5050
# No need to run SonarCloud analysis if dependabot update or token not defined
5151
if: env.SONAR_TOKEN != '' && (github.actor != 'dependabot[bot]')
52-
uses: SonarSource/sonarqube-scan-action@v5.3.0
52+
uses: SonarSource/sonarqube-scan-action@v7.0.0

{{cookiecutter.project_name}}/.sonarcloud.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ sonar.tests=tests/
1919
# sonar.cpd.exclusions=experimental/**
2020

2121
# Python version (for python projects only)
22-
sonar.python.version=3.10,3.11,3.12
22+
sonar.python.version=3.12,3.13,3.14

{{cookiecutter.project_name}}/config/config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from dynaconf import Dynaconf
22

3-
43
settings = Dynaconf(
54
settings_files=["settings.toml"],
65
envvar_prefix="DYNACONF",

{{cookiecutter.project_name}}/poetry.lock

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

{{cookiecutter.project_name}}/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ description = "{{cookiecutter.description}}"
55
authors = [{name = "{{cookiecutter.full_name}}", email = "{{cookiecutter.email}}"}]
66
license = "MIT"
77
readme = "README.md"
8-
requires-python = ">=3.10"
8+
requires-python = ">=3.12"
99
dependencies = [
1010
"dynaconf >=3.2",
1111
"ipykernel >=6.29",
12+
"pyarrow >=23.0",
1213
]
1314

1415
[dependency-groups]
@@ -31,7 +32,7 @@ packages = [
3132
]
3233

3334
[tool.poetry.dependencies]
34-
python = ">=3.10,<4.0"
35+
python = ">=3.12,<4.0"
3536

3637
[build-system]
3738
requires = ["poetry-core>=2.2"]
@@ -41,7 +42,6 @@ build-backend = "poetry.core.masonry.api"
4142
profile = "black"
4243
force_single_line = true
4344
skip_gitignore = true
44-
lines_after_imports = 2
4545
# The line below is needed for jupyter notebooks stored as .py in percent format.
4646
# See https://github.com/PyCQA/isort/issues/1338 for details
4747
treat_comments_as_code = ["# %%"]

{{cookiecutter.project_name}}/src/notebooks/imports.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424
import pandas as pd
2525

26-
2726
# %% [markdown]
2827
# ### Demo av importer fra produksjonsnivå
2928

0 commit comments

Comments
 (0)