Compare commits

..

4 commits
v0.1.1 ... main

Author SHA1 Message Date
0c4afb9449
Trying to use system-level scalafmt. 2024-04-30 21:24:41 -05:00
10041a87d7
Minor updates to prepare next version 2023-12-23 20:28:08 -06:00
pfm
d5af0fce09 Minor version and wording updates 2023-07-30 13:55:42 -05:00
pgfm
b6cc3d180d Updated README to be useful. 2022-06-17 21:49:39 -05:00
4 changed files with 18 additions and 16 deletions

View file

@ -1,10 +0,0 @@
{
"mainClass": "org.scalafmt.cli.Cli?",
"repositories": [
"central"
],
"dependencies": [
"org.scalameta::scalafmt-cli:latest.release"
]
}

View file

@ -1,9 +1,9 @@
---
- id: scalafmt
name: scalafmt
description: "runs the scalafmt code formatter"
description: "Runs the scalafmt code formatter using Coursier."
entry: scalafmt
language: coursier
language: system
types: [file]
files: \.(scala|sbt|sc)$
stages: [commit]

View file

@ -1,6 +1,6 @@
MIT License
Copyright (c) 2022 pfm
Copyright (c) Pat Garrity (pfm)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

View file

@ -1,4 +1,16 @@
# meager-precommit-scala
# gs-pre-commit-scala
meager.io pre-commit hooks for Scala 3 development. Used to run `scalafmt` on
commit.
Pre-commit hooks for Scala 3 development. Used to run `scalafmt` on commit.
## Usage
Create `.pre-commit-config.yaml` at the root of your repository:
```yaml
---
repos:
- repo: https://git.garrity.co/garrity-software/gs-pre-commit-scala
rev: v1.0.0
hooks:
- id: scalafmt
```