Skip to content

Update pylint config to include valid short names#13631

Merged
justinchuby merged 1 commit intomainfrom
justinchu/pylint-refine-config
Nov 14, 2022
Merged

Update pylint config to include valid short names#13631
justinchuby merged 1 commit intomainfrom
justinchu/pylint-refine-config

Conversation

@justinchuby
Copy link
Copy Markdown
Contributor

Description

Update pylint config to include valid short names
Also disabled too-many-arguments and too-many-locals

Motivation and Context

Refine config to reduce lint noise

Also disabled `too-many-arguments` and `too-many-locals`
@cloudhan cloudhan requested review from edgchen1 and snnn November 14, 2022 02:48

[tool.pylint.BASIC]
good-names = [
"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is "o" not included?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question :D Are there examples when o is used as a good name? I couldn't think of any when I was compiling the list

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't use one letter variable names very often. it's just that every other letter is there, so I was wondering about the omission.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could have added a comment but the ci would then have to run for another half day. I will merge this and add some explanation when I work on linting later.

@justinchuby justinchuby merged commit 197191e into main Nov 14, 2022
@justinchuby justinchuby deleted the justinchu/pylint-refine-config branch November 14, 2022 18:00
simon-moo pushed a commit to simon-moo/onnxruntime that referenced this pull request Dec 21, 2022
### Description
Update pylint config to include valid short names
Also disabled `too-many-arguments` and `too-many-locals`


### Motivation and Context
Refine config to reduce lint noise
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants