PolicyEngine / PolicyEngine/policyengine-uk

Lowercase function and variable names

Open
#259 0 comments 0 reactions 1 assignee View on GitHub

@juaristi22 is already working on this.

Since Jul 15, 2025.

code-health
Dominant language
Python
Stars
50
Forks
33
Avg merge
20h 58m
Merged PRs (30d)
14

Description

We have a number of variable names that are partly uppercase, referring to acronymized benefit programs like PIP. Yet PEP8 makes no concessions for acronyms, saying:

Function names should be lowercase, with words separated by underscores as necessary to improve readability.
Variable names follow the same convention as function names.

This would be a substantive change but I think we should consider the precedent we're setting across PolicyEngine software, including openfisca-us.

Contributor guide

Open the 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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.