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
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.15", "3.14", "3.13", "3.12", "3.11", "3.10"]
python-version: ["3.15", "3.14", "3.13", "3.12", "3.11"]
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

## Project in a Nutshell

A pre-commit hook repo that auto-installs and runs `clang-format` and `clang-tidy` from Python wheels. Supports Python 3.10+ (tested 3.10–3.15) on Windows, Linux, macOS.
A pre-commit hook repo that auto-installs and runs `clang-format` and `clang-tidy` from Python wheels. Supports Python 3.11+ (tested 3.11–3.15) on Windows, Linux, macOS.

**Entry points** (defined in `pyproject.toml`):
- `clang-format-hook` → `cpp_linter_hooks/clang_format.py:main`
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Thanks for your interest in contributing to `cpp-linter-hooks`!

## Setup

You'll need Python 3.10+ and [uv](https://docs.astral.sh/uv/).
You'll need Python 3.11+ and [uv](https://docs.astral.sh/uv/).

```bash
git clone https://github.com/cpp-linter/cpp-linter-hooks.git
Expand Down
3 changes: 1 addition & 2 deletions cpp_linter_hooks/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,7 @@ def _install_lock():
the lock, every batch runs ``pip install`` into the same directory at once.
If the lock is not free within 5 minutes, or the file system does not support
locks (some NFS mounts), the hook runs unlocked, as before. The limit also
covers filelock 3.x, which keeps retrying when the file system refuses the
lock, and a stale lock file left by a crashed process.
covers a stale lock file left by a crashed process.
filelock is imported here because it is only needed to install, and
importing it takes longer than a whole hook run that finds the tool.
"""
Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["setuptools>=45", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[project]
requires-python = ">=3.10"
requires-python = ">=3.11"
name = "cpp_linter_hooks"
description = "Automatically formats and lints C/C++ code using clang-format and clang-tidy"
readme = "README.md"
Expand All @@ -22,7 +22,6 @@ classifiers = [
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
Expand All @@ -34,7 +33,7 @@ dependencies = [
# Unpinned, so a new hook environment gets the latest clang-format at install
# time; additional_dependencies can pin it, and --version runs another version.
"clang-format",
"filelock>=3.16", # One hook process at a time installs clang tools
"filelock>=4.2.1", # One hook process at a time installs clang tools
"pip>=26.1", # Required to install other clang-format and clang-tidy versions
]
dynamic = ["version"]
Expand Down
Loading
Loading