restore pylint-2.8.0 from main repo

This commit is contained in:
Andreas Billmeier 2021-05-15 11:08:02 +02:00 committed by Andreas Billmeier
parent 8e3f6900ae
commit 3645046894
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
3 changed files with 72 additions and 0 deletions

View File

@ -34,6 +34,7 @@
* rename pre-commit to dev-vcs
* update astroid-2.5.5 (from main repo)
* bump home-assistant-frontend-20210504.0, remove many olds
* restore pylint-2.8.0 from main repo
2021-05-14
* update astral-2.2

View File

@ -3,6 +3,8 @@ AUX pylint-2.5.3-no-pytest-runner.patch 533 BLAKE2B 0882d3b057cd214ac04645c39925
AUX pylint-2.5.3-tests.patch 455 BLAKE2B 608ec913ea9d8088c3e7303026339eca69cbf706601ccb841642eef83ae9eccb7d6863da6c7957f9f49a81f24d17e72d835c3740ef177ced6356bec7510a0221 SHA512 dd1930e47dc342cb76fe55fad22cde3b4d5935a62c62d740b75e27701606bb8d5513b8f2c9e2f3116c0456a545a2c56f6d75b87903e2cdec1df97e4b8ed1b532
DIST pylint-2.5.3.tar.gz 684449 BLAKE2B 7b494f5334376ff571fd8971851198d037e87c5be83d0123fcb108701489769785164bb077eb10b4851c89b82dadc40c510186eaf03be1621c4d78c79dffbceb SHA512 03fcd893d361b66794f17433e90df108099fee2eccb35507c7f61befb8db846f0242e5ce2b4ee63727c9cc780a376c3b93d5af3186f884a4fdaad68b224ed7d2
DIST pylint-2.6.0.tar.gz 680289 BLAKE2B f7d4159478f667a3234beefd148857f26c8f7ea3aae3bfa70fa06fe2a8d86fcf22a0727a9fa5d8fc3de4aa0bb7a4d6e13bf68029f359122762d1e0d24a0b715b SHA512 02881fe14401bbe946618ef947c8db320a6c8dd93626402260d60468538ce67b61d1e8b921bfb1a6020514dd392e9b0021c97ddb60b45866c2d2241224f93f08
DIST pylint-2.8.0.tar.gz 734325 BLAKE2B 479c6f409a7da46d8416c4c06f76937b70ddbffab64d57a9107f9b04283fa985186684d3d146c5ca585a0e8e9369d28e4fbeb5f53262662d94edd862694dd4fa SHA512 d4f6b6c6046265beb0e17b8d375d2604a889bf9b6569d4dae9cdec3f92c8c76d440f6527c9d42f7197a73d4a65fab73f57e5ab99c98d40681119eb051b117211
EBUILD pylint-2.5.3.ebuild 1604 BLAKE2B 36455c4999d1e54ea89fea6359b654226ce7ea9df5e21e03c201de7daf7155b886ff6d669bb3e7e09c0aafd3bc5d6d338e9f4a12c5fb3e4b51a727a62ca00e59 SHA512 ca7e95401d063fbae9f2de19fd40fba53b3771ddbe02acfb45e71577d916cf0d76a9c67c83fbd2960603d9e002ff5edfccb2755f0cd3621150a131837b7038b2
EBUILD pylint-2.6.0.ebuild 1559 BLAKE2B 471f27a0dbcc117c01c2e4c7fa3153f97bf32454bc7a801c248d5e966da2319a5975636c117e3c05082af549c15c691552f8a4768d3787dd9d5a521ffcd73f65 SHA512 62e61f80d4ba078965d7b2dd1f424b0c286393808f41596a4e58a899ccc22c411c7d7e54ef0d8f1df711815b3f557d7fb9bfa26325e464761d15c59a3e764660
EBUILD pylint-2.8.0.ebuild 1948 BLAKE2B 799e68e529411b21d3efb0e11ca478ce145c9aea78789dbf4d3b6932dcc603cc57e3d0285684f3fc57dd6649636ec6251c134a93a6d4891f2350989633d65cf2 SHA512 912077d77839377a0c0536eb18aa2ac130c89c8d92c598c3e6e065945450a5077434f6970020a22c16a1fda396ce39c08a34d3114927029163ecfb8a85414bfa
MISC metadata.xml 471 BLAKE2B 752d34ba23d911d1b415210e55183213d9e3f7e39b1ac83f50d5dd45e0ac4b51b5c46870d9a13493c21a5268f0b1ceeb25b875c415e88ffe26cac990762ece69 SHA512 e16bf2ddc8773a018a9f2095075517865091b6b51dd9df4a1a15dc6848798240efc3372d73820a020b7823069abc08b2bd6f5345bda9e49fae68fdf9ac90be26

View File

@ -0,0 +1,69 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7..9} )
PYTHON_REQ_USE="threads(+)"
DISTUTILS_USE_SETUPTOOLS=rdepend
inherit distutils-r1
DESCRIPTION="Python code static checker"
HOMEPAGE="https://www.logilab.org/project/pylint
https://pypi.org/project/pylint/
https://github.com/pycqa/pylint/"
SRC_URI="
https://github.com/pycqa/pylint/archive/${P}.tar.gz"
S=${WORKDIR}/${PN}-${P}
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="examples"
RDEPEND="
<dev-python/astroid-2.7[${PYTHON_USEDEP}]
>=dev-python/astroid-2.5.2[${PYTHON_USEDEP}]
>=dev-python/isort-4.2.5[${PYTHON_USEDEP}]
<dev-python/isort-6[${PYTHON_USEDEP}]
>=dev-python/mccabe-0.6[${PYTHON_USEDEP}]
<dev-python/mccabe-0.7[${PYTHON_USEDEP}]
>=dev-python/toml-0.7.1[${PYTHON_USEDEP}]
"
PATCHES=(
"${FILESDIR}/${PN}-2.4.4-sphinx-theme.patch"
)
distutils_enable_sphinx doc --no-autodoc
distutils_enable_tests pytest
python_test() {
local skipped_tests=(
# No need to run the benchmarks
tests/benchmark/test_baseline_benchmarks.py
# Fails when graphviz is installed (?!)
tests/test_import_graph.py::test_missing_graphviz
# TODO
'tests/lint/unittest_expand_modules.py::test_expand_modules[files_or_modules1-expected1]'
)
[[ ${EPYTHON} == python3.8 ]] && skipped_tests+=(
# TODO
'tests/test_functional.py::test_functional[typing_deprecated_alias]'
'tests/test_functional.py::test_functional[typing_consider_using_alias]'
'tests/test_functional.py::test_functional[typing_consider_using_alias_without_future]'
)
# Specify the test directory explicitly to avoid import file mismatches
epytest tests ${skipped_tests[@]/#/--deselect }
}
python_install_all() {
if use examples ; then
docompress -x "/usr/share/doc/${PF}/examples"
docinto examples
dodoc -r examples/.
fi
distutils-r1_python_install_all
}