├── .github ├── CODE_OF_CONDUCT.md ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── dependabot.yml ├── sample_command.png └── workflows │ ├── ci.yml │ ├── release.yml │ └── sync_python_deps.yml ├── .gitignore ├── .mise.toml ├── .pre-commit-config.yaml ├── .pre-commit-hooks.yaml ├── .vscode └── settings.json ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── SECURITY.md ├── pdm.lock ├── pyproject.toml ├── scripts └── db_md.py ├── src └── sync_pre_commit_lock │ ├── __init__.py │ ├── _compat.py │ ├── actions │ ├── __init__.py │ ├── install_hooks.py │ └── sync_hooks.py │ ├── config.py │ ├── db.py │ ├── pdm_plugin.py │ ├── poetry_plugin.py │ ├── pre_commit_config.py │ ├── py.typed │ ├── shell.py │ ├── utils.py │ └── uv.py ├── tests ├── conftest.py ├── fixtures │ ├── pdm_project │ │ └── .pre-commit-config.yaml │ ├── poetry_project │ │ ├── .pre-commit-config.yaml │ │ ├── poetry.lock │ │ └── pyproject.toml │ ├── sample_pre_commit_config │ │ ├── pre-commit-config-document-separator.yaml │ │ ├── pre-commit-config-only-deps.expected.yaml │ │ ├── pre-commit-config-only-deps.yaml │ │ ├── pre-commit-config-start-empty-lines.yaml │ │ ├── pre-commit-config-with-deps.expected.yaml │ │ ├── pre-commit-config-with-deps.yaml │ │ ├── pre-commit-config-with-local.yaml │ │ ├── pre-commit-config-with-one-liner-deps.expected.yaml │ │ ├── pre-commit-config-with-one-liner-deps.yaml │ │ ├── pre-commit-config-without-new-deps.expected.yaml │ │ ├── pre-commit-config-without-new-deps.yaml │ │ ├── pre-commit-config.yaml │ │ └── sample-django-stubs.yaml │ └── uv_project │ │ ├── .pre-commit-config.yaml │ │ ├── pyproject.toml │ │ └── uv.lock ├── test_actions │ ├── test_install_hooks.py │ └── test_sync_hooks.py ├── test_config.py ├── test_db.py ├── test_pdm │ ├── test_pdm_integration.py │ ├── test_pdm_plugin.py │ └── test_pdm_sync_pre_commit_hook.py ├── test_poetry │ └── test_poetry_plugin.py ├── test_pre_commit_config_file.py ├── test_shell_printer.py ├── test_utils.py └── test_uv_plugin.py └── tox.ini /.github/CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/.github/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/sample_command.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/.github/sample_command.png -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.github/workflows/sync_python_deps.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/.github/workflows/sync_python_deps.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/.gitignore -------------------------------------------------------------------------------- /.mise.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/.mise.toml -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /.pre-commit-hooks.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/.pre-commit-hooks.yaml -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/SECURITY.md -------------------------------------------------------------------------------- /pdm.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/pdm.lock -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/pyproject.toml -------------------------------------------------------------------------------- /scripts/db_md.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/scripts/db_md.py -------------------------------------------------------------------------------- /src/sync_pre_commit_lock/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/src/sync_pre_commit_lock/__init__.py -------------------------------------------------------------------------------- /src/sync_pre_commit_lock/_compat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/src/sync_pre_commit_lock/_compat.py -------------------------------------------------------------------------------- /src/sync_pre_commit_lock/actions/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sync_pre_commit_lock/actions/install_hooks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/src/sync_pre_commit_lock/actions/install_hooks.py -------------------------------------------------------------------------------- /src/sync_pre_commit_lock/actions/sync_hooks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/src/sync_pre_commit_lock/actions/sync_hooks.py -------------------------------------------------------------------------------- /src/sync_pre_commit_lock/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/src/sync_pre_commit_lock/config.py -------------------------------------------------------------------------------- /src/sync_pre_commit_lock/db.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/src/sync_pre_commit_lock/db.py -------------------------------------------------------------------------------- /src/sync_pre_commit_lock/pdm_plugin.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/src/sync_pre_commit_lock/pdm_plugin.py -------------------------------------------------------------------------------- /src/sync_pre_commit_lock/poetry_plugin.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/src/sync_pre_commit_lock/poetry_plugin.py -------------------------------------------------------------------------------- /src/sync_pre_commit_lock/pre_commit_config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/src/sync_pre_commit_lock/pre_commit_config.py -------------------------------------------------------------------------------- /src/sync_pre_commit_lock/py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/src/sync_pre_commit_lock/py.typed -------------------------------------------------------------------------------- /src/sync_pre_commit_lock/shell.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/src/sync_pre_commit_lock/shell.py -------------------------------------------------------------------------------- /src/sync_pre_commit_lock/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/src/sync_pre_commit_lock/utils.py -------------------------------------------------------------------------------- /src/sync_pre_commit_lock/uv.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/src/sync_pre_commit_lock/uv.py -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/tests/conftest.py -------------------------------------------------------------------------------- /tests/fixtures/pdm_project/.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/tests/fixtures/pdm_project/.pre-commit-config.yaml -------------------------------------------------------------------------------- /tests/fixtures/poetry_project/.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/tests/fixtures/poetry_project/.pre-commit-config.yaml -------------------------------------------------------------------------------- /tests/fixtures/poetry_project/poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/tests/fixtures/poetry_project/poetry.lock -------------------------------------------------------------------------------- /tests/fixtures/poetry_project/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/tests/fixtures/poetry_project/pyproject.toml -------------------------------------------------------------------------------- /tests/fixtures/sample_pre_commit_config/pre-commit-config-document-separator.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/tests/fixtures/sample_pre_commit_config/pre-commit-config-document-separator.yaml -------------------------------------------------------------------------------- /tests/fixtures/sample_pre_commit_config/pre-commit-config-only-deps.expected.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/tests/fixtures/sample_pre_commit_config/pre-commit-config-only-deps.expected.yaml -------------------------------------------------------------------------------- /tests/fixtures/sample_pre_commit_config/pre-commit-config-only-deps.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/tests/fixtures/sample_pre_commit_config/pre-commit-config-only-deps.yaml -------------------------------------------------------------------------------- /tests/fixtures/sample_pre_commit_config/pre-commit-config-start-empty-lines.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/tests/fixtures/sample_pre_commit_config/pre-commit-config-start-empty-lines.yaml -------------------------------------------------------------------------------- /tests/fixtures/sample_pre_commit_config/pre-commit-config-with-deps.expected.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/tests/fixtures/sample_pre_commit_config/pre-commit-config-with-deps.expected.yaml -------------------------------------------------------------------------------- /tests/fixtures/sample_pre_commit_config/pre-commit-config-with-deps.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/tests/fixtures/sample_pre_commit_config/pre-commit-config-with-deps.yaml -------------------------------------------------------------------------------- /tests/fixtures/sample_pre_commit_config/pre-commit-config-with-local.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/tests/fixtures/sample_pre_commit_config/pre-commit-config-with-local.yaml -------------------------------------------------------------------------------- /tests/fixtures/sample_pre_commit_config/pre-commit-config-with-one-liner-deps.expected.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/tests/fixtures/sample_pre_commit_config/pre-commit-config-with-one-liner-deps.expected.yaml -------------------------------------------------------------------------------- /tests/fixtures/sample_pre_commit_config/pre-commit-config-with-one-liner-deps.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/tests/fixtures/sample_pre_commit_config/pre-commit-config-with-one-liner-deps.yaml -------------------------------------------------------------------------------- /tests/fixtures/sample_pre_commit_config/pre-commit-config-without-new-deps.expected.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/tests/fixtures/sample_pre_commit_config/pre-commit-config-without-new-deps.expected.yaml -------------------------------------------------------------------------------- /tests/fixtures/sample_pre_commit_config/pre-commit-config-without-new-deps.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/tests/fixtures/sample_pre_commit_config/pre-commit-config-without-new-deps.yaml -------------------------------------------------------------------------------- /tests/fixtures/sample_pre_commit_config/pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/tests/fixtures/sample_pre_commit_config/pre-commit-config.yaml -------------------------------------------------------------------------------- /tests/fixtures/sample_pre_commit_config/sample-django-stubs.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/tests/fixtures/sample_pre_commit_config/sample-django-stubs.yaml -------------------------------------------------------------------------------- /tests/fixtures/uv_project/.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/tests/fixtures/uv_project/.pre-commit-config.yaml -------------------------------------------------------------------------------- /tests/fixtures/uv_project/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/tests/fixtures/uv_project/pyproject.toml -------------------------------------------------------------------------------- /tests/fixtures/uv_project/uv.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/tests/fixtures/uv_project/uv.lock -------------------------------------------------------------------------------- /tests/test_actions/test_install_hooks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/tests/test_actions/test_install_hooks.py -------------------------------------------------------------------------------- /tests/test_actions/test_sync_hooks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/tests/test_actions/test_sync_hooks.py -------------------------------------------------------------------------------- /tests/test_config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/tests/test_config.py -------------------------------------------------------------------------------- /tests/test_db.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/tests/test_db.py -------------------------------------------------------------------------------- /tests/test_pdm/test_pdm_integration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/tests/test_pdm/test_pdm_integration.py -------------------------------------------------------------------------------- /tests/test_pdm/test_pdm_plugin.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/tests/test_pdm/test_pdm_plugin.py -------------------------------------------------------------------------------- /tests/test_pdm/test_pdm_sync_pre_commit_hook.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/tests/test_pdm/test_pdm_sync_pre_commit_hook.py -------------------------------------------------------------------------------- /tests/test_poetry/test_poetry_plugin.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/tests/test_poetry/test_poetry_plugin.py -------------------------------------------------------------------------------- /tests/test_pre_commit_config_file.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/tests/test_pre_commit_config_file.py -------------------------------------------------------------------------------- /tests/test_shell_printer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/tests/test_shell_printer.py -------------------------------------------------------------------------------- /tests/test_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/tests/test_utils.py -------------------------------------------------------------------------------- /tests/test_uv_plugin.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/tests/test_uv_plugin.py -------------------------------------------------------------------------------- /tox.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GabDug/sync-pre-commit-lock/HEAD/tox.ini --------------------------------------------------------------------------------