Skip to content

Commit 2be0ce6

Browse files
Set up mypy and flake8 linting
1 parent 5fcacdf commit 2be0ce6

File tree

3 files changed

+42
-5
lines changed

3 files changed

+42
-5
lines changed

.coveragerc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[run]
2+
branch = True
3+
[report]
4+
exclude_lines =
5+
pragma: no cover
6+
if TYPE_CHECKING:
7+
return NotImplemented
8+
@overload

poetry.lock

Lines changed: 22 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ include = ["py.typed"]
3636

3737
[tool.poetry.dependencies]
3838
python = "^3.11"
39+
flake8-pyproject = "^1.2.3"
3940

4041
[tool.poetry.group.dev.dependencies]
4142
pytest = "^7.4.1"
@@ -51,3 +52,14 @@ types-pyyaml = "^6.0.12.11"
5152
[build-system]
5253
requires = ["poetry-core"]
5354
build-backend = "poetry.core.masonry.api"
55+
56+
[tool.mypy]
57+
exclude = [
58+
'meta/templates/*'
59+
]
60+
61+
[tool.flake8]
62+
exclude = [
63+
'meta/templates',
64+
'pyhtml/__tags/generated.py',
65+
]

0 commit comments

Comments
 (0)