Explicitly define public API with `__all__`

Open
#412 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start by reviewing docs/source/check_docs_api_coverage.py and surveying the cfdm codebase for public modules that lack an all definition. Use the linked Python API guidance and the sister cf-python issue for context. Done means the public API is explicitly defined throughout the relevant codebase and the coverage check can use it.

Written by the indexing model from the issue text.

Description

enhancement

(As with sister cf-python Issue, NCAS-CMS/cf-python#958, where it makes sense to tackle both at once.)

We don't define the __all__ variable across the cfdm codebase, however we should because doing so has a number of benefits - through providing a single machine-readable source of truth for the API, for example for our API coverage check script to use.

Dominant language
Python
Stars
32
Forks
14
Avg merge
3d 20h
Merged PRs (30d)
1

Getting set up

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 NCAS-CMS/cfdm

All issues in NCAS-CMS/cfdm

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.