Repository navigation
add tox env for minimal required dependencies - #79
Conversation
d6a96c4 to
d465de6
Compare
627924b to
0e21efd
Compare
0e21efd to
1534a02
Compare
Signed-off-by: Jan Kowalleck <[email protected]>
1534a02 to
d318d3d
Compare
Signed-off-by: Jan Kowalleck <[email protected]>
|
@madpah some of the types are found to be errorneous in py36 - later versions are fine with them. |
| jobs: | ||
| coding-standards: | ||
| name: Linting & Coding Standards | ||
| name: Linting & CodingStandards |
There was a problem hiding this comment.
shortened some labels, so they fit on the screen
| key: ${{ runner.os }}-${{ env.PYTHON_VERISON_DEFAULT }}-poetry${{ env.POETRY_VERSION }}-${{ hashFiles('poetry.lock') }} | ||
| - name: Install dependencies | ||
| run: poetry install | ||
| run: poetry install --no-root |
There was a problem hiding this comment.
dont need the package itself installed. it is installed in the tox later, if needed
|
@jkowalleck - this is a cool solution to the problem 👍 Will take a look at the py36 type errors. |
Signed-off-by: Paul Horton <[email protected]>
Signed-off-by: Paul Horton <[email protected]>
|
@jkowalleck - got rid of a bunch of typing errors for Py 3.6, but the remainder seem to be being incorrectly reported in conditional imports (that only apply to Py >= 3.8). Thoughts? |
Signed-off-by: Jan Kowalleck <[email protected]>
great job. will look into this later and see if there is any solution that works for us. |
Signed-off-by: Jan Kowalleck <[email protected]>
Signed-off-by: Jan Kowalleck <[email protected]>
Signed-off-by: Jan Kowalleck <[email protected]>
|
@madpah i think i got the typing correct for But now the type-checker finds a lot of issues - which i expect to be correct-positives (not false-positives). This would mean that the implementation is wrong for python<3.8 and later? i suggest to have the |
| @staticmethod | ||
| def _get_metadata_for_package(package_name: str) -> email.message.Message: | ||
| if sys.version_info >= (3, 8, 0): | ||
| return metadata(package_name) |
There was a problem hiding this comment.
this was the same for py38 and below.
i suspect some internal implementation got lost on the way ...
related to #79 (comment)
|
this comments purpose is to move this PR to top of list. |
|
Sure @jkowalleck - will check this now. |
Signed-off-by: Paul Horton <[email protected]>
Signed-off-by: Paul Horton <[email protected]>
|
@jkowalleck - looks like I've managed to resolve a bunch of the typing issues in Would you be happy for us to ignore this or even disable this rule? |
|
re: #79 (comment) @madpah what if we would take everything that is not expected to raise an error , and move it out of the try/expect? i am not sure if this solves the issue, but here is a patch: could you see if this fixes the issue? PS: will add the ignore-hint ASAP. |
Signed-off-by: Jan Kowalleck <[email protected]>
d2c28cd to
0759026
Compare
Signed-off-by: Jan Kowalleck <[email protected]>
5a5b815 to
e39eb6f
Compare
Signed-off-by: Jan Kowalleck <[email protected]>
|
I think the tox setup is not great, but it does the job. |
madpah
left a comment
There was a problem hiding this comment.
All looks good enough to be @jkowalleck
setup to test lowest possible requirements, while still being able to test the locked/pinned dev-dependencies
caused by #44