Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem: TOP_DIR_x are global #112

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gotcha
Copy link
Contributor

@gotcha gotcha commented Mar 24, 2021

In the context of @gvanrossum comment on #111, I looked a bit closer to the globals TOP_DIR_x.

IMHO, it is not needed to keep them global.

This PR would replace #111. (Nevertheless, I fixed #111 in order to let you decide which one you prefer.)

The code in this PR enables customizing the default_filter_filename top_dirwith the following code:

top_filter = collect_types.configure_default_filter_top_dir(top_dir)
collect_types.init_types_collection(filter_filename=top_filter)

@gotcha gotcha changed the title Problem: TOP_DIR_x are global WIP Problem: TOP_DIR_x are global Mar 24, 2021
Solution: allow it to fail, following gvanrossum recommendation
to stop supporting 3.5
Solution: make an API that avoids globals
@gotcha gotcha changed the title WIP Problem: TOP_DIR_x are global Problem: TOP_DIR_x are global Mar 25, 2021
@CLAassistant
Copy link

CLAassistant commented Apr 16, 2022

CLA assistant check
All committers have signed the CLA.

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.

None yet

2 participants