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
146 changes: 0 additions & 146 deletions .config/constraints.txt

This file was deleted.

1 change: 0 additions & 1 deletion .config/requirements-docs.in

This file was deleted.

35 changes: 0 additions & 35 deletions .config/requirements-lock.txt

This file was deleted.

27 changes: 0 additions & 27 deletions .config/requirements-test.in

This file was deleted.

17 changes: 0 additions & 17 deletions .config/requirements.in

This file was deleted.

17 changes: 0 additions & 17 deletions .github/lower-constraints.txt

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,4 @@ test/local-content
test/schemas/node_modules
node_modules
.direnv
uv.lock
.ansible
46 changes: 11 additions & 35 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,12 @@ ci:
autofix_commit_msg: "chore: auto fixes from pre-commit.com hooks"
skip:
# https://github.com/pre-commit-ci/issues/issues/55
- pip-compile
- pyright
- renovate-config-validator # container limits
- schemas
submodules: true
exclude: >
(?x)^(
.config/constraints.txt|
.config/.*requirements.*|
examples/broken/encoding.yml|
examples/broken/encoding.j2|
examples/broken/yaml-with-tabs/invalid-due-tabs.yaml|
Expand All @@ -31,8 +28,17 @@ repos:
- repo: meta
hooks:
- id: check-useless-excludes
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.8.15
hooks:
- id: uv-sync
- id: uv-lock
name: "deps: upgrade via uv sync --upgrade"
alias: deps
args: ["--upgrade"]
stages: [manual]
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 41.91.1
rev: 41.97.10
hooks:
- id: renovate-config-validator
alias: renovate
Expand Down Expand Up @@ -192,7 +198,7 @@ repos:
- wcmatch
- yamllint>=1.34.0
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.404
rev: v1.1.405
hooks:
- id: pyright
additional_dependencies: *deps
Expand All @@ -217,33 +223,3 @@ repos:
pass_filenames: false
always_run: true
# stages: [manual]
- id: deps
name: Upgrade constraints files and requirements
files: ^(pyproject\.toml|.config/.*)$
always_run: true
language: python
entry: python3 -m uv pip compile -q --all-extras --python-version=3.10 --output-file=.config/constraints.txt pyproject.toml --upgrade
pass_filenames: false
stages:
- manual
additional_dependencies:
- uv>=0.6.6
- id: pip-compile
name: Check constraints files and requirements
files: ^(pyproject\.toml|\.config/.*)$
language: python
entry: uv pip compile -q --all-extras --python-version=3.10 --output-file=.config/constraints.txt pyproject.toml
pass_filenames: false
additional_dependencies:
- uv>=0.6.6
- id: lock
name: Update requirements-lock.txt
alias: lock
always_run: true
entry: python3 -m uv pip compile -q --python-version=3.10 --upgrade --output-file=.config/requirements-lock.txt pyproject.toml --strip-extras
files: ^(pyproject\.toml|\.config/.*)$
language: python
pass_filenames: false
stages: [manual]
additional_dependencies:
- uv>=0.6.6
21 changes: 10 additions & 11 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,17 @@ mkdocs:
build:
os: ubuntu-24.04
tools:
python: "3.11"
python: "3.13"
commands:
- pip install --user tox
- python3 -m tox -e docs
python:
install:
- method: pip
path: tox
- method: pip
path: .
extra_requirements:
- docs
- curl https://mise.run | sh
- ~/.local/bin/mise settings experimental=true
- ~/.local/bin/mise settings python.compile=false
- ~/.local/bin/mise settings python.uv_venv_auto=true
- ~/.local/bin/mise trust
- ~/.local/bin/mise install
- PATH=~/.local/share/mise/shims:$PATH ~/.local/bin/mise doctor || true
- PATH=~/.local/share/mise/shims:$PATH ~/.local/bin/mise exec --command "python3 -m pip install tox"
- PATH=~/.local/share/mise/shims:$PATH ~/.local/bin/mise exec --command "python3 -m tox -e docs"
submodules:
include: all
recursive: true
5 changes: 3 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
"redhat.vscode-yaml",
"ryanluker.vscode-coverage-gutters",
"shardulm94.trailing-spaces",
"tamasfe.even-better-toml",
"tombi-toml.tombi",
"timonwong.shellcheck",
"znck.grammarly"
]
],
"unwantedRecommendations": ["tamasfe.even-better-toml"]
}
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"editor.formatOnSave": true
},
"[toml]": {
"editor.defaultFormatter": "panekj.even-betterer-toml"
"editor.defaultFormatter": "tombi-toml.tombi"
},
"editor.formatOnSave": true,
"evenBetterToml.formatter.alignComments": false,
Expand Down
5 changes: 1 addition & 4 deletions cspell.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ enabled: true
useGitignore: true
ignorePaths:
- cspell.config.yaml
# The requirements file
- .config/constraints.txt
- docs/requirements.txt
- docs/requirements.in
- uv.lock
# Test fixtures generated from outside
- test/**/*.result
- src/ansiblelint/schemas/*.json
Expand Down
Loading
Loading