Compare commits
5 commits
Author | SHA1 | Date | |
---|---|---|---|
0c4afb9449 | |||
10041a87d7 | |||
![]() |
d5af0fce09 | ||
![]() |
b6cc3d180d | ||
![]() |
eed51c6140 |
4 changed files with 21 additions and 17 deletions
|
@ -1,10 +0,0 @@
|
|||
{
|
||||
"mainClass": "org.scalafmt.cli.Cli?",
|
||||
"repositories": [
|
||||
"central"
|
||||
],
|
||||
"dependencies": [
|
||||
"org.scalameta::scalafmt-cli:latest.release"
|
||||
]
|
||||
}
|
||||
|
|
@ -1,8 +1,10 @@
|
|||
---
|
||||
- id: scalafmt
|
||||
name: scalafmt
|
||||
description: "runs the scalafmt code formatter"
|
||||
description: "Runs the scalafmt code formatter using Coursier."
|
||||
entry: scalafmt
|
||||
language: coursier
|
||||
types: [text]
|
||||
language: system
|
||||
types: [file]
|
||||
files: \.(scala|sbt|sc)$
|
||||
stages: [commit]
|
||||
pass_filenames: true
|
||||
|
|
2
LICENSE
2
LICENSE
|
@ -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:
|
||||
|
||||
|
|
18
README.md
18
README.md
|
@ -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
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue