Comments (2)
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 currentflake8
rules autopep8
is desinged to find existingflake8
config and use it - so config should be no issue- optional: use an own file
.flake8
instead oftox.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.
got autopep8
integrated via #283
from cyclonedx-python.
Related Issues (20)
- [IDEA] feat: support PEP639
- When using Poetry lockfile, allow users to select dependency group(s) HOT 3
- BC: drop support for py<=3.7 HOT 1
- have own version as variable HOT 1
- bump dev-tools to py38 compat HOT 1
- BC: providers are subcommands HOT 2
- feat: SBOM from `conda-lock.yml` file HOT 7
- poetry lock is no longer working with latest 3.11.2 HOT 1
- Feature Request: Include Python version in SBOM HOT 1
- An exception is raised for invalid license IDs instead of continuing to process HOT 4
- feat: support `PDM` ecosystem HOT 7
- BC: make all internal HOT 2
- UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 HOT 3
- [IDEA] feat: env-based SBOM allow filtering
- Can't get the license information? How can I get the license information HOT 2
- support CycloneDX 1.5 HOT 2
- v4 - bump QA and dev tools HOT 1
- BC: drop support for conda HOT 2
- ci: use poetry 1.7.1 HOT 1
- chore: bump semantc-release HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cyclonedx-python.