Skip to content

Chore: ruff rule: N - a sub-issue task of #642 #949

@pygarap

Description

@pygarap

Steps:

  1. Search for the line: ruff.toml -> # "N", # https://docs.astral.sh/ruff/rules/#pep8-naming-n.
  2. Uncomment this line.
  3. Run just format or just format-concise or just format-grouped.
  4. Manually fix any remaining violations.
  5. Run just lint or just lint-concise or just lint-grouped.
  6. Repeat steps 4–5 until all violations are resolved.

Current [pep8-naming (N)] violations:

  • N802 (invalid-function-name): Function names must be lowercase (snake_case)
  • N803 (invalid-argument-name): Argument names must be lowercase (snake_case)
  • N806 (non-lowercase-variable-in-function): Variables inside functions must be lowercase (snake_case)
  • N818 (error-suffix-on-exception-name): Exception class names should end with "Error" (suffix meaning: the ending of a word)
  • N999 (invalid-module-name): Module (file) names must be snake_case

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions