Skip to content

Commit 46fdc27

Browse files
committed
ci: add custom configuration for linters and code coverage
1 parent f0c2f3a commit 46fdc27

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

pyproject.toml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[tool.black]
2+
line-length = 88
3+
4+
[tool.pytest.ini_options]
5+
xfail_strict = true
6+
7+
[tool.coverage.run]
8+
parallel = true
9+
branch = true
10+
source = ["src/mozilla_taskgraph/", "mozilla_taskgraph"]
11+
12+
[tool.ruff]
13+
select = [
14+
"E", "W", # pycodestyle
15+
"F", # pyflakes
16+
"I", # isort
17+
"PLC", "PLE", # pylint
18+
"UP", # pyupgrade
19+
]
20+
ignore = [
21+
"E402",
22+
"E501", # let black handle line-length
23+
"E741",
24+
]
25+
target-version = "py37"
26+
27+
[tool.ruff.isort]
28+
known-first-party = ["mozilla_taskgraph"]

0 commit comments

Comments
 (0)