Giter VIP home page Giter VIP logo

Comments (2)

jkowalleck avatar jkowalleck commented on June 9, 2024

proposal:

  • 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:

autopop8 conflicts with existing dependencies:

$ poetry add --dev autopep8                                                                                                         12.4s  2021-12-09 11:08:28
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-bom 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                                                                                                 1637ms  2021-12-09 11:22:48
Using version ^1.6.0 for autopep8
Using version ^4.0.1 for flake8

Because no versions of cyclonedx-python-lib match >0.11,<0.11.1 || >0.11.1,<0.12
   and cyclonedx-python-lib (0.11.0) depends on importlib-metadata (>=4.8.1,<5.0.0), cyclonedx-python-lib (>=0.11,<0.11.1 || >0.11.1,<0.12) requires importlib-metadata (>=4.8.1,<5.0.0).
  And because cyclonedx-python-lib (0.11.1) depends on importlib-metadata (>=4.8.1,<5.0.0), cyclonedx-python-lib (>=0.11,<0.12) requires importlib-metadata (>=4.8.1,<5.0.0).
  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).
  Thus, flake8 (>=4.0.1,<5.0.0) is incompatible with cyclonedx-python-lib (>=0.11,<0.12).
  So, because cyclonedx-bom depends on both cyclonedx-python-lib (^0.11) and flake8 (^4.0.1), version solving failed.

looks like some of cyclonedx-python-lib block the install
see CycloneDX/cyclonedx-python-lib#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

from cyclonedx-python.

jkowalleck avatar jkowalleck commented on June 9, 2024

got autopep8 integrated via #283

from cyclonedx-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.