Skip to content

Commit

Permalink
Update python for the flake8 workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Christophe Morin <[email protected]>
  • Loading branch information
JeanChristopheMorinPerso committed Oct 14, 2024
1 parent fe13e89 commit 8ecd624
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/flake8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: 3.7
python-version: 3.11

- name: Install Dependencies
run: |
Expand Down
12 changes: 6 additions & 6 deletions src/rez/package_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def __str__(self):
raise NotImplementedError

def __eq__(self, other):
return type(self) == type(other) and str(self) == str(other)
return type(self) == type(other) and str(self) == str(other) # noqa: E721

def __ne__(self, other):
return not self == other
Expand All @@ -204,7 +204,7 @@ def __str__(self):
return "{}"

def __eq__(self, other):
return type(self) == type(other)
return type(self) == type(other) # noqa: E721

def to_pod(self):
"""
Expand Down Expand Up @@ -250,7 +250,7 @@ def __str__(self):
return str(self.descending)

def __eq__(self, other):
return (
return ( # noqa: E721
type(self) == type(other)
and self.descending == other.descending
)
Expand Down Expand Up @@ -327,7 +327,7 @@ def __str__(self):
return str((items, str(self.default_order)))

def __eq__(self, other):
return (
return ( # noqa: E721
type(other) == type(self)
and self.order_dict == other.order_dict
and self.default_order == other.default_order
Expand Down Expand Up @@ -419,7 +419,7 @@ def __str__(self):
return str(self.first_version)

def __eq__(self, other):
return (
return ( # noqa: E721
type(other) == type(self)
and self.first_version == other.first_version
)
Expand Down Expand Up @@ -582,7 +582,7 @@ def __str__(self):
return str((self.timestamp, self.rank))

def __eq__(self, other):
return (
return ( # noqa: E721
type(other) == type(self)
and self.timestamp == other.timestamp
and self.rank == other.rank
Expand Down
2 changes: 1 addition & 1 deletion src/rez/tests/test_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from rez.build_process import create_build_process
from rez.build_system import create_build_system
from rez.resolved_context import ResolvedContext
from rez.exceptions import BuildError, BuildContextResolveError,\
from rez.exceptions import BuildError, BuildContextResolveError, \
PackageFamilyNotFoundError
import unittest
from rez.tests.util import TestBase, TempdirMixin, find_file_in_path, \
Expand Down
1 change: 0 additions & 1 deletion src/rezplugins/shell/_utils/powershell_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import os
import re
from subprocess import PIPE

from rez.config import config
from rez.rex import RexExecutor, OutputStyle, EscapedString
Expand Down

0 comments on commit 8ecd624

Please sign in to comment.