Compare commits

..

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

4 changed files with 16 additions and 18 deletions

View file

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

View file

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

View file

@ -1,6 +1,6 @@
MIT License 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: 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. meager.io 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
```