Remove dependency on tox (#70)
This commit is contained in:
parent
769812f7cd
commit
497cdd6b14
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -6,4 +6,3 @@ tests/ export-ignore
|
|||||||
.pylintrc export-ignore
|
.pylintrc export-ignore
|
||||||
Makefile export-ignore
|
Makefile export-ignore
|
||||||
requirements.txt export-ignore
|
requirements.txt export-ignore
|
||||||
tox.ini export-ignore
|
|
||||||
|
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -43,8 +43,6 @@ jobs:
|
|||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
- name: Run pylint
|
- name: Run pylint
|
||||||
run: make check-pylint
|
run: make check-pylint
|
||||||
- name: Run tox
|
|
||||||
run: make check-tox
|
|
||||||
- name: Check translations
|
- name: Check translations
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
run: make check-translations
|
run: make check-translations
|
||||||
|
8
Makefile
8
Makefile
@ -21,16 +21,12 @@ languages = $(filter-out en_gb, $(patsubst resources/language/resource.language.
|
|||||||
all: check test build
|
all: check test build
|
||||||
zip: build
|
zip: build
|
||||||
|
|
||||||
check: check-pylint check-tox check-translations
|
check: check-pylint check-translations
|
||||||
|
|
||||||
check-pylint:
|
check-pylint:
|
||||||
@printf ">>> Running pylint checks\n"
|
@printf ">>> Running pylint checks\n"
|
||||||
@$(PYTHON) -m pylint *.py resources/lib/ tests/
|
@$(PYTHON) -m pylint *.py resources/lib/ tests/
|
||||||
|
|
||||||
check-tox:
|
|
||||||
@printf ">>> Running tox checks\n"
|
|
||||||
@$(PYTHON) -m tox -q
|
|
||||||
|
|
||||||
check-translations:
|
check-translations:
|
||||||
@printf ">>> Running translation checks\n"
|
@printf ">>> Running translation checks\n"
|
||||||
@$(foreach lang,$(languages), \
|
@$(foreach lang,$(languages), \
|
||||||
@ -58,7 +54,7 @@ clean:
|
|||||||
@printf ">>> Cleaning up\n"
|
@printf ">>> Cleaning up\n"
|
||||||
@find . -name '*.py[cod]' -type f -delete
|
@find . -name '*.py[cod]' -type f -delete
|
||||||
@find . -name '__pycache__' -type d -delete
|
@find . -name '__pycache__' -type d -delete
|
||||||
@rm -rf .pytest_cache/ .tox/ tests/cdm tests/userdata/temp
|
@rm -rf .pytest_cache/ tests/cdm tests/userdata/temp
|
||||||
@rm -f *.log .coverage
|
@rm -f *.log .coverage
|
||||||
|
|
||||||
build: clean
|
build: clean
|
||||||
|
@ -5,6 +5,5 @@ pytest
|
|||||||
python-dateutil
|
python-dateutil
|
||||||
requests
|
requests
|
||||||
git+git://github.com/dagwieers/kodi-plugin-routing.git@setup#egg=routing
|
git+git://github.com/dagwieers/kodi-plugin-routing.git@setup#egg=routing
|
||||||
tox
|
|
||||||
six
|
six
|
||||||
sakee
|
sakee
|
||||||
|
27
tox.ini
27
tox.ini
@ -1,27 +0,0 @@
|
|||||||
[tox]
|
|
||||||
envlist = py27,py36,py37,py38,py39,flake8
|
|
||||||
skipsdist = True
|
|
||||||
skip_missing_interpreters = True
|
|
||||||
|
|
||||||
[testenv:flake8]
|
|
||||||
commands =
|
|
||||||
- {envbindir}/flake8
|
|
||||||
deps =
|
|
||||||
flake8
|
|
||||||
flake8-coding
|
|
||||||
flake8-future-import
|
|
||||||
|
|
||||||
[flake8]
|
|
||||||
builtins = func
|
|
||||||
max-line-length = 160
|
|
||||||
ignore = FI13,FI50,FI51,FI53,FI54,W503
|
|
||||||
require-code = True
|
|
||||||
min-version = 2.7
|
|
||||||
exclude = .git,.tox
|
|
||||||
|
|
||||||
[pytest]
|
|
||||||
filterwarnings = default
|
|
||||||
|
|
||||||
[pycodestyle]
|
|
||||||
max-line-length = 160
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user