Comments (9)
Could we guys fix the issue? The issue is open for half of the year. Flake8 has already v6
btw
from blue.
I have been able to work around this problem by adding a dependency in setup.py for my project on flake8<=4.0.1, the same workaround can be done in a requirements.txt
from blue.
Okay, this does look like a trickier incompatibility to resolve. It looks like flake8
didn't just change the name of the config class, they changed the way they parse the configs. So I think for now, a quick fix is the pin in #79 but we should leave this issue open pending a proper fix.
from blue.
hey everyone, any plan for supporting flake8 v5 and v6?
from blue.
I think this patch will fix the issue
flake8-v5-compatibility.patch.txt
from blue.
I think this patch will fix the issue
Unfortunately, not completely. With this change as well:
modified setup.py
@@ -37,7 +37,7 @@ setup(
packages=['blue'],
tests_require=['tox'],
cmdclass={'test': Tox},
- install_requires=['black==22.1.0', 'flake8>=3.8,<5.0.0'],
+ install_requires=['black==22.1.0', 'flake8>=3.8'],
project_urls={
'Documentation': 'https://blue.readthedocs.io/en/latest',
'Source': 'https://github.com/grantjenks/blue.git',
(i.e. remove the flake8 ceiling), I get the following errors:
ctx = <click.core.Context object at 0x10a5d84f0>, param = <Option config>, value = None
def read_configs(
ctx: click.Context, param: click.Parameter, value: Optional[str]
) -> Optional[str]:
"""Read configs through the config param's callback hook."""
# Use black's `read_pyproject_toml` for the default
result = black.read_pyproject_toml(ctx, param, value)
# Use flake8's config file parsing to load setup.cfg, tox.ini, and .blue
# The parsing looks both in the project and user directories.
> finder = flake8_config.ConfigFileFinder('blue')
E AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder'
/Users/barry/projects/blue/blue/__init__.py:424: AttributeError
from blue.
@xmnlab I guess we have to come up with pull request for this to support it. Otherwise the issue will be open for years...
from blue.
If you can, I'll review it.
from blue.
If you can, I'll review it.
Hi, @warsaw, I opened PR #96 to fix this issue. Can you review it?
from blue.
Related Issues (20)
- [docs request] Examples of pyproject.toml and setup.cfg
- [Question] Active? HOT 2
- 0x and 0b case
- Coverage requirement fails
- Exclude not workin pyproject.toml
- error: cannot format main.py: Cannot parse: 66:21 HOT 1
- Unable to run Blue formatting HOT 4
- Don't expand brackets
- How to properly use Blue in GitHub Actions? HOT 1
- https://iblueit.dev/ is broken due to missing resources HOT 1
- Don't bind specific versions of `black`, monkey patch methods on `ast` level
- Continuation lines defined by extra indentation HOT 1
- Comply with PEP-8 for indentation of parameters in function definition HOT 3
- leave function-scope imports alone
- [docs request] Adding example pre-commit config to README
- Is this repository still active? The last update was 9 month ago HOT 4
- Doc: how to use blue with vscode? HOT 1
- Vim Plugin for blue HOT 5
- blue changes `%autoreload 2` in jupyter ntoebooks to random hex
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 blue.