Skip to content

chore(sync): 🔨 synced file(s) with seedcase-project/template-python-project #1049

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Feb 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .cz.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.commitizen]
bump_message = "build(version): update version from $current_version to $new_version [skip ci]"
bump_message = "build(version): :bookmark: update version from $current_version to $new_version [skip ci]"
update_changelog_on_bump = true
version_provider = "poetry"
version_files = [
Expand Down
1 change: 0 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
// List of extensions which should be recommended for users of this workspace.
"recommendations": [
"jebbs.plantuml",
"donjayamanne.githistory",
"felipecaputo.git-project-manager",
"GitHub.vscode-pull-request-github",
Expand Down
11 changes: 0 additions & 11 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,6 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "seedcase-debugger",
"python": "${workspaceFolder}/.venv/bin/python3",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/manage.py",
"console": "internalConsole",
"args": [
"runserver"
]
},
{
"name": "test-debugger",
"type": "debugpy",
Expand Down
6 changes: 3 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
"python.defaultInterpreterPath": "${workspaceFolder}/.venv",
"python.languageServer": "Pylance",
"files.insertFinalNewline": true,
"cSpell.enableFiletypes": [
"quarto"
],
"cSpell.enabledFileTypes": {
"quarto": true
},
"cSpell.language": "en,en-GB",
"python.testing.pytestEnabled": true,
"python.testing.pytestPath": "${workspaceFolder}/.venv/bin/pytest",
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MIT License

Copyright (c) 2023-2024 Aarhus University
Copyright (c) 2023-2025 Aarhus University

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
14 changes: 5 additions & 9 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@ run-all: install-deps format-python check-python test-python check-commits build
install-deps:
poetry install

# Generate SVG images from all PlantUML files
generate-puml-all:
docker run --rm -v $(pwd):/puml -w /puml ghcr.io/plantuml/plantuml:latest -tsvg "**/*.puml"

# Generate SVG image from specific PlantUML file
generate-puml name:
docker run --rm -v $(pwd):/puml -w /puml ghcr.io/plantuml/plantuml:latest -tsvg "**/{{name}}.puml"

# Run the Python tests
test-python:
poetry run pytest
Expand All @@ -39,7 +31,11 @@ build-website:
# Run checks on commits with non-main branches
check-commits:
#!/bin/zsh
if [[ $(git rev-parse --abbrev-ref HEAD) != "main" ]]
branch_name=$(git rev-parse --abbrev-ref HEAD)
number_of_commits=$(git rev-list --count HEAD ^$branch_name)
if [[ ${branch_name} != "main" && ${number_of_commits} -gt 0 ]]
then
poetry run cz check --rev-range main..HEAD
else
echo "Not on main or haven't committed yet."
fi