Permalink
Browse files

Changes for pylint and removed yapf tests (#307)

  • Loading branch information...
joachimmetz committed Feb 2, 2019
1 parent 9201c67 commit aa61e52af7e319a33b919d440e82fb474924532b
Showing with 21 additions and 70 deletions.
  1. +15 −13 .pylintrc
  2. +2 −20 .travis.yml
  3. +1 −1 appveyor.yml
  4. +0 −2 artifacts/definitions.py
  5. +3 −3 config/travis/install.sh
  6. +0 −29 tests/style_test.py
  7. +0 −2 tox.ini
@@ -1,4 +1,4 @@
# Pylint 1.7.x - 1.9.x configuration file
# Pylint 2.1.x - 2.2.x configuration file
#
# This file is generated by l2tdevtools update-dependencies.py, any dependency
# related changes should be made in dependencies.ini.
@@ -56,23 +56,23 @@ confidence=
# --disable=W"
#
disable=
duplicate-code,
parameter-unpacking,
raw-checker-failed,
assignment-from-none,
bad-inline-option,
locally-disabled,
locally-enabled,
file-ignored,
suppressed-message,
useless-suppression,
deprecated-pragma,
no-absolute-import,
missing-param-doc,
metaclass-assignment,
duplicate-code,
eq-without-hash,
file-ignored,
fixme,
locally-disabled,
locally-enabled,
logging-format-interpolation,
metaclass-assignment,
missing-param-doc,
no-absolute-import,
no-self-use,
parameter-unpacking,
raw-checker-failed,
suppressed-message,
too-few-public-methods,
too-many-ancestors,
too-many-boolean-expressions,
@@ -84,7 +84,9 @@ disable=
too-many-public-methods,
too-many-return-statements,
too-many-statements,
unsubscriptable-object
unsubscriptable-object,
useless-object-inheritance,
useless-suppression

# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
@@ -2,11 +2,11 @@ matrix:
include:
- env: TARGET="pylint"
os: linux
dist: trusty
dist: xenial
sudo: required
group: edge
language: python
python: 2.7
python: 3.5
virtualenv:
system_site_packages: true
- env: TARGET="linux-python27"
@@ -76,24 +76,6 @@ matrix:
os: osx
osx_image: xcode9.2
language: generic
- env: TARGET="trusty-python27"
os: linux
dist: trusty
sudo: required
group: edge
language: python
python: 2.7
virtualenv:
system_site_packages: true
- env: TARGET="trusty-python34"
os: linux
dist: trusty
sudo: required
group: edge
language: python
python: 3.4
virtualenv:
system_site_packages: true
install:
- ./config/travis/install.sh
script:
@@ -22,7 +22,7 @@ install:
- cmd: if [%TARGET%]==[windows_python27] (
mkdir dependencies &&
set PYTHONPATH=..\l2tdevtools &&
"%PYTHON%\\python.exe" ..\l2tdevtools\tools\update.py --download-directory dependencies --machine-type %MACHINE_TYPE% --msi-targetdir "%PYTHON%" --track dev PyYAML funcsigs mock pbr six yapf )
"%PYTHON%\\python.exe" ..\l2tdevtools\tools\update.py --download-directory dependencies --machine-type %MACHINE_TYPE% --msi-targetdir "%PYTHON%" --track dev PyYAML funcsigs mock pbr six )
- cmd: if [%TARGET%]==[windows_python36] (
mkdir dependencies &&
set PYTHONPATH=..\l2tdevtools &&
@@ -45,7 +45,6 @@
SUPPORTED_OS_LINUX = 'Linux'
SUPPORTED_OS_WINDOWS = 'Windows'

# yapf: disable
SUPPORTED_OS = frozenset([
SUPPORTED_OS_DARWIN,
SUPPORTED_OS_LINUX,
@@ -60,4 +59,3 @@
'sources',
'supported_os',
'urls'])
# yapf: enable
@@ -7,15 +7,15 @@

L2TBINARIES_DEPENDENCIES="PyYAML";

L2TBINARIES_TEST_DEPENDENCIES="funcsigs mock pbr six yapf";
L2TBINARIES_TEST_DEPENDENCIES="funcsigs mock pbr six";

PYTHON2_DEPENDENCIES="python-yaml";

PYTHON2_TEST_DEPENDENCIES="python-coverage python-funcsigs python-mock python-pbr python-six python-tox python-yapf yapf";
PYTHON2_TEST_DEPENDENCIES="python-coverage python-funcsigs python-mock python-pbr python-six python-tox";

PYTHON3_DEPENDENCIES="python3-yaml";

PYTHON3_TEST_DEPENDENCIES="python-yapf python3-mock python3-pbr python3-setuptools python3-six python3-tox yapf";
PYTHON3_TEST_DEPENDENCIES="python3-mock python3-pbr python3-setuptools python3-six python3-tox";

# Exit on error.
set -e;

This file was deleted.

Oops, something went wrong.
@@ -11,7 +11,6 @@ deps =
pbr
six
pytest
yapf
-rrequirements.txt
commands =
./run_tests.py
@@ -27,7 +26,6 @@ deps =
pbr
six
pytest
yapf
-rrequirements.txt
commands =
coverage erase

0 comments on commit aa61e52

Please sign in to comment.