From 14d366fa3c77a52dc77bb91440355aafd00b49b3 Mon Sep 17 00:00:00 2001 From: Adarsh Yoga Date: Wed, 7 Feb 2024 20:38:39 +0000 Subject: [PATCH] adding pylint hooks for dpbench --- .pre-commit-config.yaml | 14 ++++++++++++++ pyproject.toml | 6 ++++++ 2 files changed, 20 insertions(+) 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" +]