Skip to content

Adding scopes "File", "Function", and "Class" for Python #710

Open
maldil wants to merge 3 commits intouber:masterfrom
maldil:master
Open

Adding scopes "File", "Function", and "Class" for Python #710
maldil wants to merge 3 commits intouber:masterfrom
maldil:master

Conversation

@maldil
Copy link

@maldil maldil commented Nov 12, 2024

The purpose of this PR is to add changes to support the File, Function, and Class scopes.

Summary of changes:

  1. src/cleanup_rules/python/scope_config.toml - Added a new file that defines scopes for Python.
  2. src/models/language.rs Updated to include the path for the scope file.
  3. test-resources/python/find_import_extend_method_chain - Created a new folder to hold resources for testing scope functionality.
  4. tests/tests.py - Modified to add new test cases and updated the paths to use absolute paths.

@CLAassistant
Copy link

CLAassistant commented Nov 12, 2024

CLA assistant check
All committers have signed the CLA.

@ketkarameya
Copy link
Contributor

LGTM.
@dvmarcilio can we land this?

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.

3 participants