Skip to content

[next-major] Remove traces of CamelCase #200

Closed

Description

@rgaudin

As libzim uses CamelCase, we sometimes followed the convention to stick to the pure-wrapper way.
Given case is not that important and we don't follow it everywhere (it's become minor overtime), we should just remove the remaining traces and use snake case everywhere.

It's a tiny change but obviously breaks the API so should not be merged until approaching next major release

# writer
    def config_nbworkers(self, nbWorkers: int) -> Self: ...  # noqa: N803
    def set_mainpath(self, mainPath: str) -> Self: ...  # noqa: N803
    def add_redirection(
        self,
        path: str,
        title: str,
        targetPath: str,  # noqa: N803
        hints: dict[Hint, int],
    ) -> None: ...
    def add_alias(
        self,
        path: str,
        title: str,
        targetPath: str,  # noqa: N803
        hints: dict[Hint, int],
    ) -> None: ...
# suggestion
    def getEstimatedMatches(self) -> int: ...  # noqa: N802
# search
    def getEstimatedMatches(self) -> int: ...  # noqa: N802
    def getResults(self, start: int, count: int) -> SearchResultSet: ...  # noqa: N802

Activity

  1. added
    enhancement
    good first issue
    on Sep 7, 2024
  2. SrisharanVS commented on Sep 16, 2024

    @SrisharanVS

    There are also some traces of Pascal case, is it better to change them to snake case too?

  3. rgaudin commented on Sep 16, 2024

    @rgaudin
    MemberAuthor

    There are also some traces of Pascal case, is it better to change them to snake case too?

    Indeed

  4. siddheshwar-9897 commented on Feb 9, 2025

    @siddheshwar-9897

    Also sir i think removing camelcases from setup file is good

  5. rgaudin commented on Feb 10, 2025

    @rgaudin
    MemberAuthor

    @siddheshwar-9897 as you can see, there is already a PR (#212) linked to this ticket which only awaits a new major release.
    If you think there are additional incorrect CamelCase usage, please expose them here.

  6. assigned and unassigned on Feb 10, 2025
  7. removed
    enhancement
    on Oct 1, 2026
  8. added this to the 4.0.0 milestone on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issue

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions