home.social

#formatter — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #formatter, aggregated by home.social.

fetched live
  1. I'm happy to announce Badness: a formatter, linter, and language server for LaTeX! It is meant to be a all-in-one replacement for whatever texlab + latexindent/tex-fmt + chkex + bibtex-tidy setup you have going. The goal is to be a Ruff for LaTeX. The architecture is heavily inspired by rust-analyzer.

    Features include reflow and sentence wrapping, a curated set of chktex lint rules, and support for tex, sty, ins, and bib files.

    github.com/jolars/badness

    #texlatex #formatter #lsp #linter

  2. I'm happy to announce Badness: a formatter, linter, and language server for LaTeX! It is meant to be a all-in-one replacement for whatever texlab + latexindent/tex-fmt + chkex + bibtex-tidy setup you have going. The goal is to be a Ruff for LaTeX. The architecture is heavily inspired by rust-analyzer.

    Features include reflow and sentence wrapping, a curated set of chktex lint rules, and support for tex, sty, ins, and bib files.

    github.com/jolars/badness

    #texlatex #formatter #lsp #linter

  3. 𝗦𝘁𝗮𝗻𝗱𝗮𝗿𝗱𝗝𝗦:

    #JS #Linter #Formatter #StandardJS

    thewhale.cc/posts/standardjs

    SyandardJS is a JavaScript style guide, linter, and formatter made by Feross Aboukhadijeh.

  4. 🥳 Ah, GitHub's latest innovation: a #JSON #formatter that moonlights as an #adware delivery service. Who knew parsing data could come with such delightful surprises? 🚀 Now you can read JSON and explore the vibrant world of pop-ups simultaneously! 🙄
    github.com/callumlocke/json-fo #GitHub #Innovation #PopUps #HackerNews #ngated

  5. Panache, a language server, formatter, and linter for #Pandoc, #Quarto and #R #Markdown files is now also available for #VScode and related editors like #positron See marketplace.visualstudio.com/i or open-vsx.org/extension/jolars/.

    Since I last posted about #Panache, it has also grown considerably, now featuring full-fledged bibliography management for Quarto projects, table formatting, code chunk formatting, and various LSP features.

    Learn more at github.com/jolars/panache

    #lsp #formatter #linter

  6. Когда сидишь в PHP, а мысли — о Python: как я случайно написал свой pprint

    Иногда маленькие вещи случаются не потому, что ты их планировал, а потому что... ну а кто ещё это сделает? Я пару месяцев подряд писал небольшие ML-прототипы на PHP (да, знаю, иногда судьба заносит в странные места), и каждый раз сталкивался с одним и тем же раздражением: массивы печатаются так, будто пытаются скрыть правду. Я смотрю на этот разъехавшийся print_r() , и думаю: а что, если я просто хочу увидеть аккуратную табличку? А если я хочу форматирование как у Python? А если я хочу имитировать пайторчевский tensor([...]) ? Спойлер: я таки написал маленький хелпер. И чем больше я его использовал, тем больше понимал - возможно, он не только про удобство, но и про какое-то внутреннее право на ясность. Этот хелпер - не "фреймворк", не "революция", не "супер-мегапринтер", просто очень маленькая утилитка, которая делает одну вещь и делает её хорошо.

    habr.com/ru/articles/973396/

    #php #prettyprint #pytorch #formatter #form_data #matrix #tensor

  7. I got nerd sniped, so here is my new #java side-project:

    jdtfmt - a Java #formatter for the command line.
    * Can be paired with #spotless (both use jdt).
    * fast (native via GraalVM)

    github.com/bmarwell/jdtfmt

    Thanks to @jqno for the inspiration, @mthmulders for #graalvm hints and @bdemers for encouraging me to actually do the project! 😀

  8. Ruff: мой опыт выселения legacy-линтеров и повышения производительности кода

    Какими инструментами для линтинга и форматирования Python-кода вы пользуетесь? Black, Isort, Flake? Их существует множество, каждый следует своей цели, некоторые могут пересекаться по функциональности. Одни могут нравиться за автономность, другие — за возможности конфигурирования. И наверняка вы слышали о Ruff, который обещается заменить собой все. Привет, Хабр! Я Гена, Python-разработчик в Selectel. В этой статье я опишу свой опыт перевода проекта на Ruff: что понравилось, что — не очень, к чему готовиться и, если все же решитесь, то как это сделать. Добро пожаловать под кат.

    habr.com/ru/companies/selectel

    #ruff #python #linting #formatter #selectel

  9. [Перевод] Dart 3.8 — что нового в Dart?

    Этот релиз приносит обновления форматера, null-aware элементы для коллекций, новые возможности кросс-платформенной разработки, лучший способ находить трендовые пакеты на pub.dev , доступность горячей перезагрузки (hot reload) для веба и многое другое! Мы также надеемся, что найдутся разработчики, заинтересованные в участии в нашей программе раннего доступа к FFigen и JNIgen .

    habr.com/ru/articles/912544/

    #dart #flutter #ffi #crosscompilation #Nullaware #formatter

  10. @pamelafox Black 25.1 made mostly similar changes to @pillow, plus adding a few trailing commas and trimming some whitespace from a docstring:

    github.com/python-pillow/Pillo

    Smaller projects (that I've checked so far) had no change.

    #Python #Black #formatter

  11. Black 25.1.0 has been released with the new "2025 stable style":

    github.com/psf/black/releases/

    I've noticed no change in some projects. For another, it lowercased Unicode escape chars, added some trailing commas and cleaned up some docstrings.

    #Python #Black #formatter #release

  12. [Перевод] Почему нет достойных форматтеров кода для Java?

    Форматирование кода в Java всегда было темой обсуждения среди разработчиков. Многочисленные инструменты предлагают свои решения, но ни один из них не кажется идеальным. Так, возникает вопрос: есть ли форматтер, который действительно отвечает всем нашим требованиям? В новом переводе от команды Spring АйО рассмотрены популярные инструменты, их плюсы и минусы, а также рассуждения на тему: может ли Java-экосистема предложить достойный форматтер?

    habr.com/ru/companies/spring_a

    #java #formatter

  13. Форматирование строк в Python

    В мире программирования, особенно при разработке на Python, часто возникает необходимость не просто выводить статические строки, но и динамически встраивать в них данные, чтобы отобразить информацию пользователю в удобном и понятном виде. Это требует использования специальных методов, которые позволяют форматировать строки таким образом, чтобы они могли включать переменные, результаты вычислений и другие динамические элементы. Эти методы как раз и называются - форматированием строк .

    habr.com/ru/articles/830282/

    #форматирование_строк #ооп_python #ооп_программирование #история_it #строки_кода #строки_документации #fстроки #format #format_strings #formatter

  14. I discovered a very nice tool to work with open source licenses! 📜

    🦅 **hawkeye**: Simple license header checker and formatter.

    🦀 Written in Rust!
    🛠️ Supports configuration via licenserc.toml
    🚀 Also runs in GitHub Actions CI.

    ⭐ GitHub: github.com/korandoru/hawkeye

  15. RT @charliermarsh

    Ruff v0.2.0 is out now 😎

    From v0.1.0 to v0.2.0, we saw...
    - 891 PRs
    - 118 contributors (including 80 new contributors)
    - Over 100 new rules

    astral.sh/blog/ruff-v0.2.0

    CC @charliermarsh

  16. biome | A toolchain for web projects, aimed to provide functionalities to maintain them. #Biome offers #formatter and #linter, usable via CLI and LSP.

    github.com/biomejs/biome

    Fun fact: this is the winner of the "write a pretty printer in #Rust challenge":
    console.algora.io/challenges/p

    I think, by now, every major #WebDev tool has been rewritten in #RustLang.

    Just think about the time savings this brings for people globally!

    Time to switch our tools! 🚀

    #RIIR #JavaScript #DevTools #Prettier

  17. So I've created a #wily report for one thousand Black (the Python formatter) commits.

    You can see that there was a huge (and complex), 7k lines __init__.py that got broken up around May 2021.

    There's a trend of increasing LOC and complexity.

    This report shows me there's a lot to improve in wily's code. Hopefully I'm back at that.

    @hugovk @ambv

    #Python #Black #formatter #CodeStyle #Cyclomatic #Complexity #Halstead #codequality #codemetrics

    devdanzin.github.io/black/

  18. We're approaching the end of the year, and that means only one thing:

    There'll be a new Black v24 release soon (spoiler: in 2024) with an updated stable style.

    That means now is the time to upgrade Black, try it on your projects with the --preview flags, and let them know what you like or don't like:

    github.com/psf/black/issues/40 #Python #Black #formatter #CodeStyle

  19. It's #fork switching time!

    #Rome is my favorite #JavaScript #linter and #formatter. It's easy to configure, super-fast and has superb editor Integration thanks to its built-in #LSP.

    But it got burned down by VC money.

    Fortunately though, the core team members have rescued it by creating a new fork: #Biome! Try it out! Happy to share my #NeoVim config.

    biomejs.dev

  20. Join me at the #NeurodivergentPublishingConference2023! If you're an #author, #editor, #CoverDesigner, #formatter, or other #PublishingProfessional who lives with some flavor of #Neurodivergence, this #conference is for you. The team has assembled a slate of wide-ranging folks involved in publishing. There's plenty of time for interacting with other ND people as well. Oh, and the conference is entirely online so you can attend from your favorite space and wearing your favorite PJs!