diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fa804cfb..b56ed13e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -58,3 +58,17 @@ repos: rev: 6.0.0 hooks: - id: flake8 +- repo: local + hooks: + - id: pylint + name: pylint + entry: pylint + files: ^dpbench/benchmarks + language: system + types: [python] + require_serial: true + args: + [ + "-rn", # Only display messages + "-sn", # Don't display the score + ] diff --git a/pyproject.toml b/pyproject.toml index cfc33785..787418a4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -72,3 +72,9 @@ VCS = "git" style = "pep440" versionfile_source = "dpbench/_version.py" parentdir_prefix = "" + +[tool.pylint] +disable = [ + "fixme", + "duplicate-code" +]