Skip to content

Commit

Permalink
Bump ruff from 0.4.10 to 0.5.0 (#4896)
Browse files Browse the repository at this point in the history
* Bump ruff from 0.4.10 to 0.5.0

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.4.10 to 0.5.0.
- [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.10...0.5.0)

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

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

* Fixing duplicative naming in tests

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: David Whittaker <[email protected]>
  • Loading branch information
dependabot[bot] and whitdog47 authored Jul 3, 2024
1 parent 6a0bcc1 commit 3b58ecd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ python-dateutil==2.9.0.post0
# via faker
pyyaml==6.0.1
# via pre-commit
ruff==0.4.10
ruff==0.5.0
# via -r requirements-dev.in
six==1.16.0
# via
Expand Down
14 changes: 7 additions & 7 deletions tests/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ def participant(self, create, extracted, **kwargs):
class ParticipantFactory(BaseFactory):
"""Participant Factory."""

team = Sequence(lambda n: f"team{n}")
# team = Sequence(lambda n: f"team{n}")
department = Sequence(lambda n: f"department{n}")
location = Sequence(lambda n: f"location{n}")
added_reason = Sequence(lambda n: f"added_reason{n}")
Expand Down Expand Up @@ -965,13 +965,13 @@ def owner(self, create, extracted, **kwargs):
if extracted:
self.owner_id = extracted.id

@post_generation
def incident(self, create, extracted, **kwargs):
if not create:
return
# @post_generation
# def incident(self, create, extracted, **kwargs):
# if not create:
# return

if extracted:
self.incident_id = extracted.id
# if extracted:
# self.incident_id = extracted.id

@post_generation
def assignees(self, create, extracted, **kwargs):
Expand Down

0 comments on commit 3b58ecd

Please sign in to comment.