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!: use packaging.Version and other fixes and Ape-ifications #161

Merged
merged 3 commits into from
Nov 9, 2023

Conversation

antazoey
Copy link
Member

@antazoey antazoey commented Nov 8, 2023

What I did

Major dust off of this package to try and get it moving again.

  • refactor: switch from semantic_version to packaging.Version to properly handle RC versions.
  • fix: an issue with Yul optimize kwargs not working as expected
  • fix: an issue where --help command expected the wrong result code for some solc versions
  • chore: all mypy issues and general type fixes
  • refactor: switch to markdown docs and google-style (adhere to rest of ApeWorX norms)

fixes: #145
fixes: #147

How I did it

How to verify it

Checklist

  • I have confirmed that my PR passes all linting checks
  • I have included test cases
  • I have updated the documentation (README.md)
  • I have added an entry to the changelog

@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

@antazoey antazoey force-pushed the chore/conformity branch 10 times, most recently from 93e04b3 to 95ab54d Compare November 9, 2023 15:23
@antazoey antazoey changed the title feat!: use packaging.Version and other updates feat!: use packaging.Version and other fixes Nov 9, 2023
@antazoey antazoey changed the title feat!: use packaging.Version and other fixes feat!: use packaging.Version and other fixes and Ape-ifications Nov 9, 2023
@antazoey antazoey force-pushed the chore/conformity branch 5 times, most recently from 09463f2 to 09af34b Compare November 9, 2023 16:31
@antazoey antazoey mentioned this pull request Nov 9, 2023
4 tasks
Comment on lines +11 to +12
permissions:
contents: write
Copy link
Contributor

Choose a reason for hiding this comment

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

Glad your adding this, opening a PR on the project-template now.

@antazoey antazoey marked this pull request as ready for review November 9, 2023 16:44
Copy link
Contributor

@NotPeopling2day NotPeopling2day left a comment

Choose a reason for hiding this comment

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

🚀

solcx/wrapper.py Outdated Show resolved Hide resolved
@@ -21,14 +21,18 @@ def solc_binary():


@pytest.fixture
def nosolc(tmp_path, monkeypatch):
def nosolc(tmp_path, mocker):
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice

Copy link
Member Author

Choose a reason for hiding this comment

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

ya mocker is built on top of monkeypatch but i find its syntax easier to read in some cases.

antazoey and others added 2 commits November 9, 2023 11:58
Co-authored-by: NotPeopling2day <32708219+NotPeopling2day@users.noreply.github.com>
@antazoey antazoey merged commit 50a4e9c into ApeWorX:main Nov 9, 2023
@antazoey antazoey deleted the chore/conformity branch November 9, 2023 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants