From 539e01bfbc4901beb7ed38b89376ecba8523dfa3 Mon Sep 17 00:00:00 2001 From: Tomas Hrnciar Date: Wed, 19 May 2021 10:40:47 +0200 Subject: [PATCH] sed out linter dependency on pytest-flake8 --- python-portend.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python-portend.spec b/python-portend.spec index b7f0d2e..a0c11bb 100644 --- a/python-portend.spec +++ b/python-portend.spec @@ -24,7 +24,6 @@ BuildRequires: python3-devel BuildRequires: python3dist(jaraco.functools) BuildRequires: python3dist(pytest) >= 3.4 BuildRequires: python3dist(pytest-cov) -%{?fedora:BuildRequires: python3dist(pytest-flake8)} #BuildRequires: python3dist(pytest-sugar) >= 0.9.1 BuildRequires: python3dist(setuptools) BuildRequires: python3dist(setuptools-scm) >= 1.15 @@ -54,6 +53,11 @@ rm -rf %{pypi_name}.egg-info # black is apparently not a valid option? sed -i 's/ --black//' pytest.ini +# Don't run the linter as part of tests +sed -i '/^addopts=--flake8$/d' pyproject.toml +sed -i '/pytest-flake8/d' setup.cfg +rm .flake8 + %build %py3_build