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

fix #53 (now directories starting with '_' are not ignored) #761

Closed
wants to merge 1 commit into from
Closed

Conversation

NChechulin
Copy link

Fixed a small issue, when babel ignored directories starting with _.
I thought that it's still a good idea to ignore dirs whose entire name is _.

@codecov
Copy link

codecov bot commented Nov 29, 2020

Codecov Report

Merging #761 (b8e83cd) into master (9f6ea69) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #761   +/-   ##
=======================================
  Coverage   91.12%   91.12%           
=======================================
  Files          24       24           
  Lines        4180     4180           
=======================================
  Hits         3809     3809           
  Misses        371      371           
Impacted Files Coverage Δ
babel/messages/extract.py 94.94% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9f6ea69...b8e83cd. Read the comment docs.

@@ -139,7 +139,7 @@ def extract_from_dir(dirname=None, method_map=DEFAULT_MAPPING,
for root, dirnames, filenames in os.walk(absname):
dirnames[:] = [
subdir for subdir in dirnames
if not (subdir.startswith('.') or subdir.startswith('_'))
if not (subdir.startswith('.') or subdir == '_')

Choose a reason for hiding this comment

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

Your PR does not make sense.

>>> a = "_"
>>> a.startswith("_")
True
>>>

Copy link
Author

@NChechulin NChechulin Jun 13, 2021

Choose a reason for hiding this comment

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

Please, consider reading the issue thread attached (this one).
In my PR description, I didn't clarify what exactly I tried to fix - that's my fault.

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.

2 participants