-
Notifications
You must be signed in to change notification settings - Fork 41
Use hacking fork as dependency and align modules with stackstorm core. #266
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| # Different versions of tox are required by python version | ||
| tox-gh-actions | ||
| tox==3.28.0 ; python_version == "3.6" | ||
| tox==4.11.3; python_version >= "3.8" | ||
| tox==4.11.3 | ||
| wheel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| sphinx>=2.0 | ||
| # 202404: Align all requirements with st2 test-requirements | ||
| sphinx>=5.0.0,<7.2.0 | ||
| sphinx-autobuild | ||
| sphinx_rtd_theme |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,12 @@ | ||
| black | ||
| coverage | ||
| flake8<3.9.0,>=3.8.0 | ||
| hacking | ||
| mock>=1.0 | ||
| pytest | ||
| pytest-cov | ||
| pep8>=1.6.0,<1.7 | ||
| pylint>=2.5.2,<2.6 | ||
| # 202404: Align all requirements with st2 test-requirements | ||
| coverage==7.2.7 | ||
| black==22.3.0 | ||
| flake8==7.0.0 | ||
| mock==4.0.3 | ||
| pytest==6.2.5 | ||
| pytest-cov==4.1.0 | ||
| pep8==1.7.1 | ||
| pylint==3.1.0 | ||
| twine | ||
| unittest2 | ||
| # 202404: Use forked version for flake8 v7.0.0 to align requirements with st2 test-requirements | ||
| hacking @ git+https://github.com/nzlosh/hacking@flake8v7 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,15 @@ | ||
| chardet>=3.0.2,<4.0.0 | ||
| # 202404: Align all requirements with st2 fixed-requirements | ||
| # 202405: Orquesta is a library, leave version ranges as wide as possible | ||
| # so pip can handle resolving the final version constraints. | ||
| chardet>=3.0.2 | ||
| eventlet | ||
| Jinja2>=2.11 # BSD License (3 clause) | ||
| jsonschema!=2.5.0,>=2.0.0,<=3.2 # MIT | ||
| # networkx v2.6 does not support Python3.6. Update networkx to match st2 | ||
| networkx>=2.5.1,<2.6; python_version < '3.7' | ||
| networkx>=2.6,<3; python_version >= '3.7' | ||
| jinja2>=2.11 # BSD License (3 clause) | ||
| jsonschema>=3,<4 # MIT | ||
| # networkx v3.2 and greater does not support Python3.8. | ||
| networkx>=2.6,<3.2 | ||
| python-dateutil | ||
| PyYAML>=3.1.0 # MIT | ||
| six>=1.9.0 | ||
| pyyaml>=5.3.1 # MIT | ||
| six>=1.14.0 | ||
| stevedore>=1.3.0 # Apache-2.0 | ||
| ujson>=1.35 # BSD License | ||
| yaql>=1.1.0 # Apache-2.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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.
What ishackingused for?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.
Oh. I see it in the old requirements.
Could you submit your branch as an upstream PR?
Uh oh!
There was an error while loading. Please reload this page.
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 can. In the mid-term I think we should drop
hackingcompletely. I'm not sure how likely upstream will be to accept the version bump as OpenStack components rely onhackingand flake8 v7 has breaking changes, of which I have no idea if it'll impact their code base or not. We could move the fork into the StackStorm organisation and pull from there until we have time to address the use ofhacking?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.
What value does
hackingprovide? I'm inclined to just disable it.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.
It provides a set of openstack coding style checks. https://docs.openstack.org/hacking/latest/user/hacking.html#styleguide. I assume that these guidelines are used in St2 as a result of its heritage.
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.
hackingis only used for the orquesta repo. Looking through the list of things it enforces, I don't like this one: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.
But whatever. It's not worth the hassle of moving it to another org. Approved.