Skip to content

Commit

Permalink
Merge pull request #37 from kalmarek/mk/AbstractPermutations
Browse files Browse the repository at this point in the history
use AbstractPermutations.jl
  • Loading branch information
kalmarek authored Dec 4, 2023
2 parents 773db9e + b0a09e2 commit 06cea66
Show file tree
Hide file tree
Showing 26 changed files with 207 additions and 639 deletions.
9 changes: 9 additions & 0 deletions .JuliaFormatter.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Configuration file for JuliaFormatter.jl
# For more information, see: https://domluna.github.io/JuliaFormatter.jl/stable/config/

always_for_in = true
always_use_return = true
margin = 80
remove_extra_newlines = true
separate_kwargs_with_semicolon = true
short_to_long_function_def = true
33 changes: 33 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Check formatting

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: julia-actions/setup-julia@latest
with:
version: '^1.6'
- uses: actions/checkout@v2
- name: Install JuliaFormatter and format
run: |
julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter", version="1.0.9"))'
julia -e 'using JuliaFormatter; format(["./src", "./test"], verbose=true)'
- name: Format check
run: |
julia -e '
out = Cmd(`git diff --name-only`) |> read |> String
if out == ""
exit(0)
else
@error "Some files have not been formatted !!!"
write(stdout, out)
exit(1)
end'
4 changes: 3 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
name = "PermutationGroups"
uuid = "8bc5a954-2dfc-11e9-10e6-cd969bffa420"
authors = ["Marek Kaluba <kalmar@amu.edu.pl>", "tweisser <tillmann.weisser@web.de>"]
version = "0.4.3"
version = "0.5.0"

[deps]
AbstractPermutations = "36d08e8a-54dd-435f-8c9e-38a475050b11"
GroupsCore = "d5909c97-4eac-4ecc-a3dc-fdd0858a4120"
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"

[compat]
AbstractPermutations = "0.2"
GroupsCore = "0.4"
PrecompileTools = "1"
julia = "1.6"
Expand Down
18 changes: 0 additions & 18 deletions src/Perms/Perms.jl

This file was deleted.

198 changes: 0 additions & 198 deletions src/Perms/abstract_perm.jl

This file was deleted.

57 changes: 0 additions & 57 deletions src/Perms/arithmetic.jl

This file was deleted.

25 changes: 0 additions & 25 deletions src/Perms/cycle_decomposition.jl

This file was deleted.

Loading

2 comments on commit 06cea66

@kalmarek
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/96527

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.5.0 -m "<description of version>" 06cea661a2503203ba70246fb254082155b429d0
git push origin v0.5.0

Please sign in to comment.