From f24ea8a6463b7322903a8a22fc0dd2fa38044b9e Mon Sep 17 00:00:00 2001 From: nimratcoderabbit Date: Tue, 15 Jul 2025 15:17:19 -0400 Subject: [PATCH 1/4] Pylint files --- .pylint.toml | 17 +++++++++++++++++ test.py | 3 +++ 2 files changed, 20 insertions(+) create mode 100644 .pylint.toml create mode 100644 test.py diff --git a/.pylint.toml b/.pylint.toml new file mode 100644 index 0000000..44e3707 --- /dev/null +++ b/.pylint.toml @@ -0,0 +1,17 @@ +[MASTER] +ignore=venv +jobs=1 + +[MESSAGES CONTROL] +disable= + missing-docstring, + invalid-name, + too-few-public-methods + +[FORMAT] +max-line-length=100 + +[REPORTS] +output-format=colorized +reports=no + diff --git a/test.py b/test.py new file mode 100644 index 0000000..9959a33 --- /dev/null +++ b/test.py @@ -0,0 +1,3 @@ +print("Hello World') +print(1+"a") + From dae19cc5fdfb15293cf8c5aff94067801b5eaa46 Mon Sep 17 00:00:00 2001 From: nimratcoderabbit Date: Tue, 15 Jul 2025 15:33:55 -0400 Subject: [PATCH 2/4] Pylint --- .coderabbit.yaml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .coderabbit.yaml diff --git a/.coderabbit.yaml b/.coderabbit.yaml new file mode 100644 index 0000000..9256338 --- /dev/null +++ b/.coderabbit.yaml @@ -0,0 +1,5 @@ +reviews: + tools: + # oxlint does not run if biome is enabled + ruff: + enabled: false From f2d3df267f52519472a60016f476ea73eac40c51 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 16 Jul 2025 12:47:31 -0400 Subject: [PATCH 3/4] fix config name --- .pylint.toml => .pylintrc.toml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .pylint.toml => .pylintrc.toml (100%) diff --git a/.pylint.toml b/.pylintrc.toml similarity index 100% rename from .pylint.toml rename to .pylintrc.toml From dccf7884c42c802a24ba91b03081a53e303cd0ea Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 16 Jul 2025 13:31:58 -0400 Subject: [PATCH 4/4] fix pylint config --- .pylintrc.toml | 62 +++++++++++++++++++++++++++++++++++++++----------- test.py | 2 ++ 2 files changed, 51 insertions(+), 13 deletions(-) diff --git a/.pylintrc.toml b/.pylintrc.toml index 44e3707..cf1a486 100644 --- a/.pylintrc.toml +++ b/.pylintrc.toml @@ -1,17 +1,53 @@ -[MASTER] -ignore=venv -jobs=1 +[tool.pylint.main] +# Fail on any warning or error +fail-under = 10.0 +output-format = "colorized" +reports = true -[MESSAGES CONTROL] -disable= - missing-docstring, - invalid-name, - too-few-public-methods +[tool.pylint.messages_control] +# Enable all messages +disable = [] -[FORMAT] -max-line-length=100 +[tool.pylint.basic] +# Enable all basic coding checks +good-names = [] +bad-names = ["foo", "bar", "baz", "tmp", "test"] -[REPORTS] -output-format=colorized -reports=no +[tool.pylint.format] +max-line-length = 88 +indent-string = " " +[tool.pylint.design] +max-args = 5 +max-locals = 15 +max-returns = 6 +max-branches = 12 +max-statements = 50 + +[tool.pylint.similarities] +# Enable all similarity checks +min-similarity-lines = 4 + +[tool.pylint.typecheck] +ignore-mixin-members = false + +[tool.pylint.imports] +# Warn about any import issue +known-standard-library = [] + +[tool.pylint.logging] +logging-modules = ["logging"] + +[tool.pylint.variables] +# Warn on all variable issues +dummy-variables-rgx = "^_.*|dummy" + +[tool.pylint.spelling] +spelling-dict = "" +spelling-ignore-words = [] +spelling-private-dict-file = "" + +[tool.pylint.reports] +output-format = "colorized" +reports = true +score = true \ No newline at end of file diff --git a/test.py b/test.py index 9959a33..1d1c63c 100644 --- a/test.py +++ b/test.py @@ -1,3 +1,5 @@ print("Hello World') print(1+"a") +test=1 +foo=2 \ No newline at end of file