Douglas Raillard
6fe4bce68d
Remove Python 2 support
...
Python 2 is long dead and devlib does not support it anymore, so cleanup
old Python 2-only code.
2024-01-09 12:20:26 -08:00
Marc Bonnici
276f146c1e
pylint: Update for newer versions of pylint
...
In later versions of pylint the 'version' attribute has been moved,
therefore check both options while attempting to detect the installed
version number.
2022-08-18 17:19:43 +01:00
Marc Bonnici
aa4df95a69
pep8: Ignore line break before binary operator
...
PEP8 has switched its guidance [1] for where a line break should occur
in relation to a binary operator, so don't raise this warning for
new code and update the code base to follow the new style.
[1] https://www.python.org/dev/peps/pep-0008/#should-a-line-break-before-or-after-a-binary-operator
2020-10-30 11:49:54 +00:00
Sergei Trofimov
0e84cf6d64
dev_scripts/pylint: fix default path
...
Fix the default scan path used if one has not been specified.
2018-07-18 11:20:48 +01:00
Sergei Trofimov
ae4fdb9e77
dev_scripts: pylint: check both Python Versions
...
Check both "python" and "python3" for the pylint package, as it is
possible that pylint will be installed via Python 3 on Python 2 systems.
2018-07-10 12:56:51 +01:00
Sergei Trofimov
0e0d4e0ff0
dev_scripts: port pylint plugins to Python 3
2018-07-09 15:59:40 +01:00
Marc Bonnici
4a10ea1065
dev_scripts/pep8: Update error message to flake8
2018-07-06 14:39:41 +01:00
Sergei Trofimov
109daa7f8c
dev_scripts: pylint fixes
...
- Add "set -e" to abort on error
- Update the required version
- Fix path for the "default" runs
2018-07-06 14:39:41 +01:00
Sergei Trofimov
88c5005b38
dev_scripts: pylint: ignore errors per subdir
...
Add the ability to ignore specific pylint errors on per-subpackage or
per-module basis by adding a plugin that checks the path of the module
against pre-defined sub-paths and inserts disable tags as needed.
2018-07-06 14:39:41 +01:00
Sergei Trofimov
651adaaa57
dev_scripts: switch from pep8 to flake8
...
The pep8 code checker is deprecated and will be removed in the future.
Switch to using its successor, flake8.
Also, add a couple of more entries to ignored exceptions.
2018-07-06 14:39:41 +01:00
Sergei Trofimov
45b5de65d1
dev_scripts: rename copyright_updater
...
Rename copyright_updater to update_copyrights in order to mach the
naming convention of other scripts.
2018-07-04 16:33:31 +01:00
Sergei Trofimov
09d7d55772
dev_scripts: enhance copyright updater
...
- Expand the types for files it checks to include Java, C, and shell
scripts.
- Add exclusion paths.
- Add copyright header to files that don't already have one but should.
2018-07-04 16:33:31 +01:00
Nicholas Thoelke
a3b1921793
dev_scripts: add copyright_updater
...
Add copyright_updater script which checks Python files to ensure their
copyright is up to date with its last modification.
2018-06-27 16:23:08 +01:00
Marc Bonnici
43a8f01109
dev_scripts/dev8: Update to use WA3 paths
2018-05-21 10:26:28 +01:00
Brendan Jackman
e4967fb43f
Fix pylint for wlauto -> wa
2017-12-07 15:37:49 +00:00
Sergei Trofimov
20f10f51e2
dev_scripts: add rebuild_all_uiauto
...
Add a script to rebuild UIAutomator APKs for all workloads that have
them. This is usefull to ensure they all use the latest uiauto.arr after
making changes to it.
2017-11-24 14:30:09 +00:00
Sebastian Goscik
bef8fb40ef
Updated pylint for v1.5.1
...
Fixed WA for the latest version of pylint (1.5.1)
2015-12-09 16:52:39 +00:00
Sergei Trofimov
0c19d75bf4
Adding daqpower package to static checkers.
2015-06-09 11:03:26 +01:00
Sergei Trofimov
cce287a1e7
Fixed dev_scripts/get_apk_versions.
...
It was relying on a distmanagement module that no longer exists. The
required functionality from that module is now part of the script.
2015-03-18 10:50:02 +00:00
Sergei Trofimov
a747ec7e4c
Initial commit of open source Workload Automation.
2015-03-10 13:09:31 +00:00