Skip to content
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
6 changes: 5 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,15 @@
}
},
"features": {
"ghcr.io/devcontainers-extra/features/poetry:2": {},
"ghcr.io/devcontainers-extra/features/uv:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers/features/node:1": {},
"ghcr.io/devcontainers/features/python:1": {
"installTools": false
},
"ghcr.io/devcontainers-extra/features/pre-commit:2": {},
"ghcr.io/devcontainers/features/common-utils:2": {
"installOhMyZsh": true
}
},
"image": "mcr.microsoft.com/vscode/devcontainers/python:3.12",
Expand Down
44 changes: 22 additions & 22 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,56 +6,56 @@ repos:
name: 🐶 Ruff Linter
language: system
types: [python]
entry: poetry run ruff check --fix
entry: uv run ruff check --fix
require_serial: true
stages: [commit, push, manual]
- id: ruff-format
name: 🐶 Ruff Formatter
language: system
types: [python]
entry: poetry run ruff format
entry: uv run ruff format
require_serial: true
stages: [commit, push, manual]
- id: check-ast
name: 🐍 Check Python AST
language: system
types: [python]
entry: poetry run check-ast
entry: uv run check-ast
- id: check-case-conflict
name: 🔠 Check for case conflicts
language: system
entry: poetry run check-case-conflict
entry: uv run check-case-conflict
- id: check-docstring-first
name: ℹ️ Check docstring is first
language: system
types: [python]
entry: poetry run check-docstring-first
entry: uv run check-docstring-first
- id: check-executables-have-shebangs
name: 🧐 Check that executables have shebangs
language: system
types: [text, executable]
entry: poetry run check-executables-have-shebangs
entry: uv run check-executables-have-shebangs
stages: [commit, push, manual]
- id: check-json
name: { Check JSON files
language: system
types: [json]
entry: poetry run check-json
entry: uv run check-json
- id: check-merge-conflict
name: 💥 Check for merge conflicts
language: system
types: [text]
entry: poetry run check-merge-conflict
entry: uv run check-merge-conflict
- id: check-symlinks
name: 🔗 Check for broken symlinks
language: system
types: [symlink]
entry: poetry run check-symlinks
entry: uv run check-symlinks
- id: check-toml
name: ✅ Check TOML files
language: system
types: [toml]
entry: poetry run check-toml
entry: uv run check-toml
- id: check-xml
name: ✅ Check XML files
entry: check-xml
Expand All @@ -65,36 +65,36 @@ repos:
name: ✅ Check YAML files
language: system
types: [yaml]
entry: poetry run check-yaml
entry: uv run check-yaml
- id: detect-private-key
name: 🕵️ Detect Private Keys
language: system
types: [text]
entry: poetry run detect-private-key
entry: uv run detect-private-key
- id: end-of-file-fixer
name: ⮐ Fix End of Files
language: system
types: [text]
entry: poetry run end-of-file-fixer
entry: uv run end-of-file-fixer
stages: [commit, push, manual]
- id: mypy
name: 🆎 Static type checking using mypy
language: system
types: [python]
entry: poetry run mypy
entry: uv run mypy
require_serial: true
- id: no-commit-to-branch
name: 🛑 Don't commit to main branch
language: system
entry: poetry run no-commit-to-branch
entry: uv run no-commit-to-branch
pass_filenames: false
always_run: true
args:
- --branch=main
- id: poetry
name: 📜 Check pyproject with Poetry
- id: uv
name: 📜 Check pyproject with uv
language: system
entry: poetry check
entry: uv lock --check
pass_filenames: false
always_run: true
- id: prettier
Expand All @@ -107,21 +107,21 @@ repos:
name: 🌟 Starring code with pylint
language: system
types: [python]
entry: poetry run pylint
entry: uv run pylint
- id: pytest
name: 🧪 Running tests and test coverage with pytest
language: system
types: [python]
entry: poetry run pytest --cov=tadoasync --cov-report=term-missing --cov-report=xml --cov-fail-under=95
entry: uv run pytest --cov=tadoasync --cov-report=term-missing --cov-report=xml --cov-fail-under=95
pass_filenames: false
- id: trailing-whitespace
name: ✄ Trim Trailing Whitespace
language: system
types: [text]
entry: poetry run trailing-whitespace-fixer
entry: uv run trailing-whitespace-fixer
stages: [commit, push, manual]
- id: yamllint
name: 🎗 Check YAML files with yamllint
language: system
types: [yaml]
entry: poetry run yamllint
entry: uv run yamllint
Loading
Loading