From 8f74fdafb20bda6236928dd430e7488c26afd1d1 Mon Sep 17 00:00:00 2001 From: Stephen Thompson Date: Thu, 25 Jul 2024 09:04:04 +0100 Subject: [PATCH] Updates to tests (lint, coverage, ci) #37 --- .coveragerc | 4 +-- .github/workflows/ci.yml | 4 +-- tests/pylintrc | 74 +++------------------------------------- 3 files changed, 9 insertions(+), 73 deletions(-) diff --git a/.coveragerc b/.coveragerc index 09d324b..fbc3618 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,4 +1,4 @@ [run] omit = - ./snappytutorial01/_version.py - ./snappytutorial01/__init__.py + ./sksurgerytutorial01/_version.py + ./sksurgerytutorial01/__init__.py diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c6ffe5..027dec3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, windows-latest, macos-latest] + os: [ubuntu-latest, windows-latest] python-ver: [3.7, 3.8] experimental: [false] exclude: @@ -64,7 +64,7 @@ jobs: - name: Run tests using xvfb (Ubuntu) if: startsWith(matrix.os, 'ubuntu') run: | - sudo apt-get install xvfb libxkbcommon-x11-0 + sudo apt-get install xvfb libxkbcommon-x11-0 libgl1 sudo Xvfb :1 -screen 0 1024x768x24 ?$ # else. single-line-if-stmt=y -# List of optional constructs for which whitespace checking is disabled. `dict- -# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}. -# `trailing-comma` allows a space between comma and closing bracket: (a, ). -# `empty-line` allows space-only lines. -no-space-check=trailing-comma,dict-separator - # Maximum number of lines in a module max-module-lines=1000 @@ -278,7 +214,7 @@ ignore-mixin-members=yes # (useful for modules/projects where namespaces are manipulated during runtime # and thus existing member attributes cannot be deduced by static analysis. It # supports qualified module names, as well as Unix pattern matching. -ignored-modules=PySide2,cv2,sksurgeryvtk,numpy +ignored-modules= # List of class names for which member attributes should not be checked (useful # for classes with dynamically set attributes). This supports the use of @@ -315,7 +251,7 @@ callbacks=cb_,_cb # List of qualified module names which can have objects that can redefine # builtins. -redefining-builtins-modules=six.moves,future.builtins +redefining-builtins-modules=future.builtins [CLASSES] @@ -405,4 +341,4 @@ analyse-fallback-blocks=no # Exceptions that will emit a warning when being caught. Defaults to # "Exception" -overgeneral-exceptions=Exception +overgeneral-exceptions=builtins.Exception