Skip to content

Closes #5216: remove camelCase - #5218

Merged
ajpotts merged 4 commits into
Bears-R-Us:mainfrom
ajpotts:5216_remove_camelCase
Jan 13, 2026
Merged

ajpotts merged 4 commits into
Bears-R-Us:mainfrom
ajpotts:5216_remove_camelCase

Conversation

@ajpotts

@ajpotts ajpotts commented Dec 23, 2025 •

Copy link
Copy Markdown
Contributor

Standardize Public API Naming & Add Deprecation Shims

Summary

This PR standardizes Arkouda’s public Python API to PEP 8–compliant snake_case naming, while preserving backward compatibility through explicit deprecation shims. The goal is to modernize the API surface, unblock stricter linting (Ruff N802), and provide a clear, low-risk migration path for users.

No user-facing functionality is removed in this PR.


Key Changes

1. Snake_case canonical APIs

The following camelCase public APIs have been replaced with snake_case equivalents and updated throughout the codebase:

Dtype / scalar helpers

  • isSupportedInt → is_supported_int
  • isSupportedFloat → is_supported_float
  • isSupportedNumber → is_supported_number
  • isSupportedBool → is_supported_bool
  • isSupportedDType / isSupportedDtype → is_supported_dtype

Logger API

  • getArkoudaLogger → get_arkouda_logger
  • getArkoudaClientLogger → get_arkouda_client_logger
  • enableVerbose → enable_verbose
  • disableVerbose → disable_verbose
  • ArkoudaLogger.changeLogLevel → change_log_level
  • ArkoudaLogger.getHandler → get_handler

Client dtypes

  • BitVectorizer → bit_vectorizer

Random (legacy)

  • globalGeneratorExists → global_generator_exists
  • getGlobalGenerator → get_global_generator

2. Backward-compatible deprecation shims

All legacy camelCase names are retained as thin wrapper aliases that:

  • Emit a DeprecationWarning
  • Forward directly to the new snake_case implementation

This ensures existing user code continues to work unchanged while providing a clear upgrade signal.


3. Ruff configuration cleanup

  • Removed global suppression of N802
  • Explicitly allow legacy camelCase names via [lint.pep8-naming].ignore-names
  • This keeps naming exceptions explicit, intentional, and auditable

4. Internal cleanups (non-user-facing)

  • Renamed internal helpers such as _matmul2D → _matmul2d
  • Standardized internal logger construction
  • Updated tests to use canonical snake_case APIs

Compatibility & Migration

  • No breaking changes in this PR
  • Users may continue using camelCase APIs short-term
  • Deprecation warnings guide migration to snake_case
  • Legacy names can be safely removed in a future major/minor release

Rationale

This change:

  • Aligns Arkouda with Python ecosystem conventions (NumPy, pandas, SciPy)
  • Enables stricter linting without global rule suppression
  • Clarifies the long-term public API surface
  • Reduces maintenance burden by eliminating naming ambiguity

Closes #5216: remove camelCase

@ajpotts
ajpotts force-pushed the 5216_remove_camelCase branch from b4fa3ef to ec204ef Compare December 23, 2025 21:15
@ajpotts ajpotts changed the title Closes #5213: add TypeGuards to dtypes module Closes #5216: remove camelCase Dec 23, 2025
@ajpotts
ajpotts force-pushed the 5216_remove_camelCase branch 3 times, most recently from b8aa312 to 308230f Compare December 23, 2025 23:37
@ajpotts
ajpotts marked this pull request as ready for review December 24, 2025 11:45
@ajpotts
ajpotts force-pushed the 5216_remove_camelCase branch from 308230f to cae187e Compare December 29, 2025 18:07
@ajpotts
ajpotts force-pushed the 5216_remove_camelCase branch from cae187e to bed84c3 Compare January 5, 2026 20:50
Comment thread ruff.toml Resolved
Comment thread arkouda/pandas/dataframe.py Resolved
@ajpotts
ajpotts force-pushed the 5216_remove_camelCase branch from bed84c3 to c310474 Compare January 7, 2026 18:28

@1RyanK 1RyanK left a comment

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.

Looks good!

Comment thread arkouda/dtypes/__init__.py Resolved
Comment thread arkouda/logger.py Resolved
Comment thread arkouda/__init__.py Resolved
@codecov-commenter

codecov-commenter commented Jan 8, 2026 •

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@9a50194). Learn more about missing BASE report.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff            @@
##             main     #5218   +/-   ##
========================================
  Coverage        ?   100.00%           
========================================
  Files           ?         4           
  Lines           ?        63           
  Branches        ?         0           
========================================
  Hits            ?        63           
  Misses          ?         0           
  Partials        ?         0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ajpotts
ajpotts force-pushed the 5216_remove_camelCase branch 2 times, most recently from c78a8bb to 54b27fe Compare January 12, 2026 19:14
@ajpotts
ajpotts force-pushed the 5216_remove_camelCase branch from 54b27fe to e4f220c Compare January 12, 2026 21:19

@jaketrookman jaketrookman left a comment

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.

Looks good

@ajpotts
ajpotts added this pull request to the merge queue Jan 13, 2026
Merged via the queue into Bears-R-Us:main with commit 168089e Jan 13, 2026
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.

remove camelCase

4 participants