-
Notifications
You must be signed in to change notification settings - Fork 888
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
refactor repo structure #3022
Comments
+1 on both |
for anyone doing this work, please don't do it until at least #3113 is done |
@mcdonc @tseaver anyone else... are any of you opposed to me running black on the code and adding |
+0 |
I'd want to leave the default line length at 88... but I can live with 79, so long as we add a pyproject.toml that includes that as a default setting so I don't have to remember to set it in my editor :-). |
I'm skeeved out by its replacement of ' with ". But whatever. |
Yeah that’s by far my biggest gripe with it as well. But I’m not sure it’s worth throwing out the whole thing as a result. I’m open to setting the cli flag that preserves quoting but the more flags we set the more ways people can screw it up. |
Given that it's a flag already (it's --skip-string-normalization right?) I might say set it, f it. :) |
When I look at the diff from |
Setting that flag means that no quoting gets modified, which means things like:
Is okay... That bothers me, I'd prefer it just normalized it for me. Thankfully we can add flags to |
How can I use Pyramid tests after that change? I have a project with extended version of from pyramid.tests.test_authorization import TestACLAuthorizationPolicy
class TestRestACLAuthorizationPolicy(TestACLAuthorizationPolicy):
def _getTargetClass(self):
from ..authorization import RestACLAuthorizationPolicy
return RestACLAuthorizationPolicy
# Some addition tests for extended functionality It would be cool if you upload into PyPi package with all Pyramid tests, e.g. |
@Cykooz the pyramid tests were never considered public API, and if you want to sub-class them you should copy and paste them into your project. |
Move tests out of the pyramid package. They will still be shipped with the sdist but not with the binary wheel.
Move the pyramid package into a src subfolder in the repo to conform to best practices in other repos like hupper and pyramid_retry. This is a simple fix to prevent pyramid source from being on the
PYTHONPATH
inadvertently which means we're testing the source instead of the actual sdist built by tox. This also avoids subtle issues in which multiple versions of python are run against the same code.The text was updated successfully, but these errors were encountered: