Skip to content

Commit ca1fff7

Browse files
committed
fix: migrate tox.ini and adopt uv.lock
1 parent d0aa3a1 commit ca1fff7

File tree

13 files changed

+2890
-384
lines changed

13 files changed

+2890
-384
lines changed

.config/constraints.txt

Lines changed: 0 additions & 127 deletions
This file was deleted.

.config/dictionary.txt

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
COLORTERM
2+
EPEL
3+
ESCDELAY
4+
Fxvf
5+
KEGEX
6+
Kegex
7+
Lightbulbs
8+
NEWPW
9+
PIPCMD
10+
PKGMGR
11+
PULLABLE
12+
PYCMD
13+
Representer
14+
Rocannon's
115
ansiblelint
216
argname
317
argnames
@@ -6,22 +20,25 @@ argspec
620
argvalues
721
autorefs
822
basesystem
23+
bindep
924
caplog
10-
cliconf # Ansible network cli abstraction plugin
25+
chgrp
26+
cliconf
1127
codeclimate
1228
colname
13-
colorterm
1429
coltext
1530
colval
16-
devel
31+
distros
1732
dumpable
1833
dunder
19-
escdelay
34+
epel
2035
facelessuser
2136
fedoraproject
2237
fontawesome
2338
fqcn
2439
fromlist
40+
getent
41+
hawkey
2542
headerlink
2643
helpconfig
2744
hostvars
@@ -33,54 +50,48 @@ importables
3350
inlinehilite
3451
introspector
3552
keepends
36-
kegex # An action's regex
53+
kegex
3754
kegexes
3855
lentext
3956
levelname
40-
libonig
4157
lightbulbs
4258
linenums
4359
lintable
4460
lintables
4561
magiclink
4662
maskables
47-
maxsplit
48-
mergeable
63+
microdnf
4964
mkdocstrings
50-
mqueue # https://github.com/ansible/ansible-runner/issues/984
65+
mqueue
5166
myproject
52-
netcommon # Ansible network collection, seen in tests and README
67+
netcommon
5368
netconf
5469
nonblocking
5570
oldmask
5671
oneline
57-
onigurumacffi
5872
oxfordcomma
59-
preclear
73+
pabelanger
6074
precommand
6175
premanent
6276
pullable
6377
pymdownx
64-
redhatinsights
6578
representer
79+
reqs
6680
returndocs
67-
rocannon's
68-
scap
6981
scrollback
82+
someuid
7083
somevalue
7184
stripspaces
7285
subaction
7386
subschema
7487
superfences
7588
templatable
76-
templated
7789
testhost
90+
testinfra
7891
testname
7992
testsfailed
80-
tracebacks
8193
truecolor
8294
usefixtures
8395
volmount
8496
withast
85-
workdir
8697
xmss

.config/requirements-docs.in

Lines changed: 0 additions & 1 deletion
This file was deleted.

.config/requirements-test.in

Lines changed: 0 additions & 12 deletions
This file was deleted.

.config/requirements.in

Lines changed: 0 additions & 9 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
env:
1717
FORCE_COLOR: 1
1818
PY_COLORS: 1
19-
TOXENV: packaging
19+
TOXENV: pkg
2020
TOX_PARALLEL_NO_SPINNER: 1
2121

2222
steps:

.github/workflows/tox.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
other_names: |
3838
lint
3939
docs
40+
pkg
4041
platforms: linux,macos
4142
tox:
4243
name: ${{ matrix.name }} / python ${{ matrix.python_version }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,3 +161,6 @@ out
161161

162162
# Ansible
163163
.ansible/
164+
165+
# Ansible Navigator artifact files
166+
playbook-artifact-*.json

.pre-commit-config.yaml

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
11
ci:
22
autoupdate_schedule: quarterly
3-
skip:
4-
- renovate-config-validator
53
default_language_version:
64
python: python3.11
7-
exclude: "(?x)^(\n _readthedocs|\n .tox\n)$\n"
85
repos:
9-
- repo: https://github.com/renovatebot/pre-commit-hooks
10-
rev: 41.113.6
6+
- repo: meta
117
hooks:
12-
- id: renovate-config-validator
13-
alias: renovate
14-
args:
15-
- --strict
8+
- id: check-useless-excludes
169
- repo: https://github.com/rbubley/mirrors-prettier
1710
rev: v3.6.2
1811
hooks:
@@ -25,26 +18,26 @@ repos:
2518
additional_dependencies:
2619
- prettier
2720
- prettier-plugin-toml
28-
- repo: https://github.com/pappasam/toml-sort
29-
rev: v0.24.3
30-
hooks:
31-
- id: toml-sort-fix
32-
- repo: https://github.com/tox-dev/tox-ini-fmt
33-
rev: 1.6.0
34-
hooks:
35-
- id: tox-ini-fmt
3621
- repo: https://github.com/streetsidesoftware/cspell-cli
3722
rev: v9.2.0
3823
hooks:
3924
- id: cspell
40-
name: Spell check with cspell
25+
entry: bash
26+
pass_filenames: false
27+
args:
28+
[
29+
"-euo",
30+
"pipefail",
31+
"-c",
32+
"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",
33+
]
34+
name: cspell + remove unused and sort dictionary
4135
- repo: https://github.com/pre-commit/pre-commit-hooks.git
4236
rev: v6.0.0
4337
hooks:
4438
- id: trailing-whitespace
4539
- id: check-merge-conflict
4640
- id: end-of-file-fixer
47-
- id: requirements-txt-fixer
4841
- id: check-added-large-files
4942
- id: fix-byte-order-marker
5043
- id: check-case-conflict
@@ -73,9 +66,6 @@ repos:
7366
args:
7467
- -L
7568
- dout
76-
exclude:
77-
"(?x)^\n (\n tests/fixtures/integration/actions/.*\\.json|\n
78-
\ src/ansible_navigator/data/grammar/.*\\.json\n )\n$\n"
7969
- repo: https://github.com/adrienverge/yamllint.git
8070
rev: v1.37.1
8171
hooks:

cspell.config.yaml

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,24 @@ dictionaries:
1212
- "!cryptocurrencies"
1313
- "!cpp"
1414
ignorePaths:
15-
# All dot files in the root
16-
- \.*
17-
# This file
15+
- "*.egg-info"
16+
- _readthedocs
17+
- build
18+
- coverage.lcov
19+
- coverage.xml
1820
- cspell.config.yaml
19-
# The docs requirements file
20-
- docs/requirements.in
21-
# Ignore licenses
21+
- junit.xml
2222
- licenses/*
23-
# The mypy configuration file
24-
- mypy.ini
25-
# The shared file for tool configuration
23+
- out
24+
- playbook-artifact-*.json
2625
- pyproject.toml
27-
# The setup file
28-
- setup.cfg
29-
# All grammar (text-mate) tokenization files
26+
- site
27+
- src/ansible_navigator/_version.py
3028
- src/ansible_navigator/data/grammar/*.json
31-
# Theme files
3229
- src/ansible_navigator/data/themes/*.json
33-
# Anything in the vendored tokenization directory
3430
- src/ansible_navigator/tm_tokenize/*
35-
# requirements.txt is generated
36-
- requirements.txt
37-
# All fixture files in the tests directory
3831
- tests/fixtures/integration/actions/**/*.json
39-
# The tox configuration file
40-
- tox.ini
32+
- uv.lock
4133

4234
ignoreRegExpList:
4335
- "--\\w+" # ansible-navigator long CLI parameters

0 commit comments

Comments
 (0)