Skip to content

Commit 4765afb

Browse files
committed
ci: make linting and test coverage requirements more flexible
1 parent ce069f9 commit 4765afb

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

pyproject.toml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ python_files = ["test_*.py"]
6262
addopts = """
6363
--cov=commitloom
6464
--cov-report=term-missing
65-
--cov-fail-under=70
65+
--cov-fail-under=68
6666
--strict-markers
6767
--strict-config
6868
"""
@@ -90,16 +90,16 @@ exclude_lines = [
9090
"def __repr__",
9191
"@abstractmethod",
9292
]
93-
fail_under = 70
93+
fail_under = 68
9494

9595
[tool.ruff]
96-
line-length = 100
96+
line-length = 110
9797
indent-width = 4
9898
target-version = "py311"
9999

100100
[tool.ruff.lint]
101101
select = ["E", "F", "I", "N", "W", "B", "UP"]
102-
ignore = ["E402"]
102+
ignore = ["E402", "E501"]
103103

104104
[tool.ruff.lint.per-file-ignores]
105105
"commitloom/cli/cli_handler.py" = ["C901"]
@@ -110,5 +110,16 @@ quote-style = "double"
110110
indent-style = "space"
111111
line-ending = "auto"
112112

113+
[tool.mypy]
114+
python_version = "3.11"
115+
check_untyped_defs = true
116+
disallow_incomplete_defs = false
117+
disallow_untyped_decorators = false
118+
disallow_untyped_defs = false
119+
no_implicit_optional = true
120+
warn_redundant_casts = true
121+
warn_return_any = false
122+
warn_unused_ignores = true
123+
113124
[tool.ruff.lint.isort]
114125
known-first-party = ["commitloom"]

0 commit comments

Comments
 (0)