diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 9b92fce2..dbc9f725 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -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: | diff --git a/.github/workflows/update-hooks.yml b/.github/workflows/update-hooks.yml index eb392a78..8a899f95 100644 --- a/.github/workflows/update-hooks.yml +++ b/.github/workflows/update-hooks.yml @@ -2,7 +2,7 @@ name: Update pre-commit hooks on: schedule: - - cron: '0 4 * * 0' + - cron: "0 4 * * 0" workflow_dispatch: {} permissions: diff --git a/.vscode/extensions.json b/.vscode/extensions.json index c148a456..ff901903 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -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": [] } diff --git a/package.json b/package.json index 21a1af51..5acda2ae 100644 --- a/package.json +++ b/package.json @@ -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 + } ] } } diff --git a/scripts/pre_commit_check.py b/scripts/pre_commit_check.py index 242b3df7..65736817 100644 --- a/scripts/pre_commit_check.py +++ b/scripts/pre_commit_check.py @@ -1,8 +1,10 @@ import sys + def check_python_version(): version = sys.version print(f"Python version: {version}") + if __name__ == "__main__": check_python_version()