Skip to content

Add version #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/main-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: main-cd

on:
push:
branches:
- main

jobs:
create-tag:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- id: github-tag-action
uses: anothrNick/github-tag-action@1.67.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.2.3
rev: v4.5.0
hooks:
- id: check-merge-conflict
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.6
rev: v1.5.5
hooks:
- id: forbid-crlf
- id: remove-crlf
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@ Collection of [pre-commit](https://pre-commit.com/) hooks for scala
## Alternative

* [pre-commit-scalafmt](https://github.com/coyainsurance/pre-commit-scalafmt)
* Run scalafmt on compile

## How to upgrade scalafix or scalafmt ?

Download the newer version with `coursier bootstrap` then commit the result
Download the newer version with coursier then commit the result

```bash
cs bootstrap scalafmt -o scalafmt -f
cs bootstrap scalafix -o scalafix -f
```
Binary file modified scalafix
Binary file not shown.
Binary file modified scalafmt
Binary file not shown.
8 changes: 4 additions & 4 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
let

nixpkgs = builtins.fetchTarball {
name = "nixos-22.11-20230513";
url = "https://github.com/NixOS/nixpkgs/archive/9656e85a15a0.tar.gz";
sha256 = "1wwdzv02fjb9gsdyahrfq8bs4y16lp2h08hk6mf9bi52286z9b4r";
name = "nixos-23.05-20231026-051829";
url = "https://github.com/NixOS/nixpkgs/archive/04f431fe64a5.tar.gz";
sha256 = "05lwii2zf4j790m886jqag4g5pgahjfg9balvfifah3aic8djzll";
};


pkgs = import nixpkgs { };
in
pkgs.mkShell {
buildInputs = [
pkgs.coursier
pkgs.pre-commit
];
}