You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[__`stackql-deploy`__][pypi] is an open-source command line utility which implements a declarative, model driven framework to deploy and manage multi cloud stacks using [__`stackql`__][stackqlrepo]. [__`stackql-deploy`__][pypi] is distributed as a Python script to be used as a CLI tool, do the following to get started:
57
+
[**`stackql-deploy`**][pypi] is an open-source command line utility which implements a declarative, model driven framework to deploy and manage multi cloud stacks using [**`stackql`**][stackqlrepo]. [**`stackql-deploy`**][pypi] is distributed as a Python script to be used as a CLI tool, do the following to get started:
48
58
<br />
49
59
50
60
```bash
51
61
pip install stackql-deploy
52
62
```
53
63
54
-
> __Note for macOS users__
55
-
> to install `stackql-deploy` in a virtual environment (which may be necessary on __macOS__), use the following:
64
+
> **Note for macOS users**
65
+
> to install `stackql-deploy` in a virtual environment (which may be necessary on **macOS**), use the following:
66
+
>
56
67
> ```bash
57
68
> python3 -m venv myenv
58
69
>source myenv/bin/activate
@@ -61,15 +72,15 @@ pip install stackql-deploy
61
72
62
73
## About StackQL
63
74
64
-
StackQL is a utility which allows you to query and interact with cloud and SaaS resources in real time using SQL grammar. StackQL supports a full set of SQL query/DML grammar, including `JOIN`, `UNION` adn subquery functionality and supports mutation operations on cloud and SaaS resources such as `create`, `update` and `delete`, implemented as `INSERT`, `UPDATE` and `DELETE` respectively. StackQL also supports grammar for performing lifecycle operations such as starting or stopping a VM using the `EXEC` statement.
75
+
StackQL is a utility which allows you to query and interact with cloud and SaaS resources in real time using SQL grammar. StackQL supports a full set of SQL query/DML grammar, including `JOIN`, `UNION` adn subquery functionality and supports mutation operations on cloud and SaaS resources such as `create`, `update` and `delete`, implemented as `INSERT`, `UPDATE` and `DELETE` respectively. StackQL also supports grammar for performing lifecycle operations such as starting or stopping a VM using the `EXEC` statement.
65
76
66
-
StackQL provider definitions are defined in plaintext OpenAPI extensions to the providers specification. These definitions are then used to generate the SQL schema and the API client. The sourceforthe provider definitions are storedin the [__StackQL Registry__][registry].
77
+
StackQL provider definitions are defined in plaintext OpenAPI extensions to the providers specification. These definitions are then used to generate the SQL schema and the API client. The sourceforthe provider definitions are storedin the [**StackQL Registry**][registry].
67
78
68
79
## How it works
69
80
70
81
<!-- > see [__readthedocs__]() for more detailed documentation -->
71
82
72
-
A __`stackql-deploy`__ project is a directory containing StackQL scripts with a manifest file at the root of the directory, for example:
83
+
A **`stackql-deploy`** project is a directory containing StackQL scripts with a manifest file at the root of the directory, for example:
73
84
74
85
```
75
86
├── example_stack
@@ -115,9 +126,9 @@ resources:
115
126
116
127
Deployment orchestration using `stackql-deploy` includes:
117
128
118
-
- __*pre-flight*__ checks, which are StackQL queries that check for the existence or current configuration state of a resource
119
-
- __*deployment*__ scripts, which are StackQL queries to create or update resoruces (or delete in the case of de-provisioning)
120
-
- __*post-deployment*__ tests, which are StackQL queries to confirm that resources were deployed and have the desired state
129
+
- **_pre-flight_** checks, which are StackQL queries that check for the existence or current configuration state of a resource
130
+
- **_deployment_** scripts, which are StackQL queries to create or update resoruces (or delete in the case of de-provisioning)
131
+
- **_post-deployment_** tests, which are StackQL queries to confirm that resources were deployed and have the desired state
121
132
122
133
This process is described here:
123
134
@@ -278,16 +289,26 @@ Navigate to your `docs` directory and build the Sphinx documentation:
278
289
```
279
290
cd docs
280
291
make html
281
-
```
292
+
```
293
+
294
+
## Code Linting
295
+
296
+
To maintain code quality and consistency, we use `ruff` as the linter for this project. `ruff` offers fast performance and a comprehensive set of linting rules suitable for`stackql-deploy`. You can run the lint check as follows:
297
+
298
+
```bash
299
+
ruff check .
300
+
```
301
+
302
+
Note: If you need to install ruff, you can do so with `pip install ruff`.
282
303
283
304
## Contributing
284
305
285
-
Contributions are welcome and encouraged.
306
+
Contributions are welcome and encouraged.
286
307
287
308
## License
288
309
289
310
Distributed under the MIT License. See [`LICENSE`](https://github.com/stackql/stackql-deploy/blob/main/LICENSE) for more information.
290
311
291
312
## Contact
292
313
293
-
Get in touch with us via Twitter at [__@stackql__][twitter], email us at [__info@stackql.io__](info@stackql.io) or start a conversation using [__discussions__][discussions].
314
+
Get in touch with us via Twitter at [**@stackql**][twitter], email us at [**info@stackql.io**](info@stackql.io) or start a conversation using [**discussions**][discussions].
logger.debug(f"provider not supplied, defaulting to `{DEFAULT_PROVIDER}`")
352
363
provider=DEFAULT_PROVIDER
353
364
elifprovidernotinSUPPORTED_PROVIDERS:
354
365
provider=DEFAULT_PROVIDER
355
-
message=f"provider '{provider}' is not supported for `init`, supported providers are: {', '.join(SUPPORTED_PROVIDERS)}, defaulting to `{DEFAULT_PROVIDER}`"
366
+
message= (
367
+
f"provider '{provider}' is not supported for `init`, "
0 commit comments