Comments (4)
All possible options for flake8: 🙈
https://flake8.pycqa.org/en/latest/user/options.html
from tox-ini-fmt.
We don't have to support all out of box 🤔 maybe a few common ones just first and iterate on it.
from tox-ini-fmt.
I gave this a shot and it kinda works, but once again there is this "comment" topic.
While #42 is about deleted comments, when parsing one of my production tox.ini
files with a flake8
section I encountered the problem of inline comments. Allowed or not ( tox-dev/tox#50 ), they work for third party tools.
[flake8]
ignore =
W504, # line break after binary operator
quiet = 1
Whereas the comment in theConfigParser._read
function says inline comments get stripped, this one does not:
https://github.com/python/cpython/blob/96a60ae90c291d94c058c80351fa38b6d73eda92/Lib/configparser.py#L567
(Update -> we do not set an inline-comment-prefix and so it defaults to None)
(Pdb++) parser[section_name]
<Section: flake8>
(Pdb++) parser[section_name].items()
ItemsView(<Section: flake8>)
(Pdb++) list(parser[section_name].items())
[('ignore', '\nW504, # line break after binary operator')]
So, before going down the rabbithole and debugging ConfigParser itself...
What's your take on the whole comment story?
from tox-ini-fmt.
These nowadays should live within pyproject.toml so this will be a won't do.
from tox-ini-fmt.
Related Issues (19)
- always reformats tox.ini according to platform HOT 1
- Support `legacy_tox_ini` in pyproject.toml
- Name of the `envlist` / `env_list` section HOT 2
- ValueError on formatting a valid tox.ini HOT 2
- envlist order is not respected
- ability to pin some environments at the start of envlist
- Conditional dependencies are mangled HOT 2
- Ordering of envvars HOT 7
- One-line sections become multiline HOT 2
- Trailing zeros are stripped from versions HOT 1
- Number of spaces for indentation HOT 2
- logic for application of line breaks? HOT 2
- isort support HOT 3
- pytest support HOT 3
- last trailing comma in an envlist gets turned into three trailing whitespaces HOT 4
- comments get deleted HOT 12
- Replaces '-r docs/requirements.txt' with '-r'
- Error when formatting pytest --log-format argument 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 tox-ini-fmt.