Better format enforcing (#1391)
* Add shared python format-check target * Add .format-check to api lint target * Format api code with makefile format target * Add .format-check to tools lint target * Add .format-check to analyzer lint target * Format analyzer code with makefile format target * Add .format-check to celery lint target * Add .format-check to api_client lint target * Format api_client code with makefile format target * Add .format-check to playout lint target * Run CI linting in parallel * Disable isort in pre-commit
This commit is contained in:
parent
ada4c72e87
commit
30b3470a06
25 changed files with 50 additions and 22 deletions
|
@ -8,6 +8,6 @@ MYPY_ARG := api_clients tests
|
|||
PYTEST_ARG := --cov=api_clients tests
|
||||
|
||||
format: .format
|
||||
lint: .pylint .mypy
|
||||
lint: .format-check .pylint .mypy
|
||||
test: .pytest
|
||||
clean: .clean
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import pytest
|
||||
|
||||
from api_clients.utils import ApcUrl, IncompleteUrl, UrlBadParam
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import pytest
|
||||
|
||||
from api_clients.utils import RequestProvider
|
||||
from api_clients.version1 import api_config
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@ import datetime
|
|||
from configparser import ConfigParser
|
||||
|
||||
import pytest
|
||||
|
||||
from api_clients import utils
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import pytest
|
||||
|
||||
from api_clients.utils import RequestProvider
|
||||
from api_clients.version2 import AirtimeApiClient, api_config
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue