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

feat(generator): do not copy *.pyc and __pycache__ files #474

Conversation

RobertCraigie
Copy link
Owner

Change Summary

This PR updates our copy_tree function to ignore any files with the .pyc extension and any files in a __pycache__ directory.

Checklist

  • Unit tests for the changes exist
  • Tests pass without significant drop in coverage
  • Documentation reflects changes where applicable
  • Test snapshots have been updated if applicable

Agreement

By submitting this pull request, I confirm that you can use, modify, copy and redistribute this contribution, under the terms of your choice.

@codecov
Copy link

codecov bot commented Sep 1, 2022

Codecov Report

Merging #474 (6b07cc7) into main (7d8dc3a) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #474      +/-   ##
==========================================
+ Coverage   94.20%   94.22%   +0.02%     
==========================================
  Files         117      118       +1     
  Lines        5958     5979      +21     
  Branches      335      335              
==========================================
+ Hits         5613     5634      +21     
  Misses        303      303              
  Partials       42       42              
Impacted Files Coverage Δ
src/prisma/generator/utils.py 96.61% <100.00%> (ø)
tests/test_generation/test_utils.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@RobertCraigie RobertCraigie changed the title feat(generator): do not copy *.pyc and __pycache__ files on generate feat(generator): do not copy *.pyc and __pycache__ files Sep 2, 2022
@RobertCraigie RobertCraigie merged commit 997d9b0 into main Sep 2, 2022
@RobertCraigie RobertCraigie deleted the 473-ignore-certain-directories-files-when-copying-the-package branch September 2, 2022 07:16
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.

1 participant