Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Update 3.4 branch with latest updates in master #669

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

Merged
merged 14 commits into from
Jun 1, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Changed using custom test for pylint to opencv sample
  • Loading branch information
asenyaev committed May 31, 2022
commit b01f2cfe5d425533c3206846f282029f433826ee
2 changes: 1 addition & 1 deletion 2 .github/workflows/build_wheels_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: false
submodules: true
fetch-depth: 0

- name: Setup Environment variables
Expand Down
4 changes: 3 additions & 1 deletion 4 .github/workflows/build_wheels_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ jobs:
CONFIG_PATH: travis_config.sh
PLAT: x86_64
OPENCV_TEST_DATA_PATH: ${{ github.workspace }}/opencv_extra/testdata
PYLINT_TEST_FILE: ${{ github.workspace }}/opencv/samples/python/squares.py

steps:
- name: Checkout
Expand Down Expand Up @@ -174,7 +175,8 @@ jobs:
- name: Pylint test
run: |
python -m pip install pylint==2.12.2
python -m pylint ${{ github.workspace }}/tests/pylint.py --extension-pkg-whitelist=cv2 --disable=missing-docstring
cd ${{ github.workspace }}/tests
python -m pylint $PYLINT_TEST_FILE

test_release_opencv_python:
if: github.event_name == 'release' && github.event.release.prerelease
Expand Down
4 changes: 3 additions & 1 deletion 4 .github/workflows/build_wheels_macos_m1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ jobs:

env:
OPENCV_TEST_DATA_PATH: ${{ github.workspace }}/opencv_extra/testdata
PYLINT_TEST_FILE: ${{ github.workspace }}/opencv/samples/python/squares.py

steps:
- name: Checkout
Expand Down Expand Up @@ -109,7 +110,8 @@ jobs:
- name: Pylint test
run: |
arch -arm64 python${{ matrix.python-version }} -m pip install pylint==2.12.2
arch -arm64 python${{ matrix.python-version }} -m pylint ${{ github.workspace }}/tests/pylint.py --extension-pkg-whitelist=cv2 --disable=missing-docstring
cd ${{ github.workspace }}/tests
arch -arm64 python${{ matrix.python-version }} -m pylint $PYLINT_TEST_FILE

test_release_opencv_python:
if: github.event_name == 'release' && github.event.release.prerelease
Expand Down
4 changes: 3 additions & 1 deletion 4 .github/workflows/build_wheels_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ jobs:
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
OPENCV_TEST_DATA_PATH: ${{ github.workspace }}\opencv_extra\testdata
PYLINT_TEST_FILE: ${{ github.workspace }}\opencv\samples\python\squares.py

steps:
- name: Checkout
Expand Down Expand Up @@ -133,7 +134,8 @@ jobs:
- name: Pylint test
run: |
python -m pip install pylint==2.12.2
python -m pylint ${{ github.workspace }}\tests\pylint.py --extension-pkg-whitelist=cv2 --disable=missing-docstring
cd ${{ github.workspace }}\tests
python -m pylint $PYLINT_TEST_FILE
shell: cmd

test_release_opencv_python:
Expand Down
3 changes: 0 additions & 3 deletions 3 tests/pylint.py

This file was deleted.

12 changes: 12 additions & 0 deletions 12 tests/pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Source: opencv/platforms/scripts/pylintrc

[MESSAGES CONTROL]

# Disable all to choose the Tests one by one
disable=all

# Tests
enable=bad-indentation, # Used when an unexpected number of indentation’s tabulations or spaces has been found.
mixed-indentation, # Used when there are some mixed tabs and spaces in a module.
unnecessary-semicolon, # Used when a statement is ended by a semi-colon (”;”), which isn’t necessary.
unused-variable # Used when a variable is defined but not used. (Use _var to ignore var).
3 changes: 2 additions & 1 deletion 3 travis_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ function pylint_test {
echo "Starting Pylint tests..."

$PYTHON -m pip install pylint==2.12.2
$PYTHON -m pylint /io/tests/pylint.py --extension-pkg-whitelist=cv2 --disable=missing-docstring
cd /io/tests
$PYTHON -m pylint /io/opencv/samples/python/squares.py
}

export PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.