internetarchive / internetarchive/openlibrary

Enable Ruff rule PLC0415: import-outside-top-level

Open
#11,073 3 comments 0 reactions 0 assignees View on GitHub
Lead: @cdrini Needs: Breakdown Priority: 4 Type: Feature Request
Dominant language
Python
Stars
6.7k
Forks
2k
Avg merge
2d 19h
Merged PRs (30d)
138

Description

### Feature Request

### Problem / Opportunity

Per [this comment](https://github.com/internetarchive/openlibrary/pull/11071#discussion_r2229601568) we want to enable this rule.

First step: Try to turn on PLC0415 and deal with ~200 cases where it complains.

### Proposal

### Breakdown

### Related files

Refer to [this map of common Endpoints](https://github.com/internetarchive/openlibrary/wiki/Endpoints):
*

### Requirements Checklist
Checklist of requirements that need to be satisfied in order for this issue to be closed:
* [ ]

### Stakeholders

*


### Instructions for Contributors

* **Before** [creating a new branch](https://github.com/internetarchive/openlibrary/wiki/Git-Cheat-Sheet#making-changes-and-creating-a-pull-request) or pushing up changes to a PR, please first [run these commands](https://github.com/internetarchive/openlibrary/wiki/Git-Cheat-Sheet#working-on-your-branch) to ensure your repository is up to date, as the pre-commit bot may add commits to your PRs upstream.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.