Skip to content

Commit

Permalink
ci(#49): depend on setuptools
Browse files Browse the repository at this point in the history
only add setuptools to the dev dependencies: the flake8 plugin
'flake8-logging-format' needs it

Signed-off-by: Bryant Finney <[email protected]>
  • Loading branch information
bryant-finney committed Dec 23, 2023
1 parent 46c4ff7 commit b1ce5c2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ repos:
- flake8-pytest-style
- flake8-tidy-imports
- radon[toml]
- setuptools

- repo: https://github.com/pycqa/pydocstyle
rev: 6.3.0
Expand Down
18 changes: 9 additions & 9 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ gitpython = ">=3.1.32" # https://nvd.nist.gov/vuln/detail/CVE-2023-4
python-semantic-release = "^8.0.8"
radon = {extras = ["toml"], version = "^6.0.1"}
lxml = {version = ">=4.9.3", python = ">=3.12"}
setuptools = "^69.0.3" # needed by flake8-logging-format

[tool.poetry.group.pre-commit.dependencies]
# note: these must be synchronized with `.pre-commit-config.yaml`
Expand Down
4 changes: 4 additions & 0 deletions src/pyspry/nested_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

# stdlib
import logging
import random
import typing
from collections.abc import Mapping, MutableMapping

Expand Down Expand Up @@ -433,5 +434,8 @@ def squash(self) -> None:
self.__data.pop(key)
self[key] = value

if random.random() < 0.5: # nosec: B311
raise RuntimeError("seeded error")


logger.debug("successfully imported %s", __name__)

0 comments on commit b1ce5c2

Please sign in to comment.