Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: remove PUT #4

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open
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
122 changes: 0 additions & 122 deletions .github/workflows/build-install.yaml

This file was deleted.

58 changes: 58 additions & 0 deletions .github/workflows/linters.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: 'linters'

on:
push:
branches: ['master']
paths:
- '.github/**'
- '**.py'
- 'tests/**'
pull_request:
branches: ['master']
paths:
- '.github/**'
- '**.py'
- 'tests/**'

jobs:
pylint_plugins:
name: 'diff pylint runs on osc plugins'
runs-on: 'ubuntu-latest'
strategy:
fail-fast: false
matrix:
plugin_repository:
- openSUSE/openSUSE-release-tools
- openSUSE/osc-plugin-collab
- openSUSE/osc-plugin-install
- openSUSE/osc-plugin-overview
- openSUSE/osc-plugin-qam

steps:
- name: 'Install packages'
run: |
sudo apt-get -y update
sudo apt-get -y --no-install-recommends install diffutils pylint

- uses: actions/checkout@v3
with:
path: osc-pr

- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.base.sha }}
path: osc-master

- uses: actions/checkout@v3
with:
repository: ${{ matrix.plugin_repository }}
path: plugin

- name: 'Diff pylint runs'
run: |
cd plugin
find -maxdepth 2 -name __init__.py | while read i; do dirname $i; done | sort > .pylint-args
find -maxdepth 1 -name '*.py' | sort >> .pylint-args
PYTHONPATH="../osc-master" pylint --errors-only $(cat .pylint-args) | sort > pylint-osc-master.log || :
PYTHONPATH="../osc-pr" pylint --errors-only $(cat .pylint-args) | sort > pylint-osc-pr.log || :
diff -u pylint-osc-master.log pylint-osc-pr.log
93 changes: 0 additions & 93 deletions .github/workflows/unittests.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion osc/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
from . import conf
from . import meter
from . import oscerr
from .connection import http_request, http_GET, http_POST, http_PUT, http_DELETE
from .connection import http_request, http_GET, http_POST, http_DELETE
from .store import Store
from .util.helper import decode_list, decode_it, raw_input, _html_escape

Expand Down