Skip to content

Commit

Permalink
Merge pull request #48 from davidcl/ruff-github-actions
Browse files Browse the repository at this point in the history
add ruff-action from github
  • Loading branch information
vincentcouvert committed Apr 5, 2024
2 parents 5c3b694 + 13c011b commit b3c3912
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Ruff
on: [push, pull_request]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ message_template = "Bump to {new_version}"
tag_template = "v{new_version}"

[[tool.tbump.file]]
src = "scilab_kernel/_version.py"
src = "scilab_kernel/__init__.py"
2 changes: 1 addition & 1 deletion scilab_kernel/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""A Scilab kernel for Jupyter"""

from ._version import __version__
__version__ = '0.10.0'
5 changes: 2 additions & 3 deletions scilab_kernel/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import os
import re
import shutil
import subprocess
import sys
import tempfile
import importlib
Expand Down Expand Up @@ -111,7 +110,7 @@ def _detect_executable(self):
executable = cmd.split(r'"')[1].replace("wscilex.exe", "wscilex-cli.exe")
self.log.warning('Windows registry binary: ' + executable)
yield executable
except FileNotFoundError as e:
except FileNotFoundError:
pass

# detect on the path
Expand Down Expand Up @@ -155,7 +154,7 @@ def makeWrapper(self):

def Write(self, message):
clean_msg = message.strip("\n\r\t")
super(ScilabKernel, self).Write(message)
super(ScilabKernel, self).Write(clean_msg)

def Print(self, text):
text = str(text).strip('\x1b[0m').replace('\u0008', '').strip()
Expand Down

0 comments on commit b3c3912

Please sign in to comment.