pycodestyle
pycodestyle copied to clipboard
🎛 A Svelte library for building dynamic, infinitely customizable node-based user interfaces and flowcharts
I use method chaining in `pandas` very often, for example ```python import pandas as pd df = (pd.read_csv('very/long/path/to/file/abcdefghijklmnopqrstuvwxyz.csv', index_col='bar', encoding='utf-8') .drop(labels='baz', axis=1)) ``` in which I indent the lines according...
Hello, :wave: I have a following code in `foo.py`: ``` 1 class FooBar: 2 3 def foo(self): 4 pass 5 6 7 # Comment 8 9 def bar(self): 10 pass...
It could be more helpful for a developer new to a codebase, that perhaps doesn't know the indentation still in use, to be told exactly where the indentation should go....
The following code triggers E231: ```python dct = {} dct[1, 2] = "value" # ok dct[1,] = "value" # E231 dct[1, ] = "value" # ok, but doesn't seem right?...
Using version 2.6.0 in a clean Docker container (python 3.8.2) Code to reproduce: ```python import asyncio async def a(p): print(p) async def b(): await [a][0]("hi") if __name__ == "__main__": asyncio.run(b())...
Should `pycodestyle` disallow whitespace between a unary negation and its symbol? ``` python foo = - 2 ```
The docu on source and on readthedocs is unclear about if and what `Checker.check_all()` returns. Of course I can read the source and find the answer. But it would easier...
```python def f(x=re.I): pass ``` 2.5.0: ```console $ python -m pycodestyle t.py $ ``` 2.6.0: ```console $ python -m pycodestyle t.py t.py:1:12: E741 ambiguous variable name 'I' ``` originally reported...
Could you add this rule to pep8? I just updated the official PEP 8 to include this (I'm surprised it wasn't already there): - Be consistent in return statements. Either...
I try to write a wrapper to call the pycodestyle with the rule in the wrapper file. My rule/wrapper looks like. ```python import pycodestyle def _main(**kwargs) @pycodestyle.register_check def image_lines(logical_line): r"""Find...