Compare commits

..

No commits in common. "main" and "v0.1.0" have entirely different histories.
main ... v0.1.0

4 changed files with 17 additions and 21 deletions

View file

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

View file

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

View file

@ -1,6 +1,6 @@
MIT License
Copyright (c) Pat Garrity (pfm)
Copyright (c) 2022 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,16 +1,4 @@
# gs-pre-commit-scala
# meager-precommit-scala
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
```
meager.io pre-commit hooks for Scala 3 development. Used to run `scalafmt` on
commit.