Compare commits

...

2 commits
v0.1.2 ... main

4 changed files with 6 additions and 21 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,4 @@
# meager-precommit-scala
# gs-pre-commit-scala
Pre-commit hooks for Scala 3 development. Used to run `scalafmt` on commit.
@ -9,13 +9,8 @@ Create `.pre-commit-config.yaml` at the root of your repository:
```yaml
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://git.meager.home/meager/meager-pre-commit-scala
rev: v0.1.2
- repo: https://git.garrity.co/garrity-software/gs-pre-commit-scala
rev: v1.0.0
hooks:
- id: scalafmt
```