making the robots easier and happier (#1343)

This commit is contained in:
James Hodgkinson 2023-01-24 09:38:19 +10:00 committed by GitHub
parent a92dfc82d7
commit 964853dd0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 9 deletions

View file

@ -32,7 +32,7 @@ jobs:
- name: Test document formatting - name: Test document formatting
run: | run: |
make test/doc/format make doc/format
- name: Setup mdBook - name: Setup mdBook
uses: peaceiris/actions-mdbook@v1 uses: peaceiris/actions-mdbook@v1

View file

@ -97,6 +97,10 @@ test/radiusd: build/radiusd
test: test:
cargo test cargo test
.PHONY: precommit
precommit: ## all the usual test things
precommit: test codespell test/pykanidm doc/format
.PHONY: vendor .PHONY: vendor
vendor: vendor:
cargo vendor cargo vendor
@ -147,11 +151,6 @@ test/pykanidm/mypy: ## python library type checking
test/pykanidm: ## run the kanidm python module test suite (mypy/lint/pytest) test/pykanidm: ## run the kanidm python module test suite (mypy/lint/pytest)
test/pykanidm: test/pykanidm/pytest test/pykanidm/mypy test/pykanidm/lint test/pykanidm: test/pykanidm/pytest test/pykanidm/mypy test/pykanidm/lint
.PHONY: test/doc/format
test/doc/format: ## Format docs and the Kanidm book
find . -type f -not -path './target/*' -name \*.md \
-exec deno fmt --check $(MARKDOWN_FORMAT_ARGS) "{}" +
######################################################################## ########################################################################
.PHONY: doc .PHONY: doc
@ -161,7 +160,15 @@ doc:
.PHONY: doc/format .PHONY: doc/format
doc/format: ## Format docs and the Kanidm book doc/format: ## Format docs and the Kanidm book
find . -type f -name \*.md -exec deno fmt $(MARKDOWN_FORMAT_ARGS) "{}" + find . -type f -not -path './target/*' -not -path '*/.venv/*' \
-name \*.md \
-exec deno fmt --check $(MARKDOWN_FORMAT_ARGS) "{}" +
.PHONY: doc/format/fix
doc/format/fix: ## Fix docs and the Kanidm book
find . -type f -not -path './target/*' -not -path '*/.venv/*' \
-name \*.md \
-exec deno fmt $(MARKDOWN_FORMAT_ARGS) "{}" +
.PHONY: book .PHONY: book
book: ## Build the Kanidm book book: ## Build the Kanidm book

View file

@ -99,8 +99,8 @@ of resource overhead and difficulty for administration.
Kanidm aims to have the features richness of FreeIPA, but without the resource and administration Kanidm aims to have the features richness of FreeIPA, but without the resource and administration
overheads. If you want a complete IDM package, but in a lighter footprint and easier to manage, then overheads. If you want a complete IDM package, but in a lighter footprint and easier to manage, then
Kanidm is probably for you. In testing with 3000 users + 1500 groups, Kanidm is 3 times faster Kanidm is probably for you. In testing with 3000 users + 1500 groups, Kanidm is 3 times faster for
for search operations and 5 times faster for modification and addition of entries (your results may search operations and 5 times faster for modification and addition of entries (your results may
differ however, but generally Kanidm is much faster than FreeIPA). differ however, but generally Kanidm is much faster than FreeIPA).
## Developer Getting Started ## Developer Getting Started