Skip to content

Commit bb2228f

Browse files
authored
Change linter default configuration (#185)
1 parent df24c4c commit bb2228f

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

doc/changes/unreleased.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
# Unreleased
2+
3+
## 🐞 Fixed
4+
* Changed the default linter configuration in the Nox **lint** task to automatically generate a report. Previously, setting it in **pyproject.toml** was required.

exasol/toolbox/nox/_lint.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,15 @@
1010

1111

1212
def _pylint(session: Session, files: Iterable[str]) -> None:
13-
session.run("poetry", "run", "python", "-m", "pylint", *files)
13+
session.run(
14+
"poetry",
15+
"run",
16+
"python",
17+
"-m",
18+
"pylint",
19+
"--output-format",
20+
"colorized,json:.lint.json,text:.lint.txt",
21+
*files)
1422

1523

1624
def _type_check(session: Session, files: Iterable[str]) -> None:

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ force_grid_wrap = 2
9292

9393
[tool.pylint.master]
9494
fail-under = 7.5
95-
output-format = "colorized,json:.lint.json,text:.lint.txt"
9695

9796
[tool.pylint.format]
9897
max-line-length = 88

0 commit comments

Comments
 (0)