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
63 changes: 26 additions & 37 deletions .config/dictionary.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
CEOS
CLICOLOR
CMDB
Cfmpr
DOTGLOB
Dequènes
ENVNAME
Kubevirt
Lifecycle
Multibranch
NOPASSWD
Nocows
PYTHONPATH
Prerun
Rolebinding
Sbarnea
Serviceaccount
Sorin
Testinfra
Timedout
Tmpfs
Ulimits
Unittests
Virt
Virt's
XDIST
antsibull
anyconfig
argnames
Expand All @@ -10,12 +36,10 @@ caplog
capsys
ceos
ceoslab
cfmpr
cgroupfs
cgroupns
checkpointing
cidr
clicolor
cloudinitdisk
cmdb
connopts
Expand All @@ -24,76 +48,58 @@ cpus
credssp
dbadmin
decentral
dedriver
delenv
dependee
dequènes
devel
dind
docsite
dotglob
efgh
emptydisk
endfor
endgroup
endraw
enoent
envlist
envname
ericsysmin
euxo
exitstatus
failover
fileglob
followlinks
fooo
frob
geerlingguy
getfixturevalue
goss
helloworld
hookwrapper
hostvars
htmldir
hyperscaler
indentless
jinaj
jodewey
jpvanhal
jsonfile
keepends
keypair
kubevirt
levelname
libcloud
libera
libpod
lifecycle
lifecycles
lineterm
lockf
logind
makereport
maxsplit
metacopy
mfoo
minversion
modifyitems
mongosh
mountopt
multibranch
myapp
mygroups
myorg
myproject
netcommon
netcommon
nitz
nocows
nodestroy
nodev
nofile
nopasswd
notest
ntlm
overlayfs
Expand All @@ -102,31 +108,22 @@ passenv
passwordless
prepender
prerun
printenv
profisioner
psql
pycolors
pythonpath
Qalthos
quux
reget
reraised
resetall
rolebinding
rrequirements
runcmd
saez
sandboxed
Sbarnea
schemafile
seccomp
selectattr
serviceaccount
sessionfinish
setenv
signoff
skipsdist
Sorin
ssbarnea
stestr
stopall
Expand All @@ -135,30 +132,22 @@ superitem
sysexit
templater
testdb
testenv
testinfra
testrole
testuser
testvar
timedout
tmpfs
tofile
topdown
tryfirst
tsoh
ulimits
ultral
unittests
urandom
usefixtures
usermod
vfoo
virt
virt's
virtenv
virtualmachines
webservers
xdist
yourcollection
yournamespace
yourrole
Expand Down
57 changes: 35 additions & 22 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ ci:
# We rely on renovate to update it but there is no way to fully disable it
# https://github.com/pre-commit-ci/issues/issues/83
autoupdate_schedule: quarterly
skip:
# https://github.com/pre-commit-ci/issues/issues/55
- tombi-format
- tombi-lint
default_language_version:
# minimal version we support officially as this will impact mypy, pylint
# minimal version determined by minimal version required by ansible-core, but
Expand All @@ -22,7 +26,28 @@ repos:
alias: deps
args: ["--upgrade"]
stages: [manual]
- repo: https://github.com/pre-commit/pre-commit-hooks
- repo: https://github.com/biomejs/pre-commit
rev: "v2.2.5"
hooks:
- id: biome-check
name: biome
alias: biome
args: [--unsafe]
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v9.2.0
hooks:
- id: cspell
entry: bash
pass_filenames: false
args:
[
"-euo",
"pipefail",
"-c",
"cspell-cli . --relative --no-progress --no-summary && cspell-cli . --disable-dictionary=words --no-exit-code --words-only --quiet --unique | LC_ALL=C sort > .config/dictionary.txt",
]
name: cspell + remove unused and sort dictionary
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v6.0.0
hooks:
- id: check-added-large-files
Expand Down Expand Up @@ -51,33 +76,21 @@ repos:
(?x)^(
.config/pydoclint-baseline.txt
)$

- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.6.2
- repo: https://github.com/tombi-toml/tombi-pre-commit
rev: v0.6.21
hooks:
- id: prettier
always_run: true
additional_dependencies:
- prettier
- prettier-plugin-sort-json

- repo: https://github.com/pappasam/toml-sort
rev: v0.24.3
hooks:
- id: toml-sort-fix
- id: tombi-format
alias: toml
- id: tombi-lint
alias: toml

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.13.3
hooks:
- id: ruff
entry: sh -c 'ruff check --fix --force-exclude && ruff format --force-exclude'
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v9.2.0
hooks:
- id: cspell
name: Spell check with cspell

- id: ruff-format
alias: ruff
- id: ruff-check
alias: ruff
- repo: https://github.com/jsh9/pydoclint
rev: "0.7.3"
hooks:
Expand Down
10 changes: 6 additions & 4 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
{
"recommendations": [
"biomejs.biome",
"charliermarsh.ruff",
"esbenp.prettier-vscode",
"gruntfuggly.triggertaskonsave",
"markis.code-coverage",
"ms-python.debugpy",
"ms-python.mypy-type-checker",
"ms-python.pylint",
"ms-python.python",
"sonarsource.sonarlint-vscode",
"streetsidesoftware.code-spell-checker"
"streetsidesoftware.code-spell-checker",
"tombi-toml.tombi"
],
"unwantedRecommendations": [
"esbenp.prettier-vscode",
"ms-python.isort",
"ms-python.flake8",
"ms-toolsai.jupyter",
"ms-python.black-formatter"
"ms-python.black-formatter",
"tamasfe.even-better-toml"
]
}
10 changes: 8 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
"[json]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[markdown]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[python]": {
"editor.codeActionsOnSave": {
Expand All @@ -10,6 +13,9 @@
"editor.defaultFormatter": "charliermarsh.ruff",
"editor.formatOnSave": true
},
"[toml]": {
"editor.defaultFormatter": "tombi-toml.tombi"
},
"flake8.importStrategy": "fromEnvironment",
"markiscodecoverage.searchCriteria": ".cache/.coverage/lcov.info",
"mypy-type-checker.args": ["--config-file=${workspaceFolder}/pyproject.toml"],
Expand Down
30 changes: 15 additions & 15 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "pydoclint",
"type": "shell",
"command": "pydoclint",
"args": ["."],
"command": "pydoclint",
"group": {
"isDefault": true,
"kind": "none"
},
"label": "pydoclint",
"presentation": {
"reveal": "never"
},
"problemMatcher": {
"owner": "pydoclint",
"fileLocation": ["relative", "${workspaceFolder}"],
"owner": "pydoclint",
"pattern": {
"regexp": "^(.*?):(\\d+):\\s(.*?):\\s(.*)$",
"code": 3,
"file": 1,
"line": 2,
"code": 3,
"message": 4
"message": 4,
"regexp": "^(.*?):(\\d+):\\s(.*?):\\s(.*)$"
}
},
"group": {
"kind": "none",
"isDefault": true
}
"type": "shell"
}
]
],
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0"
}
28 changes: 28 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"$schema": "https://biomejs.dev/schemas/latest/schema.json",
"assist": {
"actions": {
"source": {
"useSortedKeys": "on"
}
}
},
"files": {
"includes": ["**"]
},
"formatter": {
"enabled": true,
"indentStyle": "space"
},
"json": {
"formatter": {
"enabled": true,
"indentStyle": "space"
}
},
"vcs": {
"clientKind": "git",
"enabled": true,
"useIgnoreFile": true
}
}
Loading