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

Add support for glob expansion in src_paths #1766

Merged
merged 2 commits into from Jun 30, 2021
Merged

Conversation

glumia
Copy link
Contributor

@glumia glumia commented Jun 27, 2021

As discussed in #1704, this adds support for glob expansion in paths provided with the src_paths config.

@@ -90,7 +90,18 @@ def test_is_supported_filetype_fifo(self, tmpdir):
def test_src_paths_are_combined_and_deduplicated(self):
src_paths = ["src", "tests"]
src_full_paths = (Path(os.getcwd()) / f for f in src_paths)
assert Config(src_paths=src_paths * 2).src_paths == tuple(src_full_paths)
assert sorted(Config(src_paths=src_paths * 2).src_paths) == sorted(src_full_paths)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assumed the order of src_paths does not matter... does it? 👀

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should not!

Copy link
Member

@timothycrosley timothycrosley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 this looks great, thank you!

@codecov
Copy link

codecov bot commented Jun 30, 2021

Codecov Report

Merging #1766 (dc43f99) into main (23d708e) will decrease coverage by 0.10%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##              main    #1766      +/-   ##
===========================================
- Coverage   100.00%   99.89%   -0.11%     
===========================================
  Files           37       37              
  Lines         2930     2930              
  Branches       694      694              
===========================================
- Hits          2930     2927       -3     
- Misses           0        2       +2     
- Partials         0        1       +1     

@timothycrosley timothycrosley merged commit 80db76b into PyCQA:main Jun 30, 2021
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