ruby.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
If you are interested in the Ruby programming language, come join us! Tell us about yourself when signing up. If you just want to join Mastodon, another server will be a better place for you.

Administered by:

Server stats:

1.1K
active users

#toml

0 posts0 participants0 posts today

#helix vs #neovim. spot the differences!

the main one isn't really visible, though: helix has a built-in #treesitter, and it does a great job at highlighting #rust out of the box, with zero configuration and dependencies!

this way, i don't have 20 plugins in #lua and/or #vimscript running in the background and autoupdating from #github - awesome! 🌈🦄 config is plain #toml - no need to write it in turing-complete languages which i only know poorly

shout out @bobulous 🙌 bobulous.org.uk/coding/Helix-c

Run pipelines in the terminal.

#pipelight is a cli/engine that runs pipelines in the terminal.(pssst: it's #foss 😏 and #rust 😏)

It has json AND pretty tree outputs so you can inspect every process outputs fairly quickly.🕵

Supports #yaml, #toml, #hcl, #javascript and some other languages.

#sysadmin #devops #cicd #developers
Every buzz word are there👌so you don't miss it, thk me later 😜

github.com/pipelight/pipelight

Tiny automation pipelines. Bring CI/CD to the smallest projects. Self-hosted, Lightweight, CLI only. - pipelight/pipelight
GitHubGitHub - pipelight/pipelight: Tiny automation pipelines. Bring CI/CD to the smallest projects. Self-hosted, Lightweight, CLI only.Tiny automation pipelines. Bring CI/CD to the smallest projects. Self-hosted, Lightweight, CLI only. - pipelight/pipelight

Started a #Perl program to parse #TOML file, initially crudely. Then thought should use existing software in form of a module to extract more than the rudimentary data.

So far #FreeBSD (Perl) packages are only for TOML v.0.4.0; missing is "TOML::Tiny" metacpan.org/pod/TOML::Tiny to parse TOML v1.0.0.

OTOH, #Python "tomli" package is available to parse TOML v1.0.0. See also "tomllib"

I would rather switch programming languages to have system packages as the updates are easier

MetaCPANTOML::Tinya minimal, pure perl TOML parser and serializer
Replied in thread

@ifixcoinops

There is a flavour of JSON that supports comments (JSONC) but of course it's non-standard and not supported in most JSON contexts. And it exists solely because of some programs insisting on keeping their configurations in JSON format, and config files *always* need comments...

I wasn't originally in favour of the choice of TOML (DOS/Windows ".ini" syntax on steroids) for the Python project config/metadata file, thinking YAML would have been better, but I've come around. YAML is still primarily suited for programs to write and parse. The fact that programmers can also write and parse it is useful, but doesn't mean it's suited for use as a general configuration file format to be used by normal people.

At least TOML they have a (small) chance of finding not too frustrating.

I suppose you could look at TOML (or even plain .ini) syntax for your unrelated thing, depending on its requirements.

People: I've been doing TOML wrong!

Not this:

foo = { thing = "that goes off the side", of = "the screen", because = "you are not allowed line breaks", in = "inline tables"}

but this:

foo.thing = "that goes off the side"
foo.of = "the screen"
foo.because = "you are not allowed line breaks"
foo.in = "inline tables"

I thought I needed whole TOML docs to be allowed inside {} (and that would be nice!) but I didn't because I can do this instead.

@mgorny Three of those are by me, sorry you think it look like shit. (I have since reverted some to be more concise: github.com/termcolor/termcolor)

I also prefer the original, but #TOML isn't the prettiest and it's much more valuable and maintainable for me to have things consistent and autoformatted than to re-arrange by hand.

Have you tried making suggestions with the formatter? Do you know another formatter that I could use that is better? Is there a #PEP517 / #PyProjectToml style guide?

GitHubDrop support for Python 3.8 (#81) · termcolor/termcolor@09ca9ccANSI color formatting for output in terminal. Contribute to termcolor/termcolor development by creating an account on GitHub.

Kiedy przypadkowe projekty używające narzędzia do formatowania plików #PyProjectToml, od pewnej osoby z opiniami, i nagle pliki `pyproject.toml` tych wszystkich projektów zaczynają wyglądać, jakby ktoś je wysrał, bo rzeczona osoba zmieniła zdanie, i stwierdziła, że klucze z kropkami dla tabelek #TOML nie są fajne, i lepiej wszystkie wartości w upchnąć w nadrzędnych tabelach. Czy muszę dodawać, że to zupełnie inaczej, niż stosuje się w przykładach dla każdego jednego systemu budowania #PEP517?

Kilka przykładów projektów, w których to nastąpiło (często za sprawą pre-commit):

github.com/pypa/virtualenv/com
github.com/django-commons/djan
github.com/pytest-dev/pytest/c
github.com/prettytable/prettyt
github.com/python-humanize/hum
github.com/termcolor/termcolor

GitHub[pre-commit.ci] pre-commit autoupdate (#2723) · pypa/virtualenv@7cbed79Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
GitHub[pre-commit.ci] pre-commit autoupdate (#2723) · pypa/virtualenv@7cbed79Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Continued thread

Tonight's example, that finally got me to toot about it... packaging.

The #poetry documentation for #pyproject.toml describes the #include and #exclude config lists. exclude is #automagically pre-populated with the entries from your VCS ignore file, but, and I quote:

"Explicitly declaring entries in include will negate VCS' ignore settings."

Wanna bet on it? I have an entry in my .gitignore file for `docs`. I explicitly list it in `include`.

3/x

I am pleased to announce that Crell/Serde (github.com/Crell/Serde) 1.3 was just released with support for #TOML 1.0!

#PHP has lacked for a TOML 1.0 library for some time, only having libraries for the old 0.4 version. Fortunately the new github.com/vanodevium/toml library supports 1.0, and the author @vanodevium was kind enough to help add support to Serde.

See the changelog for other new features, and enjoy first-class TOML support in PHP!

GitHubGitHub - Crell/Serde: Robust Serde (serialization/deserialization) library for PHP 8.Robust Serde (serialization/deserialization) library for PHP 8. - Crell/Serde