Skip to content

Commit

Permalink
build(deps): bump the python-packages group across 1 directory with 7…
Browse files Browse the repository at this point in the history
… updates (#249)

* build(deps): bump the python-packages group across 1 directory with 7 updates

Updates the requirements on [pytest](https://github.com/pytest-dev/pytest), [mypy](https://github.com/python/mypy), [black](https://github.com/psf/black), [ruff](https://github.com/astral-sh/ruff), [tox](https://github.com/tox-dev/tox), [pre-commit](https://github.com/pre-commit/pre-commit) and [pydantic](https://github.com/pydantic/pydantic) to permit the latest version.

Updates `pytest` from 8.2.1 to 8.3.3
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](pytest-dev/pytest@8.2.1...8.3.3)

Updates `mypy` from 1.10.0 to 1.11.2
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](python/mypy@v1.10.0...v1.11.2)

Updates `black` from 24.4.2 to 24.8.0
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](psf/black@24.4.2...24.8.0)

Updates `ruff` from 0.4.7 to 0.6.5
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@v0.4.7...0.6.5)

Updates `tox` to 4.18.1
- [Release notes](https://github.com/tox-dev/tox/releases)
- [Changelog](https://github.com/tox-dev/tox/blob/main/docs/changelog.rst)
- [Commits](tox-dev/tox@4.15.0...4.18.1)

Updates `pre-commit` to 3.8.0
- [Release notes](https://github.com/pre-commit/pre-commit/releases)
- [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md)
- [Commits](pre-commit/pre-commit@v3.7.1...v3.8.0)

Updates `pydantic` from 2.7.4 to 2.9.2
- [Release notes](https://github.com/pydantic/pydantic/releases)
- [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md)
- [Commits](pydantic/pydantic@v2.7.4...v2.9.2)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: python-packages
- dependency-name: mypy
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: python-packages
- dependency-name: black
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: python-packages
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: python-packages
- dependency-name: tox
  dependency-type: direct:development
  dependency-group: python-packages
- dependency-name: pre-commit
  dependency-type: direct:development
  dependency-group: python-packages
- dependency-name: pydantic
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-packages
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore/style: update pre-commit deps; style: fix

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: tazlin <[email protected]>
  • Loading branch information
dependabot[bot] and tazlin authored Sep 17, 2024
1 parent 2f5ee4d commit 6b4f338
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 23 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 24.4.2
rev: 24.8.0
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.7
rev: v0.6.5
hooks:
- id: ruff
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.10.0'
rev: 'v1.11.2'
hooks:
- id: mypy
args: [., --strict, --ignore-missing-imports, --exclude=^codegen]
pass_filenames: false
additional_dependencies: [
pytest,
pydantic==2.7.4,
pydantic>=2.9.2,
types-Pillow,
types-requests,
types-pytz,
Expand Down
16 changes: 4 additions & 12 deletions horde_sdk/horde_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,22 @@ def set_logger_verbosity(count: int) -> None:

def is_stdout_log(record: dict[str, Any]) -> bool:
"""Filter for stdout logs levels."""
if record["level"].no < verbosity:
return False
return True
return not record["level"].no < verbosity


def is_msg_log(record: dict[str, Any]) -> bool:
"""Filter for stdout logs levels."""
if record["level"].no < verbosity:
return False
return True
return not record["level"].no < verbosity


def is_stderr_log(record: dict[str, Any]) -> bool:
"""Filter for stderr logs levels."""
if record["level"].name not in error_levels:
return False
return True
return not record["level"].name not in error_levels


def is_trace_log(record: dict[str, Any]) -> bool:
"""Filter for trace logs levels."""
if record["level"].name not in error_levels:
return False
return True
return not record["level"].name not in error_levels


handler_config = [
Expand Down
12 changes: 6 additions & 6 deletions requirements.dev.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
pytest==8.2.1
mypy==1.10.0
black==24.4.2
ruff==0.4.7
tox~=4.15.0
pre-commit~=3.7.1
pytest==8.3.3
mypy==1.11.2
black==24.8.0
ruff==0.6.5
tox~=4.18.1
pre-commit~=3.8.0
build>=0.10.0
coverage>=7.2.7

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
horde_model_reference>=0.9.0

pydantic==2.7.4
pydantic==2.9.2
requests
StrEnum
loguru
Expand Down

0 comments on commit 6b4f338

Please sign in to comment.