Commit graph

20 commits

Author SHA1 Message Date
Radon Rosborough
0e9a838bdd
Apply some code review suggestions from MELPA (#246)
https://github.com/melpa/melpa/pull/8809#issuecomment-1807218549
2023-11-17 16:17:08 -08:00
Radon Rosborough
ddea9bea70
[#232] Format from elixir project dir (#239)
Make it so that if there is a `.formatter.exs` file somewhere in the
parent directories, then Apheleia will run `mix format` from there
instead of the current directory.

Close #232
2023-11-11 16:32:40 -08:00
Ed Slocomb
54a192c345
Add support for formatters locally installed via yarn 2+ pnp mode (#200)
This adds support for formatters installed locally in project
directories via yarn 2's "zero install" [pnp
mode](https://yarnpkg.com/features/pnp).

It's quite similar to the support for formatters installed locally in a
project's `node_modules` via npm, and leverages the `npx` symbol, so
existing formatter definitions should work without modification.

This checks for a `.pnp.cjs` file (expected in the project root for yarn
pnp projects), then looks for a yarn executable, and checks the version
of yarn to make sure it supports pnp. If that works, we just push
`"yarn"` onto the front of `command`.

I've only tested this with a locally installed `prettier.js`. It's very
much a works-for-me draft, I'm putting in a PR to make sure this is a
workable approach before going any further with it.

---------

Co-authored-by: Radon Rosborough <radon@intuitiveexplanations.com>
2023-11-05 12:08:58 -08:00
Chris Rose
392028d823
Add support for the ruff python formatter (#236)
This adds support, but does not make it the default
Fixes: #233

---------

Co-authored-by: Radon Rosborough <radon@intuitiveexplanations.com>
2023-11-04 18:23:00 +00:00
Radon Rosborough
4178439d43
[#226] Add debug logs (#235)
Adds a way to properly diagnose performance issues like those reported
in https://github.com/radian-software/apheleia/issues/226.
2023-10-29 16:25:04 -07:00
Dhananjay Balan
5bade7a734
Use hclfmt to format hashicorp HCL files. (#231)
Add formatter `hclfmt` for Hashicorp Configuration Langauge (HCL).
2023-10-29 15:17:34 -07:00
Ed Slocomb
f4157e8c39
Use lisp-indent formatter in emacs-lisp-mode (#223)
What it says in the subject :)

Apheleia is opinionated about using a formatter, and which to use as a
default, in every other mode it supports, so it seems it should have an
opinion about emacs-lisp-mode, too?

---------

Co-authored-by: Radon Rosborough <radon@intuitiveexplanations.com>
2023-10-21 18:41:15 +00:00
Mohsin Kaleem
8cccf12df2
[#225] Fix incorrect replq usage (#227)
Closes #225.

<!--

To expedite the pull request process, please see the contributor guide
for my projects:

  <https://github.com/raxod502/contributor-guide>

-->
2023-10-18 20:01:51 +01:00
Mohsin Kaleem
51b8a796b6
Restructure and refactor apheleia package (#215)
CLOSES #212 

PR to restructure apheleia to make it more modular and improve some of
the separation of concerns. Before merging we should make sure that we
don't reintroduce the issues from #181.
2023-10-17 21:20:38 +01:00
Mohsin Kaleem
2d797a52e6 Move apheleia-formatters to apheleia-utils 2023-04-20 11:24:43 +01:00
Mohsin Kaleem
0474273496 Reorganise package requires to always provide apheleia 2023-04-20 11:24:43 +01:00
Mohsin Kaleem
ad728cfa76
Update existing formatters to use new formatter helper functions (#167) 2023-04-16 17:50:52 +01:00
Tomasz Hołubowicz
23c8b7d1ca
Add purs-tidy formatter (#182)
Hello!

I would like to add support for `purs-tidy` - PureScript formatter. 

Best wishes
alternateved
2023-03-29 14:35:02 -07:00
Mohsin Kaleem
edec1e61c8
Add various helper functions for defining formatters (#166) 2023-03-25 14:56:54 +00:00
Jay Barra
43ffed7890
Pretter svelte-mode (#178)
Adds support for `svelte-mode` using prettier.

Co-authored-by: Radon Rosborough <radon@intuitiveexplanations.com>
2023-03-23 14:00:51 -07:00
Mohsin Kaleem
26e436dfd0 Revert "Add various helper functions for defining formatters"
This reverts commit 1c607cf7a7.
2023-03-12 10:50:52 +00:00
Mohsin Kaleem
48e7233b42 Revert "Update existing formatters to use new utility functions"
This reverts commit ceaddebf39.
2023-03-12 10:50:49 +00:00
Mohsin Kaleem
ceaddebf39 Update existing formatters to use new utility functions 2023-03-12 10:45:10 +00:00
Mohsin Kaleem
1c607cf7a7 Add various helper functions for defining formatters 2023-03-12 10:34:28 +00:00
Mohsin Kaleem
3e93610387
Separate formatters definitions from core apheleia library (#161)
Moves the bulk of apheleia.el into a new apheleia-core.el file and move
formatter definitions and mode-associations into a new
apheleia-formatters.el file. The end user experience should be
unchanged. Loading `apheleia.el` will still load everything load
everything, just like it used to.
2023-03-12 10:22:36 +00:00