Skip to content

Commit 6d5dfdd

Browse files
committed
Update dependencies and pyproject
1 parent cca9348 commit 6d5dfdd

File tree

3 files changed

+25
-11
lines changed

3 files changed

+25
-11
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ jobs:
1313
timeout-minutes: 5
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v5
16+
uses: actions/checkout@v5.0.0
1717

1818
- name: Install uv
19-
uses: astral-sh/setup-uv@v6
19+
uses: astral-sh/[email protected]
20+
with:
21+
enable-cache: true
2022

2123
- name: Install bandit
2224
run: uv tool install bandit[toml]
@@ -37,10 +39,12 @@ jobs:
3739
timeout-minutes: 5
3840
steps:
3941
- name: Checkout
40-
uses: actions/checkout@v5
42+
uses: actions/checkout@v5.0.0
4143

4244
- name: Install uv
43-
uses: astral-sh/setup-uv@v6
45+
uses: astral-sh/[email protected]
46+
with:
47+
enable-cache: true
4448

4549
- name: Install mypy
4650
run: uv tool install mypy
@@ -61,10 +65,12 @@ jobs:
6165
- "3.13"
6266
steps:
6367
- name: Checkout
64-
uses: actions/checkout@v5
68+
uses: actions/checkout@v5.0.0
6569

6670
- name: Install uv
67-
uses: astral-sh/setup-uv@v6
71+
uses: astral-sh/[email protected]
72+
with:
73+
enable-cache: true
6874

6975
- name: Set up Python ${{ matrix.python }}
7076
run: uv python install ${{ matrix.python }}

nac_test/robot_writer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,10 @@ def write(self, templates_path: Path, output_path: Path) -> None:
172172
if not isinstance(elem, list):
173173
continue
174174
for item in elem:
175-
value = str(item.get(attr))
176-
if value is None:
175+
attr_value = item.get(attr)
176+
if attr_value is None:
177177
continue
178+
value = str(attr_value)
178179
extra: dict[str, Any] = {}
179180
if "[" in params[4]:
180181
index = params[4].split("[")[1].split("]")[0]

pyproject.toml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ classifiers = [
2626
"Topic :: Software Development :: Testing",
2727
]
2828
dependencies = [
29-
"Jinja2>=3.1.6",
29+
"Jinja2>=3.1.8",
3030
"RESTinstance>=1.5.2",
3131
"jmespath>=1.0.1",
3232
"nac-yaml>=1.0.0",
33-
"robotframework>=7.3.2",
33+
"robotframework>=7.4.1",
3434
"robotframework-jsonlibrary>=0.5",
3535
"robotframework-pabot>=4.3.2",
3636
"robotframework-requests>=0.9.7",
@@ -80,11 +80,16 @@ select = [
8080
"C4", # flake8-comprehensions
8181
"UP", # pyupgrade
8282
]
83-
ignore = []
83+
ignore = [
84+
"E501", # line too long (handled by formatter)
85+
]
8486

8587
[tool.ruff.lint.per-file-ignores]
8688
"__init__.py" = ["F401"]
8789

90+
[tool.ruff.lint.isort]
91+
known-first-party = ["nac_test"]
92+
8893
[tool.bandit]
8994
exclude_dirs = ["tests"]
9095
skips = ["B101"]
@@ -104,6 +109,8 @@ warn_redundant_casts = true
104109
warn_return_any = true
105110
warn_unused_configs = true
106111
warn_unused_ignores = false
112+
warn_unreachable = true
113+
show_error_context = true
107114

108115
[tool.pytest.ini_options]
109116
markers = ["unit", "integration"]

0 commit comments

Comments
 (0)