Compare commits
No commits in common. "main" and "v0.1.2" have entirely different histories.
4 changed files with 21 additions and 6 deletions
10
.pre-commit-channel/scalafmt.json
Normal file
10
.pre-commit-channel/scalafmt.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"mainClass": "org.scalafmt.cli.Cli?",
|
||||
"repositories": [
|
||||
"central"
|
||||
],
|
||||
"dependencies": [
|
||||
"org.scalameta::scalafmt-cli:latest.release"
|
||||
]
|
||||
}
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
---
|
||||
- id: scalafmt
|
||||
name: scalafmt
|
||||
description: "Runs the scalafmt code formatter using Coursier."
|
||||
description: "runs the scalafmt code formatter"
|
||||
entry: scalafmt
|
||||
language: system
|
||||
language: coursier
|
||||
types: [file]
|
||||
files: \.(scala|sbt|sc)$
|
||||
stages: [commit]
|
||||
|
|
2
LICENSE
2
LICENSE
|
@ -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:
|
||||
|
||||
|
|
11
README.md
11
README.md
|
@ -1,4 +1,4 @@
|
|||
# gs-pre-commit-scala
|
||||
# meager-precommit-scala
|
||||
|
||||
Pre-commit hooks for Scala 3 development. Used to run `scalafmt` on commit.
|
||||
|
||||
|
@ -9,8 +9,13 @@ 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
|
||||
- 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
|
||||
hooks:
|
||||
- id: scalafmt
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue