pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkgsrc: py-codestyle: updated to 2.4.0
details: https://anonhg.NetBSD.org/pkgsrc/rev/286f8c1461b2
branches: trunk
changeset: 306144:286f8c1461b2
user: adam <adam%pkgsrc.org@localhost>
date: Wed Apr 11 13:24:02 2018 +0000
description:
py-codestyle: updated to 2.4.0
2.4.0 (2018-04-10)
New checks:
Add W504 warning for checking that a break doesn?t happen after a binary operator. This check is ignored by default.
Add W605 warning for invalid escape sequences in string literals.
Add W606 warning for ?async? and ?await? reserved keywords being introduced in Python 3.7.
Add E252 error for missing whitespace around equal sign in type annotated function arguments with defaults values.
Changes:
An internal bisect search has replaced a linear search in order to improve efficiency.
pycodestyle now uses PyPI trove classifiers in order to document supported python versions on PyPI.
?setup.cfg? ?[wheel]? section has been renamed to ?[bdist_wheel]?, as the former is legacy.
pycodestyle now handles very long lines much more efficiently for python 3.2+.
You can now write ?pycodestyle.StyleGuide(verbose=True)? instead of ?pycodestyle.StyleGuide(verbose=True, paths=[?-v?])? in order to achieve verbosity.
The distribution of pycodestyle now includes the license text in order to comply with open source licenses which require this.
?maximum_line_length? now ignores shebang (?#!?) lines.
Add configuration option for the allowed number of blank lines. It is implemented as a top level dictionary which can be easily overwritten.
Bugs:
Prevent a ?DeprecationWarning?, and a ?SyntaxError? in future python, caused by an invalid escape sequence.
Correctly report E501 when the first line of a docstring is too long.
Support variable annotation when variable start by a keyword, such as class variable type annotations in python 3.6.
pycodestyle internals have been changed in order to allow ?python3 -m cProfile? to report correct metrics.
Fix a spelling mistake in the description of E722.
?pycodestyle ?diff? now does not break if your ?gitconfig? enables ?mnemonicprefix?.
diffstat:
devel/py-codestyle/Makefile | 7 ++-----
devel/py-codestyle/distinfo | 10 +++++-----
2 files changed, 7 insertions(+), 10 deletions(-)
diffs (36 lines):
diff -r 6ee3eb9a68fa -r 286f8c1461b2 devel/py-codestyle/Makefile
--- a/devel/py-codestyle/Makefile Wed Apr 11 13:18:11 2018 +0000
+++ b/devel/py-codestyle/Makefile Wed Apr 11 13:24:02 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.4 2017/07/30 22:32:16 wiz Exp $
+# $NetBSD: Makefile,v 1.5 2018/04/11 13:24:02 adam Exp $
-DISTNAME= pycodestyle-2.3.1
+DISTNAME= pycodestyle-2.4.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pycodestyle/}
@@ -15,8 +15,5 @@
post-install:
cd ${DESTDIR}${PREFIX}/bin && ${MV} pycodestyle pycodestyle-${PYVERSSUFFIX} || ${TRUE}
-do-test:
- cd ${WRKSRC}; ${SETENV} ${TEST_ENV} ${PYTHONBIN} setup.py test
-
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 6ee3eb9a68fa -r 286f8c1461b2 devel/py-codestyle/distinfo
--- a/devel/py-codestyle/distinfo Wed Apr 11 13:18:11 2018 +0000
+++ b/devel/py-codestyle/distinfo Wed Apr 11 13:24:02 2018 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.2 2017/05/03 19:29:58 adam Exp $
+$NetBSD: distinfo,v 1.3 2018/04/11 13:24:02 adam Exp $
-SHA1 (pycodestyle-2.3.1.tar.gz) = bdbd7415485975649fbce9b461aae26157898c56
-RMD160 (pycodestyle-2.3.1.tar.gz) = beb5e00fdd74e3811a180959bac9c2abfb7cbea0
-SHA512 (pycodestyle-2.3.1.tar.gz) = 276bc21b4e6898e379be88f3582135a21314460ad20d4b6c3e12825ac1a72082b2c08bb62099e704c3222f879a1098d0b305132fac1095aaa60ca239b9763a2d
-Size (pycodestyle-2.3.1.tar.gz) = 89460 bytes
+SHA1 (pycodestyle-2.4.0.tar.gz) = dd63c40c89afed96503ad9240c5b6d51ebdc0f9c
+RMD160 (pycodestyle-2.4.0.tar.gz) = 1a0281bb62c0a409e2318b6eb3b25e84c9840f8e
+SHA512 (pycodestyle-2.4.0.tar.gz) = cb35238291fed30f1a4363e65b754165772d01e6006e19ce31769691aed17411cd893899fcd22dfca0455401bee899097fff6f3d63825c7656f186e37b7da3a0
+Size (pycodestyle-2.4.0.tar.gz) = 96665 bytes
Home |
Main Index |
Thread Index |
Old Index