Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@ node {
// remove untracked files (*.pyc for example)
sh 'git clean -fxd'
}
stage ('ruff format') {
sh 'curl -L --silent https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-x86_64-unknown-linux-gnu.tar.gz --output - | tar -xzv'
sh 'cp ruff-x86_64-unknown-linux-gnu/ruff .'
sh './ruff --version'
sh './ruff format --check .'
}
stage ('ruff check') {
sh 'curl -L --silent https://github.com/astral-sh/ruff/releases/download/0.13.1/ruff-x86_64-unknown-linux-gnu.tar.gz --output - | tar -xzv'
sh 'cp ruff-x86_64-unknown-linux-gnu/ruff .'
sh './ruff --version'
sh './ruff check .'
}
stage('test') {
sh 'pip3 install --ignore-installed --prefix $PWD/.vsc-tox tox'
sh 'export PATH=$PWD/.vsc-tox/bin:$PATH && export PYTHONPATH=$PWD/.vsc-tox/lib/python$(python3 -c "import sys; print(\\"%s.%s\\" % sys.version_info[:2])")/site-packages:$PYTHONPATH && tox -v -c tox.ini'
Expand Down
5 changes: 3 additions & 2 deletions lib/vsc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
@author: Andy Georges (Ghent University)
"""

#the vsc namespace is used in different folders allong the system
#so explicitly declare this is also the vsc namespace
# the vsc namespace is used in different folders allong the system
# so explicitly declare this is also the vsc namespace
import pkg_resources

pkg_resources.declare_namespace(__name__)
2 changes: 2 additions & 0 deletions lib/vsc/filesystem/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

@author: Stijn De Weirdt (Ghent University)
"""

# Allow other packages to extend this namespace, zip safe setuptools style
import pkg_resources

pkg_resources.declare_namespace(__name__)
4 changes: 2 additions & 2 deletions lib/vsc/filesystem/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@

from vsc.filesystem.posix import PosixOperations, PosixOperationError


class ExtOperationError(PosixOperationError):
pass


class ExtOperations(PosixOperations):

def __init__(self):
super().__init__()
self.supportedfilesystems = ['ext2', 'ext3', 'ext4']
self.supportedfilesystems = ["ext2", "ext3", "ext4"]
Loading