diff --git a/.github/matchers/pylint.json b/.github/matchers/pylint.json deleted file mode 100644 index e3a6bd16..00000000 --- a/.github/matchers/pylint.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "problemMatcher": [ - { - "severity": "warning", - "pattern": [ - { - "regexp": "^([^:]+):(\\d+):(\\d+): ([A-DF-Z]\\d+): \\033\\[[\\d;]+m([^\\033]+).*$", - "file": 1, - "line": 2, - "column": 3, - "code": 4, - "message": 5 - } - ], - "owner": "pylint-warning" - }, - { - "severity": "error", - "pattern": [ - { - "regexp": "^([^:]+):(\\d+):(\\d+): (E\\d+): \\033\\[[\\d;]+m([^\\033]+).*$", - "file": 1, - "line": 2, - "column": 3, - "code": 4, - "message": 5 - } - ], - "owner": "pylint-error" - } - ] -} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 69280a80..5d05fd21 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,9 +6,6 @@ on: branches: - main -env: - FORCE_COLOR: 3 - concurrency: group: ${ github.workflow }-${ github.head_ref } cancel-in-progress: true @@ -21,11 +18,10 @@ jobs: - uses: actions/setup-python@v4 with: python-version: "3.x" + - uses: wandnz/action-lint-annotations@v1 - uses: pre-commit/action@v3.0.0 - name: PyLint - run: | - echo "::add-matcher::$GITHUB_WORKSPACE/.github/matchers/pylint.json" - pipx run nox -s pylint + run: pipx run nox -s pylint checks: runs-on: ubuntu-latest diff --git a/src/hist/basehist.py b/src/hist/basehist.py index cc008b7a..c7a9b6f0 100644 --- a/src/hist/basehist.py +++ b/src/hist/basehist.py @@ -72,6 +72,7 @@ def __init__( self.axes: NamedAxesTuple self.name = name self.label = label + useless = None if args and storage is None and isinstance(args[-1], (Storage, str)): storage = args[-1]