Skip to content

Commit

Permalink
Run ruff in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmer committed Nov 24, 2023
1 parent 98aa107 commit 3d65835
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,13 @@ jobs:
- name: Install Deps
run: sudo apt-get install check libcppunit-dev
- name: Install package
run: python -m pip install -U '.[test,docs]'
run: |
python -m pip install ruff
python -m pip install -U '.[test,docs]'
- name: Build
run: autoreconf -fi && ./configure && make
- name: Run ruff check
run: ruff check python
- name: Run make check
run: make check
- name: Run make distcheck
Expand Down
2 changes: 1 addition & 1 deletion python/subunit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ def addUnexpectedSuccess(self, test, details=None):

def _test_id(self, test):
result = test.id()
if type(result) is not bytes:
if not isinstance(result, bytes):
result = result.encode('utf8')
return result

Expand Down

0 comments on commit 3d65835

Please sign in to comment.