style: [prettier] Autoformat code via pre-commit hook

This commit is contained in:
digikwal 2025-06-24 23:44:41 +02:00
parent 562cdbaeff
commit efd094a9a4
No known key found for this signature in database
5 changed files with 63 additions and 20 deletions

View file

@ -6,10 +6,10 @@ on:
- main
- develop
paths:
- '.github/workflows/**'
- 'scripts/**'
- 'images/**'
- 'apps.json'
- ".github/workflows/**"
- "scripts/**"
- "images/**"
- "apps.json"
pull_request:
branches:
- main
@ -33,7 +33,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10.6'
python-version: "3.10.6"
- name: Install dependencies
run: |

View file

@ -2,7 +2,7 @@ name: Update pre-commit hooks
on:
schedule:
- cron: '0 4 * * 0'
- cron: "0 4 * * 0"
workflow_dispatch: {}
permissions:

View file

@ -1,8 +1,6 @@
{
"_comment": "See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.",
"_comment_format": "Extension identifier format: ${publisher}.${name}. Example: vscode.csharp",
"recommendations": [
"ms-vscode-remote.remote-containers"
],
"recommendations": ["ms-vscode-remote.remote-containers"],
"unwantedRecommendations": []
}

View file

@ -12,7 +12,10 @@
"semantic-release": "^24.2.3"
},
"release": {
"branches": ["main", "dev"],
"branches": [
"main",
"dev"
],
"plugins": [
"@semantic-release/commit-analyzer",
[
@ -21,16 +24,56 @@
"preset": "conventionalcommits",
"presetConfig": {
"types": [
{ "type": "feat", "section": "✨ Features", "hidden": false },
{ "type": "fix", "section": "🐞 Bug Fixes", "hidden": false },
{ "type": "docs", "section": "📝 Documentation", "hidden": false },
{ "type": "style", "section": "🎨 Style Changes", "hidden": false },
{ "type": "refactor", "section": "🔧 Refactoring", "hidden": false },
{ "type": "perf", "section": "⚡ Performance", "hidden": false },
{ "type": "test", "section": "✅ Tests", "hidden": false },
{ "type": "build", "section": "🚢 Build System", "hidden": false },
{ "type": "ci", "section": "🚀 CI/CD", "hidden": false },
{ "type": "chore", "section": "🧹 Chores", "hidden": false }
{
"type": "feat",
"section": "✨ Features",
"hidden": false
},
{
"type": "fix",
"section": "🐞 Bug Fixes",
"hidden": false
},
{
"type": "docs",
"section": "📝 Documentation",
"hidden": false
},
{
"type": "style",
"section": "🎨 Style Changes",
"hidden": false
},
{
"type": "refactor",
"section": "🔧 Refactoring",
"hidden": false
},
{
"type": "perf",
"section": "⚡ Performance",
"hidden": false
},
{
"type": "test",
"section": "✅ Tests",
"hidden": false
},
{
"type": "build",
"section": "🚢 Build System",
"hidden": false
},
{
"type": "ci",
"section": "🚀 CI/CD",
"hidden": false
},
{
"type": "chore",
"section": "🧹 Chores",
"hidden": false
}
]
}
}

View file

@ -1,8 +1,10 @@
import sys
def check_python_version():
version = sys.version
print(f"Python version: {version}")
if __name__ == "__main__":
check_python_version()