Files
opentelemetry-python-contrib/.pre-commit-config.yaml
Emídio Neto 36aa71b21c Add pypi.org as explicit default index for uv in pre-commit (#4167)
* Add pypi.org as explicit default index for uv

Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>

* try modifying uv.lock pointing to artifact registry -- ci should fail

* try uv lock before

Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>

* try wrong uv.lock

* test

* test

Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>

* final test with wrong uv.lock -- precommit job should fail again

Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>

* fix uv.lock -- ci should pass

Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>

---------

Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
2026-02-10 16:27:56 +00:00

23 lines
714 B
YAML

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.14.1
hooks:
# Run the linter.
- id: ruff
args: ["--fix", "--show-fixes"]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/astral-sh/uv-pre-commit
# uv version.
rev: 1ce7e7fa8aa6eda60e54755509a9380b0f1c5d08 # frozen: v0.9.30
hooks:
- id: uv-lock
args: ["--index-url", "https://pypi.org/simple/"]
- repo: https://github.com/rstcheck/rstcheck
rev: 77490ffa33bfc0928975ae3cf904219903db755d # frozen: v6.2.5
hooks:
- id: rstcheck
additional_dependencies: ['rstcheck[sphinx]']
args: ["--report-level", "warning"]