pysen
pysen copied to clipboard
Python linting made easy. Also a casual yet honorific way to address individuals who have entered an organization prior to you.
Since PFN uses py39 widely, `pysen[lint]` should work with py39. Current lint extras tries to install older black and it does not work with py39. (optional) Can we drop py36...
https://himkt.github.io/pysen-docs/overview.html
Pysen only supports older versions of isort. https://github.com/pfnet/pysen/blob/f9694670924687b864384c87858ec70dc3fb6402/setup.py#L49
mypy 0.790 requires typed-ast 1.4.3, which does not compile: ```console $ git describe --always 4fc4233b8fba $ python3.11 -m venv venv $ . ./venv/bin/activate $ pip install '.[lint]' … Collecting mypy=0.770...
Resolves #36
Although isort recognizes first party under settings file, isort is called with config file under `/tmp/` in pysen. So, the results of `pysen run format` and `pysen generate && isort...
```python # 000000001111111111222222222233333333334444444444555555555566666666667777777777888888888 # 23465789012345678901234567890123456789012345678901234567890123456789012345678901234567 variable = "black tries to format lines exceeding 88 lines, but doesn't break long strings like this into smaller lines and gives up" ``` Since...