You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
have code-style-fixer(PEP8) as a dev tool available #86
have autopep8 as a tool available in poetry-dev-env
have autopep8 configured -- see below
have the use of autopep8 mentioned i the CONTRIBUTING docs
proposed config:
acc/crit: autopep8 reformated code passes current flake8 rules
autopep8 is desinged to find existing flake8 config and use it - so config should be no issue
optional: use an own file .flake8 instead of tox.ini
outcome: autopep8 conflicts with existing dependencies
$ poetry add --dev autopep8
Using version ^1.6.0 for autopep8
SolverProblemError
Because no versions of autopep8 match >1.6.0,<2.0.0
and autopep8 (1.6.0) depends on pycodestyle (>=2.8.0), autopep8 (>=1.6.0,<2.0.0) requires pycodestyle (>=2.8.0).
And because flake8 (3.9.2) depends on pycodestyle (>=2.7.0,<2.8.0)
and no versions of flake8 match >3.9.2,<4.0.0, autopep8 (>=1.6.0,<2.0.0) is incompatible with flake8 (>=3.9.2,<4.0.0).
So, because cyclonedx-python-lib depends on both flake8 (^3.9.2) and autopep8 (^1.6.0), version solving failed.
this issue is originally caused by cyclonedx-python-lib dependencies:
$ poetry add --dev autopep8 flake8 1280ms 2021-12-09 11:32:55
Using version ^1.6.0 for autopep8
Using version ^4.0.1 for flake8
SolverProblemError
Because no versions of flake8 match >4.0.1,<5.0.0
and flake8 (4.0.1) depends on importlib-metadata (<4.3), flake8 (>=4.0.1,<5.0.0) requires importlib-metadata (<4.3).
So, because cyclonedx-python-lib depends on both importlib-metadata (^4.8.1) and flake8 (^4.0.1), version solving failed.
looks like our won dependencies block the setup.
see #44
🎱 next would be to setup flake8 and others in a version that is compatible to flake8 v4 - to reflect latest development
this should allow install of autopep8
Activity
jkowalleck commentedon Dec 9, 2021
proposal:
autopep8configured -- see belowautopep8mentioned i the CONTRIBUTING docsproposed config:
autopep8reformated code passes currentflake8rulesautopep8is desinged to find existingflake8config and use it - so config should be no issue.flake8instead oftox.inioutcome: autopep8 conflicts with existing dependencies
this issue is originally caused by cyclonedx-python-lib dependencies:
looks like our won dependencies block the setup.
see #44
🎱 next would be to setup flake8 and others in a version that is compatible to flake8 v4 - to reflect latest development
this should allow install of
autopep8