Skip to content

Commit 0b0eccb

Browse files
chore(requirements): fix lint
ignore generated files, fix markupsafe version pallets/markupsafe#284 NO JIRA
1 parent a01e7fb commit 0b0eccb

File tree

10 files changed

+13
-10
lines changed

10 files changed

+13
-10
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pytest_args?=-xv
1313
check: check-docs check-code-quality check-types ## Check it all!
1414

1515
check-code-quality: ## Check the code quality.
16-
@$(POETRY) run failprint -t "Checking code quality" -- flake8 --config=config/flake8.ini $(PY_SRC)
16+
@$(POETRY) run failprint -t "Checking code quality" -- flake8 --config config/flake8.ini $(PY_SRC)
1717

1818
check-docs: ## Check if the documentation builds correctly.
1919
@$(POETRY) run failprint -t "Building documentation" -- mkdocs build -s

config/flake8.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[flake8]
22
max-line-length = 88
3+
exclude = swagger
34
ignore =
45
W291 ;trailing whitespace
56
W293 ;blank line contains whitespace
@@ -11,4 +12,4 @@ ignore =
1112
ban-relative-imports = true
1213
docstring-convention = google
1314
max-complexity = 18
14-
select = B,C,E,F,W,T4,B901
15+
select = B,C,E,F,W,T4,B901

config/mypy.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ ignore_missing_imports = true
33

44
[mypy-lumapps.api.client]
55
ignore_errors = true
6+
7+
[mypy-lumapps.latest.api.swagger.*]
8+
ignore_errors = true

lumapps/latest/api/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
from .exceptions import ApiException
2-
from .article import ArticleApi

lumapps/latest/api/article.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from lumapps.latest.client import IClient
2-
from lumapps.latest.entities import Article
2+
from lumapps.latest.entities.article import Article
33

44
from .swagger.contribution_v1 import ContributionV1GW
55

lumapps/latest/api/swagger/contribution_v1/gateway.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from lumapps.latest.client import IClient, Request
22

3-
from lumapps.latest.api import ApiException
3+
from lumapps.latest.api.exceptions import ApiException
44

55
from . import models
66
from ..serialization import Serialization

lumapps/latest/api/swagger/serialization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import re
55
import tempfile
66

7-
from lumapps.latest.api import ApiException
7+
from lumapps.latest.api.exceptions import ApiException
88

99

1010
class SerializationError(ApiException):
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
from .article import Article

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ requests-mock = "^1.9.3"
4747
livereload = "^2.6.3"
4848
vcrpy = "^4.1.1"
4949
pytest-recording = "^0.12.0"
50+
markupsafe = "~2.0.1"
5051

5152
[tool.black]
5253
line-length = 88

tests/latest/api/test_article.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import pytest
2-
from lumapps.latest.api import ArticleApi, ApiException
3-
from lumapps.latest.entities import Article
2+
from lumapps.latest.api.exceptions import ApiException
3+
from lumapps.latest.api.article import ArticleApi
4+
from lumapps.latest.entities.article import Article
45

56

67
@pytest.mark.vcr()

0 commit comments

Comments
 (0)