Compare commits

..

5 commits
v0.1.0 ... main

4 changed files with 21 additions and 17 deletions

View file

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

View file

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

View file

@ -1,6 +1,6 @@
MIT License 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: 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 Pre-commit hooks for Scala 3 development. Used to run `scalafmt` on commit.
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
```