diff options
| author | Sergey Mironov <grrwlf@gmail.com> | 2021-01-16 12:11:29 +0300 |
|---|---|---|
| committer | Sergey Mironov <grrwlf@gmail.com> | 2021-01-27 20:56:59 +0300 |
| commit | 24a4bbf2ead197279c312be6298adf50be1669c3 (patch) | |
| tree | 423a671b4da63da9064a69789a5a633ec500ecf6 /pkgs/development/python-modules/python-language-server | |
| parent | 0b5fd3b7847445f3683ff60c8b896a7f2adc3b0e (diff) | |
python-language-server: do not propagate flake8
Because flake8 in turn propagates pyflakes. This effectively forcibly
enables this checker enabled even if user doesn't want it.
Diffstat (limited to 'pkgs/development/python-modules/python-language-server')
| -rw-r--r-- | pkgs/development/python-modules/python-language-server/default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/python-language-server/default.nix b/pkgs/development/python-modules/python-language-server/default.nix index b30542dacbd6..e221f5b1efc1 100644 --- a/pkgs/development/python-modules/python-language-server/default.nix +++ b/pkgs/development/python-modules/python-language-server/default.nix @@ -30,7 +30,7 @@ buildPythonPackage rec { sha256 = "07x6jr4z20jxn03bxblwc8vk0ywha492cgwfhj7q97nb5cm7kx0q"; }; - propagatedBuildInputs = [ setuptools jedi pluggy future python-jsonrpc-server flake8 ujson ] + propagatedBuildInputs = [ setuptools jedi pluggy future python-jsonrpc-server ujson ] ++ lib.optional (withProvider "autopep8") autopep8 ++ lib.optional (withProvider "mccabe") mccabe ++ lib.optional (withProvider "pycodestyle") pycodestyle @@ -42,12 +42,13 @@ buildPythonPackage rec { ++ lib.optional isPy27 configparser ++ lib.optionals (pythonOlder "3.2") [ backports_functools_lru_cache futures ]; - # The tests require all the providers, disable otherwise. doCheck = providers == ["*"]; checkInputs = [ pytestCheckHook mock pytestcov coverage flaky + # Do not propagate flake8 or it will enable pyflakes implicitly + flake8 # rope is technically a dependency, but we don't add it by default since we # already have jedi, which is the preferred option rope |
