A command line tool to format your Coq source code.
Clone this repository and build using opam
. You need dune
. This package is
not available in the OPAM repository (yet).
git clone https://github.com/toku-sa-n/coqfmt
cd coqfmt
opam install .
Just input your Coq code from stdin. Coqfmt will print the formatted code to stdout.
Coqfmt is aware of commandline arguments in _CoqProject
file. If you have a
_CoqProject
file in your project, Coqfmt will use the arguments in the file.
See coqfmt --help
for more detail.
Open an issue, please! We're still figuring out what the best style is.
Copyright (C) 2023 Hiroki Tokunaga
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.
This project uses source code from Logical Foundations, and its license file is LICENSE_LF.