diff --git a/.coveragerc b/.coveragerc index f042d5217..629fb8e44 100644 --- a/.coveragerc +++ b/.coveragerc @@ -8,4 +8,4 @@ omit = [report] exclude_lines = pragma: no cover - if TYPE_CHECKING: \ No newline at end of file + if TYPE_CHECKING: diff --git a/.gitignore b/.gitignore index a3b4c0c07..a2e9b8af2 100644 --- a/.gitignore +++ b/.gitignore @@ -28,4 +28,4 @@ test.py # rust so *.cpython*.so -.codspeed \ No newline at end of file +.codspeed diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1d7f1ce3c..7fc3bac1f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -43,6 +43,8 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.0 hooks: + - id: end-of-file-fixer + - id: trailing-whitespace - id: check-executables-have-shebangs - id: check-merge-conflict - id: detect-private-key @@ -123,3 +125,11 @@ repos: entry: scripts/check_getLogger.sh language: script require_serial: true + - repo: https://github.com/gitleaks/gitleaks + rev: v8.16.3 + hooks: + - id: gitleaks + - repo: https://github.com/jumanjihouse/pre-commit-hooks + rev: 3.0.0 + hooks: + - id: shellcheck diff --git a/.python-version b/.python-version index 3a4f41ef3..24ee5b1be 100644 --- a/.python-version +++ b/.python-version @@ -1 +1 @@ -3.13 \ No newline at end of file +3.13 diff --git a/ci/Dockerfile.alpine b/ci/Dockerfile.alpine index a6a7ff568..5ecd08561 100644 --- a/ci/Dockerfile.alpine +++ b/ci/Dockerfile.alpine @@ -20,4 +20,4 @@ RUN \ COPY requirements-test.txt /requirements-test.txt RUN \ - uv pip install --index-strategy unsafe-best-match -r /requirements-test.txt \ No newline at end of file + uv pip install --index-strategy unsafe-best-match -r /requirements-test.txt diff --git a/ci/entrypoint.sh b/ci/entrypoint.sh index 6f22817d4..186471e84 100755 --- a/ci/entrypoint.sh +++ b/ci/entrypoint.sh @@ -8,4 +8,4 @@ rm -rf deebot_client uv pip install --no-progress --system --force-reinstall dist/deebot_client-*.whl # Disable tests, which require docker for now -pytest tests -v -m "not docker" \ No newline at end of file +pytest tests -v -m "not docker" diff --git a/mypy.ini b/mypy.ini index 27b25ee0c..97ba7af5a 100644 --- a/mypy.ini +++ b/mypy.ini @@ -24,4 +24,4 @@ ignore_missing_imports = True ignore_missing_imports = True [mypy-testfixtures.*] -ignore_missing_imports = True \ No newline at end of file +ignore_missing_imports = True diff --git a/pytest.ini b/pytest.ini index 2d49e5cee..bc18d9b16 100644 --- a/pytest.ini +++ b/pytest.ini @@ -4,4 +4,4 @@ markers = docker: marks tests, which require docker (deselect with '-m "not docker"') #timeout = 10 #log_cli=true -#log_level=DEBUG \ No newline at end of file +#log_level=DEBUG diff --git a/scripts/check_getLogger.sh b/scripts/check_getLogger.sh index 5ab61f1e6..6a6ad8972 100755 --- a/scripts/check_getLogger.sh +++ b/scripts/check_getLogger.sh @@ -15,4 +15,4 @@ for FILE in `find deebot_client/ -name "*.py"` ; do exit 1 fi done -exit \ No newline at end of file +exit diff --git a/scripts/setup.sh b/scripts/setup.sh index 433ec4804..5d02fef14 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -13,4 +13,4 @@ uv sync --frozen --group dev python -m maturin_import_hook site install # Setup pre-commit -pre-commit install \ No newline at end of file +pre-commit install