mirror of
https://github.com/rpm-software-management/tito.git
synced 2025-02-23 20:22:46 +00:00
Use pycodestyle pacakge when pep8 is not available
This commit is contained in:
parent
176d546872
commit
30f59ec027
2 changed files with 10 additions and 2 deletions
|
@ -15,7 +15,7 @@ RUN dnf -y install \
|
|||
python3-mock \
|
||||
python3-nose \
|
||||
python3-blessed \
|
||||
python3-pep8 \
|
||||
python3-pycodestyle \
|
||||
rsync \
|
||||
createrepo_c
|
||||
|
||||
|
|
|
@ -21,7 +21,15 @@ Python 3 is picky about indentation:
|
|||
http://docs.python.org/3.3/reference/lexical_analysis.html
|
||||
"""
|
||||
|
||||
try:
|
||||
# python-pep8 package is retired in Fedora because upstream
|
||||
# moved to pycodestyle. Please see
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1667200
|
||||
import pep8
|
||||
except ImportError:
|
||||
import pycodestyle as pep8
|
||||
|
||||
|
||||
from tito.compat import * # NOQA
|
||||
from unit.fixture import TitoUnitTestFixture, REPO_DIR
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue