Comments (2)
There is already a dprint output-resolved-config
sub command. Perhaps that could accept a file path as well and the returned config would be limited to only the plugins being formatted. I'm not sure if it should just be another arg or most likely a flag (not sure about a name).
By the way, what I always do to test that is just open a file, add some spaces, then re-run the formatter.
from dprint.
Yeah in hindsight that's what I should have done. And is what I did to verify my fix actually fixed things.
I just ran dprint with verbose mode and saw it had python files and the format time was sane and I stopped there.
And because the codebase was already formatted there ofc weren't CI failures.
Now that I've correctly configured it I can see dprint outputs logs differently if two plugins are running on a file!
Yeah I tried using output-resolved-config
but because the plugin is actually configured it shows up there. The issue was that it wasn't associated with python files. Tricky nuance to the config!
from dprint.
Related Issues (20)
- `dprint init` should remember last selected options?
- Do not convert file text to string in CLI
- Ignore known template/backup file suffixes when determining file type HOT 3
- Config update traverses dir hierarchy downwards
- "not include"s are ignored when paths are passed via CLI HOT 1
- dprint: /lib64/libm.so.6: version `GLIBC_2.29' not found HOT 1
- Future plugin system improvements HOT 1
- Regression - 0.43.2 finds fewer files than 0.43.1 HOT 5
- Feature: Formatting HTML files HOT 1
- LSP - Figure out completions for dprint.json files
- Document using lsp in various editors
- Can't remove BOM HOT 1
- CI GH Actions compile error HOT 5
- Possible to have `dprint` `biome` point to `biome.json` for configuration? HOT 3
- Can't Format Files In Hardlink Folder
- Support assigning a file to a formatter based on its shebang HOT 5
- Include / exclude behavior differs with `--stdin` HOT 1
- JSON config schema file HOT 1
- Offline process plugin installation instructions
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 dprint.