What's New in Pylint 2.6.0? =========================== * Fix various scope-related bugs in ``undefined-variable`` checker * bad-continuation and bad-whitespace have been removed, black or another formatter can help you with this better than Pylint * The no-space-check option has been removed. It's no longer possible to consider empty line like a `trailing-whitespace` by using clever options * ``missing-kwoa`` is no longer emitted when dealing with overload functions * mixed-indentation has been removed, it is no longer useful since TabError is included directly in python3 * Add `super-with-arguments` check for flagging instances of Python 2 style super calls. * Add an faq detailing which messages to disable to avoid duplicates w/ other popular linters * Fix superfluous-parens false-positive for the walrus operator * Fix `fail-under` not accepting floats * Fix a bug with `ignore-docstrings` ignoring all lines in a module * Fix `pre-commit` config that could lead to undetected duplicate lines of code * Fix a crash in parallel mode when the module's filepath is not set * Add `raise-missing-from` check for exceptions that should have a cause. * Support both isort 4 and isort 5. If you have pinned isort 4 in your projet requirements, nothing changes. If you use isort 5, though, note that the `known-standard-library` option is not interpreted the same in isort 4 and isort 5 (see the migration guide in isort documentation for further details). For compatibility's sake for most pylint users, the `known-standard-library` option in pylint now maps to `extra-standard-library` in isort 5. If you really want what `known-standard-library` now means in isort 5, you must disable the `wrong-import-order` check in pylint and run isort manually with a proper isort configuration file.
38 lines
1.2 KiB
Makefile
38 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.43 2020/08/21 21:55:41 adam Exp $
|
|
|
|
DISTNAME= pylint-2.6.0
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pylint/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://www.pylint.org/
|
|
COMMENT= Python source code analyzer
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
DEPENDS+= ${PYPKGPREFIX}-astroid>=2.2.0:../../devel/py-astroid
|
|
DEPENDS+= ${PYPKGPREFIX}-isort>=4.2.5:../../devel/py-isort
|
|
DEPENDS+= ${PYPKGPREFIX}-mccabe>=0.6:../../devel/py-mccabe
|
|
DEPENDS+= ${PYPKGPREFIX}-toml>=0.7.1:../../textproc/py-toml
|
|
BUILD_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
|
|
|
|
USE_LANGUAGES= # none
|
|
|
|
PYTHON_VERSIONS_INCOMPATIBLE= 27
|
|
|
|
INSTALLATION_DIRS= ${PKGMANDIR}/man1
|
|
|
|
post-install:
|
|
.for file in epylint pylint pyreverse symilar
|
|
cd ${DESTDIR}${PREFIX}/bin && \
|
|
${MV} ${file} ${file}-${PYVERSSUFFIX} || ${TRUE}
|
|
${INSTALL_DATA} ${WRKSRC}/man/${file}.1 \
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${file}-${PYVERSSUFFIX}.1
|
|
.endfor
|
|
|
|
do-test:
|
|
cd ${WRKSRC} && ${SETENV} ${TEST_ENV} PYTHONPATH=. pytest-${PYVERSSUFFIX}
|
|
|
|
.include "../../lang/python/egg.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|