Fix pylint configuration, script and matcher (#491)
* Fix pylint configuration, script and matcher * Makes yapf happy * Fix one-liner docstring * Fix one-liner docstring
This commit is contained in:
committed by
GitHub
parent
12f6ed6e0b
commit
15233dba3e
@@ -13,6 +13,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
# Lint as: python3
|
||||
"""Tools that implements vendor-specific CTAP2 commands to configure OpenSK."""
|
||||
|
||||
from __future__ import absolute_import
|
||||
from __future__ import division
|
||||
@@ -121,7 +122,7 @@ def main(args):
|
||||
cert.public_bytes(serialization.Encoding.DER),
|
||||
2:
|
||||
priv_key.private_numbers().private_value.to_bytes(
|
||||
length=32, byteorder='big', signed=False)
|
||||
length=32, byteorder="big", signed=False)
|
||||
}
|
||||
|
||||
devices = get_opensk_devices(args.batch)
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
# Lint as: python3
|
||||
"""Tool that is part of firmware upgrabability in OpenSK."""
|
||||
|
||||
from __future__ import absolute_import
|
||||
from __future__ import division
|
||||
|
||||
@@ -13,19 +13,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
SUCCESS=0
|
||||
|
||||
# Ensure we are at the project root directory
|
||||
cd $(readlink -f $(dirname $0))/..
|
||||
|
||||
for file in `find . ! -path "./third_party/*" -type f -name '*.py'`
|
||||
do
|
||||
# Output header for our custom matcher on Github workflow
|
||||
echo "PYLINT:${file}"
|
||||
if ! pylint --rcfile=.pylintrc --score=n "$file"
|
||||
then
|
||||
SUCCESS=1
|
||||
fi
|
||||
done
|
||||
|
||||
exit $SUCCESS
|
||||
pylint --score=n `git ls-files --deduplicate --exclude-standard --full-name '*.py'`
|
||||
|
||||
Reference in New Issue
Block a user