Fix pep8-naming (N) convention warnings across codebase

Open
#1,660 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Quiet
Tech stack
python
Domain
tooling

Research direction

Start by reading the Ruff configuration to find files excluded from the pep8-naming (N) checks. Then review the listed N### warnings in those files and address the naming violations. The work is done when the violations are fixed and the files are removed from the exclusion list.

Written by the indexing model from the issue text.

Description

Maintenance

This is a parent issue for fixing pep8-naming (N) convention warnings that are currently excluded from ruff linting checks.

PR #1659 enables the pep8-naming (N) ruleset in ruff, but several files have been excluded from these checks due to naming convention violations. Each excluded file needs to be updated to fix the N### warnings and then removed from the exclusion list.

Related issue: #1329

The N### error codes are:

  • N801: Invalid class name
  • N802: Invalid function name
  • N803: Invalid argument name
  • N805: Invalid constant name (e.g. should be a module constant)
  • N806: Invalid variable name
  • N811: Constant name imported as non constant
  • N812: Lowercase attribute name
  • N814: Camel case argument name
  • N818: Exception name should inherit from Exception
Dominant language
Python
Stars
17
Forks
8
Avg merge
7d 12h
Merged PRs (30d)
12

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from fitbenchmarking/fitbenchmarking

All issues in fitbenchmarking/fitbenchmarking

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.