Skip to content

Commit a22d2fb

Browse files
authored
Merge branch 'main' into feature_isolate_env
2 parents 579a95f + 6bc7450 commit a22d2fb

10 files changed

+83
-50
lines changed

.config/constraints.txt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ ansible-builder==3.1.0
88
astroid==3.3.9
99
attrs==25.3.0
1010
babel==2.17.0
11+
backrefs==5.8
1112
beautifulsoup4==4.13.3
1213
bindep==2.13.0
13-
black==25.1.0
1414
build==1.2.2.post1
1515
cachetools==5.5.2
1616
cairocffi==1.7.1
@@ -22,7 +22,7 @@ chardet==5.2.0
2222
charset-normalizer==3.4.1
2323
click==8.1.8
2424
colorama==0.4.6
25-
coverage==7.7.1
25+
coverage==7.8.0
2626
csscompressor==0.9.5
2727
cssselect2==0.8.0
2828
defusedxml==0.7.1
@@ -35,7 +35,7 @@ exceptiongroup==1.2.2
3535
execnet==2.1.1
3636
filelock==3.18.0
3737
ghp-import==2.1.0
38-
griffe==1.7.1
38+
griffe==1.7.2
3939
hjson==3.1.0
4040
htmlmin2==0.1.13
4141
identify==2.6.9
@@ -60,12 +60,12 @@ mkdocs-gen-files==0.5.0
6060
mkdocs-get-deps==0.2.0
6161
mkdocs-htmlproofer-plugin==1.3.0
6262
mkdocs-macros-plugin==1.3.7
63-
mkdocs-material==9.6.9
63+
mkdocs-material==9.6.11
6464
mkdocs-material-extensions==1.3.1
6565
mkdocs-minify-plugin==0.8.0
6666
mkdocs-monorepo-plugin==1.1.0
67-
mkdocstrings==0.29.0
68-
mkdocstrings-python==1.16.8
67+
mkdocstrings==0.29.1
68+
mkdocstrings-python==1.16.10
6969
mypy==1.15.0
7070
mypy-extensions==1.0.0
7171
nodeenv==1.9.1
@@ -80,7 +80,7 @@ platformdirs==4.3.7
8080
pluggy==1.5.0
8181
pre-commit==4.2.0
8282
pycparser==2.22
83-
pydoclint==0.6.2
83+
pydoclint==0.6.5
8484
pygments==2.19.1
8585
pylint==3.3.6
8686
pymdown-extensions==10.14.3
@@ -94,25 +94,25 @@ python-slugify==8.0.4
9494
pyyaml==6.0.2
9595
pyyaml-env-tag==0.1
9696
referencing==0.36.2
97-
regex==2024.11.6
9897
requests==2.32.3
9998
rpds-py==0.24.0
100-
ruff==0.11.2
99+
ruff==0.11.4
101100
six==1.17.0
102101
soupsieve==2.6
103102
subprocess-tee==0.4.2
104103
super-collections==0.5.3
105-
termcolor==2.5.0
104+
termcolor==3.0.1
106105
text-unidecode==1.3
107106
tinycss2==1.4.0
108107
toml-sort==0.24.2
109108
tomli==2.2.1
110109
tomlkit==0.13.2
111110
tox==4.25.0
112-
types-pyyaml==6.0.12.20250326
113-
typing-extensions==4.12.2
111+
types-pyyaml==6.0.12.20250402
112+
typing-extensions==4.13.1
114113
urllib3==2.3.0
115-
virtualenv==20.29.3
114+
uv==0.6.13
115+
virtualenv==20.30.0
116116
watchdog==6.0.0
117117
webencodings==0.5.1
118118
wheel==0.45.1

.config/requirements-test.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
black
21
coverage[toml]
32
mypy
43
pip-tools

.pre-commit-config.yaml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ repos:
4545
rev: v0.24.2
4646
hooks:
4747
- id: toml-sort-fix
48+
alias: toml
4849

4950
- repo: https://github.com/tox-dev/tox-ini-fmt
5051
rev: 1.5.0
@@ -55,18 +56,9 @@ repos:
5556
rev: v0.11.4
5657
hooks:
5758
- id: ruff
58-
args:
59-
- --fix
60-
- --exit-non-zero-on-fix
61-
types_or: [python, pyi]
62-
- id: ruff-format # must be after ruff
59+
entry: sh -c 'ruff check --fix --force-exclude && ruff format --force-exclude'
6360
types_or: [python, pyi]
6461

65-
- repo: https://github.com/psf/black # must be after ruff
66-
rev: 25.1.0
67-
hooks:
68-
- id: black
69-
7062
- repo: https://github.com/streetsidesoftware/cspell-cli
7163
rev: v8.17.3
7264
hooks:

.prettierrc.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
proseWrap: always
3+
jsonRecursiveSort: true # prettier-plugin-sort-json
4+
tabWidth: 2
5+
useTabs: false
6+
overrides:
7+
- files:
8+
- "*.md"
9+
options:
10+
# compatibility with markdownlint
11+
proseWrap: always
12+
printWidth: 80
13+
- files:
14+
- "*.yaml"
15+
- "*.yml"
16+
options:
17+
# compatibility with yamllint
18+
proseWrap: preserve

.taplo.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[formatting]
2+
# cspell: disable-next-line
3+
# compatibility between toml-sort-fix pre-commit hook and panekj.even-betterer-toml extension
4+
align_comments = false
5+
array_trailing_comma = false
6+
compact_arrays = true
7+
compact_entries = false
8+
compact_inline_tables = true
9+
inline_table_expand = false
10+
reorder_keys = true

.vscode/extensions.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
"esbenp.prettier-vscode",
55
"gruntfuggly.triggertaskonsave",
66
"markis.code-coverage",
7-
"ms-python.black-formatter",
87
"ms-python.debugpy",
98
"ms-python.mypy-type-checker",
109
"ms-python.pylint",
1110
"ms-python.python",
1211
"sonarsource.sonarlint-vscode",
1312
"streetsidesoftware.code-spell-checker"
14-
]
13+
],
14+
"unwantedRecommendations": ["ms-python.black-formatter"]
1515
}

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"source.fixAll": "explicit",
88
"source.organizeImports": "explicit"
99
},
10-
"editor.defaultFormatter": "ms-python.black-formatter",
10+
"editor.defaultFormatter": "charliermarsh.ruff",
1111
"editor.formatOnSave": true
1212
},
1313
"flake8.importStrategy": "fromEnvironment",

README.md

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,29 @@ A pip-like install for ansible collections.
99
- Install all collection python requirements
1010
- Install all collection test requirements
1111
- Checks for missing system packages
12-
- Symlinks the current collection into the current python interpreter's site-packages
13-
- Install all collection collection dependencies into the current python interpreter's site-packages
12+
- Symlinks the current collection into the current python interpreter's
13+
site-packages
14+
- Install all collection collection dependencies into the current python
15+
interpreter's site-packages
1416

15-
By placing collections into the python site-packages directory they are discoverable by ansible as well as python and pytest.
17+
By placing collections into the python site-packages directory they are
18+
discoverable by ansible as well as python and pytest.
1619

1720
## Communication
1821

1922
- Join the Ansible forum:
2023

21-
- [Get Help](https://forum.ansible.com/c/help/6): get help or help others. Please add appropriate tags if you start new discussions.
22-
- [Social Spaces](https://forum.ansible.com/c/chat/4): gather and interact with fellow enthusiasts.
23-
- [News & Announcements](https://forum.ansible.com/c/news/5): track project-wide announcements including social events.
24-
- [Bullhorn newsletter](https://docs.ansible.com/ansible/devel/community/communication.html#the-bullhorn): used to announce releases and important changes.
25-
26-
For more information about communication, see the [Ansible communication guide](https://docs.ansible.com/ansible/devel/community/communication.html).
24+
- [Get Help](https://forum.ansible.com/c/help/6): get help or help others.
25+
Please add appropriate tags if you start new discussions.
26+
- [Social Spaces](https://forum.ansible.com/c/chat/4): gather and interact
27+
with fellow enthusiasts.
28+
- [News & Announcements](https://forum.ansible.com/c/news/5): track
29+
project-wide announcements including social events.
30+
- [Bullhorn newsletter](https://docs.ansible.com/ansible/devel/community/communication.html#the-bullhorn):
31+
used to announce releases and important changes.
32+
33+
For more information about communication, see the
34+
[Ansible communication guide](https://docs.ansible.com/ansible/devel/community/communication.html).
2735

2836
## Usage
2937

docs/index.md

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,17 @@ A pip-like install for Ansible collections.
66

77
- Join the Ansible forum:
88

9-
- [Get Help](https://forum.ansible.com/c/help/6): get help or help others. Please add appropriate tags if you start new discussions.
10-
- [Social Spaces](https://forum.ansible.com/c/chat/4): gather and interact with fellow enthusiasts.
11-
- [News & Announcements](https://forum.ansible.com/c/news/5): track project-wide announcements including social events.
12-
- [Bullhorn newsletter](https://docs.ansible.com/ansible/devel/community/communication.html#the-bullhorn): used to announce releases and important changes.
13-
14-
For more information about communication, see the [Ansible communication guide](https://docs.ansible.com/ansible/devel/community/communication.html).
9+
- [Get Help](https://forum.ansible.com/c/help/6): get help or help others.
10+
Please add appropriate tags if you start new discussions.
11+
- [Social Spaces](https://forum.ansible.com/c/chat/4): gather and interact
12+
with fellow enthusiasts.
13+
- [News & Announcements](https://forum.ansible.com/c/news/5): track
14+
project-wide announcements including social events.
15+
- [Bullhorn newsletter](https://docs.ansible.com/ansible/devel/community/communication.html#the-bullhorn):
16+
used to announce releases and important changes.
17+
18+
For more information about communication, see the
19+
[Ansible communication guide](https://docs.ansible.com/ansible/devel/community/communication.html).
1520

1621
## Features
1722

@@ -20,11 +25,15 @@ For more information about communication, see the [Ansible communication guide](
2025
- Install all collection python requirements
2126
- Install all collection test requirements
2227
- Checks for missing system packages
23-
- Symlinks the current collection into the current python interpreter's site-packages
24-
- Install all collection collection dependencies into the current python interpreter's site-packages
25-
- Uses `uv env` instead of python's venv when available to boost performance. Can be disabled with `SKIP_UV=1`
26-
27-
By placing collections into the python site-packages directory they are discoverable by ansible as well as python and pytest.
28+
- Symlinks the current collection into the current python interpreter's
29+
site-packages
30+
- Install all collection collection dependencies into the current python
31+
interpreter's site-packages
32+
- Uses `uv env` instead of python's venv when available to boost performance.
33+
Can be disabled with `SKIP_UV=1`
34+
35+
By placing collections into the python site-packages directory they are
36+
discoverable by ansible as well as python and pytest.
2837

2938
## Usage
3039

pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ documentation = "https://ansible.readthedocs.io/projects/dev-environment/"
4141
homepage = "https://github.com/ansible/ansible-dev-environment"
4242
repository = "https://github.com/ansible/ansible-dev-environment"
4343

44-
[tool.black]
45-
line-length = 100
46-
4744
[tool.coverage.report]
4845
exclude_also = ["if TYPE_CHECKING:", "pragma: no cover"]
4946
fail_under = 85

0 commit comments

Comments
 (0)