Skip to content

Commit

Permalink
Build(deps-dev): Bump flake8-bugbear from 21.4.3 to 21.9.1 (#468)
Browse files Browse the repository at this point in the history
* Build(deps-dev): Bump flake8-bugbear from 21.4.3 to 21.9.1

Bumps [flake8-bugbear](https://github.com/PyCQA/flake8-bugbear) from 21.4.3 to 21.9.1.
- [Release notes](https://github.com/PyCQA/flake8-bugbear/releases)
- [Commits](PyCQA/flake8-bugbear@21.4.3...21.9.1)

---
updated-dependencies:
- dependency-name: flake8-bugbear
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix warning B904 (exception chaining)

* Update poetry.lock content hash

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Claudio Jolowicz <mail@claudiojolowicz.com>
  • Loading branch information
dependabot[bot] and cjolowicz authored Nov 12, 2021
1 parent f8fb3dc commit 46f0c3f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions poetry.lock

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

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pre-commit = "^2.15.0"
flake8 = "^4.0.1"
black = "^20.8b1"
flake8-bandit = "^2.1.2"
flake8-bugbear = "^21.4.3"
flake8-bugbear = "^21.9.1"
flake8-docstrings = "^1.6.0"
flake8-rst-docstrings = "^0.2.3"
pep8-naming = "^0.12.1"
Expand Down
2 changes: 1 addition & 1 deletion src/nox_poetry/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def to_constraint(requirement_string: str, line: int) -> Optional[str]:
try:
requirement = Requirement(requirement_string)
except InvalidRequirement as error:
raise RuntimeError(f"line {line}: {requirement_string!r}: {error}")
raise RuntimeError(f"line {line}: {requirement_string!r}: {error}") from error

if not (requirement.name and requirement.specifier):
return None
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def _run_nox(project: Project, *nox_args: str) -> CompletedProcess:
env=env,
)
except subprocess.CalledProcessError as error:
raise RuntimeError(f"{error}\n{error.stderr}")
raise RuntimeError(f"{error}\n{error.stderr}") from None


SessionFunction = Callable[..., Any]
Expand Down

0 comments on commit 46f0c3f

Please sign in to comment.