Skip to content

Commit

Permalink
chore: update ruff requirement from <0.5.0,>=0.3.7 to >=0.5.0,<0.6.0 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Jun 28, 2024
1 parent 8129184 commit 2e2f491
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ repos:
- '<!--| ~| -->'

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.10
rev: v0.5.0
hooks:
- id: ruff
name: Run Ruff linter
Expand Down
2 changes: 1 addition & 1 deletion anta/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def adjust_rlimit_nofile() -> tuple[int, int]:

limits = resource.getrlimit(resource.RLIMIT_NOFILE)
logger.debug("Initial limit numbers for open file descriptors for the current ANTA process: Soft Limit: %s | Hard Limit: %s", limits[0], limits[1])
nofile = nofile if limits[1] > nofile else limits[1]
nofile = min(limits[1], nofile)
logger.debug("Setting soft limit for open file descriptors for the current ANTA process to %s", nofile)
resource.setrlimit(resource.RLIMIT_NOFILE, (nofile, limits[1]))
return resource.getrlimit(resource.RLIMIT_NOFILE)
Expand Down
2 changes: 1 addition & 1 deletion asynceapi/config_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ async def load_file(self, filename: str, *, replace: bool = False) -> None:

commands.append(f"copy {filename} session-config")
res: list[dict[str, Any]] = await self._cli(commands=commands) # type: ignore[assignment] # JSON outformat of multiple commands returns list[dict[str, Any]]
checks_re = re.compile(r"error|abort|invalid", flags=re.I)
checks_re = re.compile(r"error|abort|invalid", flags=re.IGNORECASE)
messages = res[-1]["messages"]

if any(map(checks_re.search, messages)):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ dev = [
"pytest-html>=3.2.0",
"pytest-metadata>=3.0.0",
"pytest>=7.4.0",
"ruff>=0.3.7,<0.5.0",
"ruff>=0.5.0,<0.6.0",
"tox>=4.10.0,<5.0.0",
"types-PyYAML",
"types-pyOpenSSL",
Expand Down

0 comments on commit 2e2f491

Please sign in to comment.