Commit d9b9268a authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python311Packages.pylint: format with nixfmt

parent becd4a58
Loading
Loading
Loading
Loading
+57 −56
Original line number Diff line number Diff line
{ 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 = [
  dependencies =
    [
      astroid
      dill
      isort
      mccabe
      platformdirs
      tomlkit
  ] ++ lib.optionals (pythonOlder "3.11") [
    tomli
  ] ++ lib.optionals (pythonOlder "3.10") [
    typing-extensions
  ];
    ]
    ++ 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,7 +83,8 @@ buildPythonPackage rec {
    "tests/pyreverse/test_writer.py"
  ];

  disabledTests = [
  disabledTests =
    [
      # AssertionError when self executing and checking output
      # expected output looks like it should match though
      "test_invocation_of_pylint_config"
@@ -100,7 +100,8 @@ buildPythonPackage rec {
      "test_functional"
      # AssertionError: assert [('specializa..., 'Ancestor')] == [('aggregatio..., 'Ancestor')]
      "test_functional_relation_extraction"
  ] ++ lib.optionals stdenv.isDarwin [
    ]
    ++ lib.optionals stdenv.isDarwin [
      "test_parallel_execution"
      "test_py3k_jobs_option"
    ];