-
Notifications
You must be signed in to change notification settings - Fork 4
refactor: move package source to src/ layout #32
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,3 @@ | ||
| include LICENSE.txt | ||
| include README.md | ||
| include requirements/base.in | ||
| include requirements/constraints.txt | ||
| recursive-include sample_plugin *.html *.png *.gif *.js *.css *.jpg *.jpeg *.svg | ||
| recursive-include src/sample_plugin *.html *.png *.gif *.js *.css *.jpg *.jpeg *.svg |
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -95,6 +95,7 @@ dev = [ | |||||||||||||
| readme = {file = ["README.md"], content-type = "text/markdown" } | ||||||||||||||
|
|
||||||||||||||
| [tool.setuptools.packages.find] | ||||||||||||||
| where = ["src"] | ||||||||||||||
| include = ["sample_plugin*"] | ||||||||||||||
| exclude = ["sample_plugin.tests*"] | ||||||||||||||
|
|
||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: I think if you put the following in, you can delete
Suggested change
Or, since we're using to pull in all files in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, whether using |
||||||||||||||
|
|
||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -76,11 +76,11 @@ allowlist_externals = | |
| touch | ||
| commands = | ||
| touch tests/__init__.py | ||
| pylint sample_plugin tests test_utils manage.py | ||
| pylint src/sample_plugin tests test_utils manage.py | ||
| rm tests/__init__.py | ||
| pycodestyle sample_plugin tests manage.py | ||
| pydocstyle sample_plugin tests manage.py | ||
| isort --check-only --diff tests test_utils sample_plugin manage.py test_settings.py | ||
| pycodestyle src/sample_plugin tests manage.py | ||
| pydocstyle src/sample_plugin tests manage.py | ||
| isort --check-only --diff tests test_utils src/sample_plugin manage.py test_settings.py | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: replace with ruff ?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will follow up #33 |
||
| make selfcheck | ||
|
|
||
| [testenv:pii_check] | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this
excludeis not necessary when you havewhere = ["src"]and the tests are outside of thesrcfolder.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll remove
include = ["sample_plugin*"]too, since the existence of asrcfolder makes me expect that anything withinsrcshould be included.