python311Packages.pylint: format with nixfmt

This commit is contained in:
Fabian Affolter
2024-05-14 08:26:57 +02:00
parent becd4a584b
commit d9b9268a1b
@@ -1,23 +1,24 @@
{ lib
, stdenv
, astroid
, buildPythonPackage
, dill
, fetchFromGitHub
, gitpython
, isort
, mccabe
, platformdirs
, py
, pytest-timeout
, pytest-xdist
, pytest7CheckHook
, pythonOlder
, requests
, setuptools
, tomli
, tomlkit
, typing-extensions
{
lib,
stdenv,
astroid,
buildPythonPackage,
dill,
fetchFromGitHub,
gitpython,
isort,
mccabe,
platformdirs,
py,
pytest-timeout,
pytest-xdist,
pytest7CheckHook,
pythonOlder,
requests,
setuptools,
tomli,
tomlkit,
typing-extensions,
}:
buildPythonPackage rec {
@@ -34,22 +35,19 @@ buildPythonPackage rec {
hash = "sha256-LmpLt2GCzYU73BUpORHaFbGqkxyYqoPoKZpUJSChqKQ=";
};
build-system = [
setuptools
];
build-system = [ setuptools ];
dependencies = [
astroid
dill
isort
mccabe
platformdirs
tomlkit
] ++ lib.optionals (pythonOlder "3.11") [
tomli
] ++ lib.optionals (pythonOlder "3.10") [
typing-extensions
];
dependencies =
[
astroid
dill
isort
mccabe
platformdirs
tomlkit
]
++ lib.optionals (pythonOlder "3.11") [ tomli ]
++ lib.optionals (pythonOlder "3.10") [ typing-extensions ];
nativeCheckInputs = [
gitpython
@@ -67,7 +65,8 @@ buildPythonPackage rec {
# displaying implemented interfaces in pylint 3.0. The
# implementation relies on the '__implements__' attribute proposed
# in PEP 245, which was rejected in 2006.
"-W" "ignore::DeprecationWarning"
"-W"
"ignore::DeprecationWarning"
"-v"
];
@@ -84,26 +83,28 @@ buildPythonPackage rec {
"tests/pyreverse/test_writer.py"
];
disabledTests = [
# AssertionError when self executing and checking output
# expected output looks like it should match though
"test_invocation_of_pylint_config"
"test_generate_rcfile"
"test_generate_toml_config"
"test_help_msg"
"test_output_of_callback_options"
# Failed: DID NOT WARN. No warnings of type (<class 'UserWarning'>,) were emitted. The list of emitted warnings is: [].
"test_save_and_load_not_a_linter_stats"
# Truncated string expectation mismatch
"test_truncated_compare"
# Probably related to pytest versions, see pylint-dev/pylint#9477 and pylint-dev/pylint#9483
"test_functional"
# AssertionError: assert [('specializa..., 'Ancestor')] == [('aggregatio..., 'Ancestor')]
"test_functional_relation_extraction"
] ++ lib.optionals stdenv.isDarwin [
"test_parallel_execution"
"test_py3k_jobs_option"
];
disabledTests =
[
# AssertionError when self executing and checking output
# expected output looks like it should match though
"test_invocation_of_pylint_config"
"test_generate_rcfile"
"test_generate_toml_config"
"test_help_msg"
"test_output_of_callback_options"
# Failed: DID NOT WARN. No warnings of type (<class 'UserWarning'>,) were emitted. The list of emitted warnings is: [].
"test_save_and_load_not_a_linter_stats"
# Truncated string expectation mismatch
"test_truncated_compare"
# Probably related to pytest versions, see pylint-dev/pylint#9477 and pylint-dev/pylint#9483
"test_functional"
# AssertionError: assert [('specializa..., 'Ancestor')] == [('aggregatio..., 'Ancestor')]
"test_functional_relation_extraction"
]
++ lib.optionals stdenv.isDarwin [
"test_parallel_execution"
"test_py3k_jobs_option"
];
meta = with lib; {
description = "A bug and style checker for Python";