Skip to content
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

chore(docs): Add minor specifications into the readme #195

Merged
merged 1 commit into from
May 6, 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
2 changes: 1 addition & 1 deletion .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,4 @@ jobs:
- name: Check spelling of file.txt
uses: crate-ci/typos@f2c1f08a7b3c1b96050cb786baaa2a94797bdb7d # master
with:
config: _typos.toml
config: typos.toml
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
exclude: '^zuul.d/.*$'
- id: check-json
- repo: https://github.com/crate-ci/typos
rev: v1.18.2
rev: v1.21.0
hooks:
- id: typos
- repo: local
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# OpenStack Rust

Welcome to the Openstack<->Rust project.
Welcome to the OpenStack<->Rust project.

As a programming language Rust is getting more and more traction in the low
level programming. It has very unique programming safety featrues what makes it
level programming. It has very unique programming safety features what makes it
a very good fit in a complex world of OpenStack. As a compiled language it is
also a very good fit for the CLI tools allowing users to escape the python
dependency issues. In the containerization era placing a small size binary is
Expand Down Expand Up @@ -32,7 +32,7 @@ maintenance effort while at the same time guaranteeing that API bindings match
to what service is supporting in reality. Instead of human reading the API-REF
written by another human who maybe was involved in the implementation of the
feature OpenAPI specs is being chosen as a source of truth. Since such specs
were also not existing and multiple attempts to introde OpenAPI in OpenStack
were also not existing and multiple attempts to introduce OpenAPI in OpenStack
failed the process was restarted again. Currently there is a lot of work
happening in OpenStack to produce specs for majority of the services. Main
component responsible for that is
Expand All @@ -56,6 +56,9 @@ always landing on the shoulders of SDK/CLI maintainers to try to cope with it.
Now if API is bad - API author is to blame.

- Code being automatically generated from OpenAPI specs of the service APIs.
- Unix philosophy: "do one thing well". Every resource/command coverage tries
to focus only on the exact API. Combination of API calls is not in scope of the
generated code. "Simple is better then complex" (The Zen of Python).
- SDK/CLI bindings are wrapping the API with no additional guessing or
normalization.
- User is in full control of input and output. Microversion X.Y has a concrete
Expand Down Expand Up @@ -104,10 +107,7 @@ osc --os-cloud devstack compute flavor list

### Functional testing

SDK and CLI are coming with a set of basic functional tests that are not
executed by default since that requires access to the real cloud. In addition
to that some tests require extended privileges so those are additionally
ignored.
SDK and CLI are coming with a set of basic functional tests.

To trigger functional tests invoke:

Expand Down
7 changes: 0 additions & 7 deletions _typos.toml

This file was deleted.

2 changes: 1 addition & 1 deletion openstack_cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ from one tool to another.
- `osc api` as an API wrapper allowing user to perform any direct API call
specifying service type, url, method and payload. This can be used for
example when certain resource is not currently implemented natively.
- `osc auth` with subcommands for deailng explicitly with authentication
- `osc auth` with subcommands for dealing explicitly with authentication
(showing current auth info, renewing auth, MFA/SSO support)
- Every resource is having a service type in the command solving confusions
like user groups vs volume groups
Expand Down
1 change: 1 addition & 0 deletions openstack_sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ immediately available on the next regeneration.
invocation with upload and download capabilities.
- Every combination of URL + http method + body schema is represented by a
dedicated module
- User is in charge of return data schema.

## Structure

Expand Down
131 changes: 131 additions & 0 deletions typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
[files]
extend-exclude = []
ignore-hidden = true
ignore-files = true
ignore-dot = true
ignore-vcs = true
ignore-global = true
ignore-parent = true

[default]
binary = false
check-filename = true
check-file = true
unicode = true
ignore-hex = true
identifier-leading-digits = false
locale = "en"
extend-ignore-identifiers-re = []
extend-ignore-words-re = []
extend-ignore-re = []

[default.extend-identifiers]

[default.extend-words]
ro = "ro"

[type.rust]
extend-glob = []
extend-ignore-identifiers-re = []
extend-ignore-words-re = []
extend-ignore-re = []

[type.rust.extend-identifiers]
flate2 = "flate2"
wher = "wher"

[type.rust.extend-words]
ro = "ro"
ser = "ser"

[type.sh]
extend-glob = []
extend-ignore-identifiers-re = []
extend-ignore-words-re = []
extend-ignore-re = []

[type.sh.extend-identifiers]
ot = "ot"
stap = "stap"

[type.sh.extend-words]

[type.jl]
extend-glob = []
extend-ignore-identifiers-re = []
extend-ignore-words-re = []
extend-ignore-re = []

[type.jl.extend-identifiers]

[type.jl.extend-words]
modul = "modul"
egal = "egal"
egals = "egals"
usig = "usig"

[type.vimscript]
extend-glob = []
extend-ignore-identifiers-re = []
extend-ignore-words-re = []
extend-ignore-re = []

[type.vimscript.extend-identifiers]
windo = "windo"

[type.vimscript.extend-words]

[type.css]
extend-glob = []
extend-ignore-identifiers-re = []
extend-ignore-words-re = []
extend-ignore-re = []

[type.css.extend-identifiers]
nd = "nd"

[type.css.extend-words]

[type.py]
extend-glob = []
extend-ignore-identifiers-re = []
extend-ignore-words-re = []
extend-ignore-re = []

[type.py.extend-identifiers]
NDArray = "NDArray"

[type.py.extend-words]

[type.cert]
extend-glob = []
check-file = false
extend-ignore-identifiers-re = []
extend-ignore-words-re = []
extend-ignore-re = []

[type.cert.extend-identifiers]

[type.cert.extend-words]

[type.man]
extend-glob = []
extend-ignore-identifiers-re = []
extend-ignore-words-re = []
extend-ignore-re = []

[type.man.extend-identifiers]
Nd = "Nd"

[type.man.extend-words]

[type.lock]
extend-glob = []
check-file = false
extend-ignore-identifiers-re = []
extend-ignore-words-re = []
extend-ignore-re = []

[type.lock.extend-identifiers]

[type.lock.extend-words]