Skip to content

Commit

Permalink
Merge pull request #114 from pebenito/ci-update-py-versions
Browse files Browse the repository at this point in the history
Update CI Python versions.
  • Loading branch information
pebenito authored Dec 6, 2023
2 parents 14d0312 + 0e379f9 commit 7d0b69b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,14 @@ jobs:

matrix:
build-opts:
- {python: '3.6', tox: python3.6}
- {python: '3.7', tox: python3.7}
- {python: '3.8', tox: python3.8}
- {python: '3.9', tox: python3.9}
- {python: '3.10', tox: python3.10}
- {python: '3.11', tox: python3.11}
- {python: '3.6', tox: pep8}
- {python: '3.6', tox: lint}
- {python: '3.6', tox: mypy}
- {python: '3.6', tox: coverage}
- {python: '3.6', tox: install}
- {python: '3.11', tox: pep8}
- {python: '3.11', tox: lint}
- {python: '3.11', tox: mypy}
- {python: '3.11', tox: coverage}
- {python: '3.11', tox: install}

steps:
- uses: actions/checkout@v3
Expand Down
10 changes: 5 additions & 5 deletions setools/diff/difference.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,9 @@ class Wrapper(ABC, Generic[T]):

__slots__ = ("origin", "key")

def __init__(self, symbol: T) -> None:
pass
def __init__(self, origin: T, key: int) -> None:
self.origin = origin
self.key = key

def __repr__(self):
# pylint: disable=no-member
Expand Down Expand Up @@ -176,9 +177,8 @@ class SymbolWrapper(Wrapper[S]):
__slots__ = ("name",)

def __init__(self, symbol: S) -> None:
self.origin = symbol
self.name = str(symbol)
self.key = hash(self.name)
super().__init__(symbol, hash(symbol.name))
self.name = symbol.name

def __hash__(self):
return self.key
Expand Down
3 changes: 2 additions & 1 deletion setoolsgui/apol/defaultquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ def run(self, button):
self.query.default = self.default_value.currentData(Qt.ItemDataRole.UserRole)

if self.default_range_value.isEnabled():
self.query.default_range = self.default_range_value.currentData(Qt.ItemDataRole.UserRole)
self.query.default_range = self.default_range_value.currentData(
Qt.ItemDataRole.UserRole)
else:
self.query.default_range = None

Expand Down
4 changes: 3 additions & 1 deletion setoolsgui/tableview.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ def save_csv(self, filename):
# write headers
csv_row = []
for col in range(col_count):
csv_row.append(datamodel.headerData(col, Qt.Orientation.Horizontal, Qt.ItemDataRole.DisplayRole))
csv_row.append(datamodel.headerData(col,
Qt.Orientation.Horizontal,
Qt.ItemDataRole.DisplayRole))

writer.writerow(csv_row)

Expand Down

0 comments on commit 7d0b69b

Please sign in to comment.