Skip to content

Commit 36e0794

Browse files
authored
Merge pull request #10 from lkubb/copier-update
2 parents d7624c3 + cccbeee commit 36e0794

File tree

29 files changed

+285
-113
lines changed

29 files changed

+285
-113
lines changed

.copier-answers.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
# Autogenerated. Do not edit this by hand, use `copier update`.
22
---
3-
_commit: 0.2.7
3+
_commit: 0.3.7
44
_src_path: https://github.com/lkubb/salt-extension-copier
55
author: EITR Technologies, LLC
66
author_email: devops@eitr.tech
7-
docs_url: ''
7+
coc_contact: devops@eitr.tech
8+
copyright_begin: 2024
9+
deploy_docs: rolling
10+
docs_url: https://salt-extensions.github.io/saltext-redis/
11+
integration_name: Redis
812
license: apache
913
loaders:
1014
- cache
@@ -15,7 +19,7 @@ loaders:
1519
- sdb
1620
- state
1721
- token
18-
max_salt_version: 3006
22+
max_salt_version: 3007
1923
no_saltext_namespace: false
2024
package_name: redis
2125
project_name: redis
@@ -24,6 +28,7 @@ salt_version: '3005'
2428
source_url: https://github.com/salt-extensions/saltext-redis
2529
ssh_fixtures: false
2630
summary: Salt Extension for interacting with Redis
31+
test_containers: true
2732
tracker_url: https://github.com/salt-extensions/saltext-redis/issues
2833
url: https://github.com/salt-extensions/saltext-redis
2934
workflows: org

.github/workflows/pr.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ jobs:
1212
call_central_workflow:
1313
name: CI
1414
uses: salt-extensions/central-artifacts/.github/workflows/ci.yml@main
15+
with:
16+
deploy-docs: true
1517
permissions:
1618
contents: write
19+
id-token: write
20+
pages: write
1721
pull-requests: read

.github/workflows/tag.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,18 @@ jobs:
1616

1717
- name: Extract tag name
1818
id: get_version
19-
run: echo "::set-output name=version::$(echo ${GITHUB_REF#refs/tags/v})"
19+
run: echo "version=$(echo ${GITHUB_REF#refs/tags/v})" >> $GITHUB_OUTPUT
2020

2121
call_central_workflow:
2222
needs: get_tag_version
2323
uses: salt-extensions/central-artifacts/.github/workflows/ci.yml@main
2424
with:
25+
deploy-docs: true
2526
release: true
2627
version: ${{ needs.get_tag_version.outputs.version }}
2728
permissions:
2829
contents: write
2930
id-token: write
31+
pages: write
3032
pull-requests: read
3133
secrets: inherit

.pre-commit-config.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
minimum_pre_commit_version: 2.4.0
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.4.0
5+
rev: v4.6.0
66
hooks:
77
- id: check-merge-conflict # Check for files that contain merge conflict strings.
88
- id: trailing-whitespace # Trims trailing whitespace.
@@ -56,7 +56,7 @@ repos:
5656
args: [--silent, -E, fix_docstrings]
5757

5858
- repo: https://github.com/asottile/pyupgrade
59-
rev: v2.37.2
59+
rev: v3.15.2
6060
hooks:
6161
- id: pyupgrade
6262
name: Rewrite Code to be Py3.8+
@@ -65,43 +65,43 @@ repos:
6565
]
6666
exclude: src/saltext/redis/version.py
6767

68-
- repo: https://github.com/asottile/reorder_python_imports
69-
rev: v3.10.0
68+
- repo: https://github.com/PyCQA/isort
69+
rev: 5.13.2
7070
hooks:
71-
- id: reorder-python-imports
71+
- id: isort
7272
args: [
73-
--py38-plus,
73+
--py 38,
7474
]
75-
exclude: src/saltext/redis/version.py
75+
exclude: src/saltext/redis/(__init__|version).py
7676

7777
- repo: https://github.com/psf/black
78-
rev: 22.6.0
78+
rev: 24.2.0
7979
hooks:
8080
- id: black
8181
args: [-l 100]
8282
exclude: src/saltext/redis/version.py
8383

8484
- repo: https://github.com/adamchainz/blacken-docs
85-
rev: v1.12.1
85+
rev: 1.16.0
8686
hooks:
8787
- id: blacken-docs
8888
args: [--skip-errors]
8989
files: ^(docs/.*\.rst|src/saltext/redis/.*\.py)$
9090
additional_dependencies:
91-
- black==22.6.0
91+
- black==24.2.0
9292
# <---- Formatting -----------------------------------------------------------------------------
9393

9494
# ----- Security ------------------------------------------------------------------------------>
9595
- repo: https://github.com/PyCQA/bandit
96-
rev: "1.7.4"
96+
rev: 1.7.8
9797
hooks:
9898
- id: bandit
9999
alias: bandit-salt
100100
name: Run bandit against the code base
101101
args: [--silent, -lll, --skip, B701]
102102
exclude: src/saltext/redis/version.py
103103
- repo: https://github.com/PyCQA/bandit
104-
rev: "1.7.4"
104+
rev: 1.7.8
105105
hooks:
106106
- id: bandit
107107
alias: bandit-tests
@@ -112,7 +112,7 @@ repos:
112112

113113
# ----- Code Analysis ------------------------------------------------------------------------->
114114
- repo: https://github.com/saltstack/mirrors-nox
115-
rev: v2021.6.12
115+
rev: v2022.11.21
116116
hooks:
117117
- id: nox
118118
alias: lint-src
@@ -125,7 +125,7 @@ repos:
125125
- --
126126

127127
- repo: https://github.com/saltstack/mirrors-nox
128-
rev: v2021.6.12
128+
rev: v2022.11.21
129129
hooks:
130130
- id: nox
131131
alias: lint-tests

.pre-commit-hooks/make-autodocs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import subprocess
44
from pathlib import Path
55

6-
76
repo_path = Path(subprocess.check_output(["git", "rev-parse", "--show-toplevel"]).decode().strip())
87
src_dir = repo_path / "src" / "saltext" / "redis"
98
doc_dir = repo_path / "docs"

CODE-OF-CONDUCT.md

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in Salt
6+
Extension Modules for Redis project and our community a
7+
harassment-free experience for everyone, regardless of age, body size, visible
8+
or invisible disability, ethnicity, sex characteristics, gender identity and
9+
expression, level of experience, education, socio-economic status, nationality,
10+
personal appearance, race, religion, or sexual identity and orientation.
11+
12+
We pledge to act and interact in ways that contribute to an open, welcoming,
13+
diverse, inclusive, and healthy community.
14+
15+
## Our Standards
16+
17+
Examples of behavior that contributes to a positive environment for our
18+
community include:
19+
20+
* Demonstrating empathy and kindness toward other people
21+
* Being respectful of differing opinions, viewpoints, and experiences
22+
* Giving and gracefully accepting constructive feedback
23+
* Accepting responsibility and apologizing to those affected by our mistakes,
24+
and learning from the experience
25+
* Focusing on what is best not just for us as individuals, but for the
26+
overall community
27+
28+
Examples of unacceptable behavior include:
29+
30+
* The use of sexualized language or imagery, and sexual attention or
31+
advances of any kind
32+
* Trolling, insulting or derogatory comments, and personal or political attacks
33+
* Public or private harassment
34+
* Publishing others' private information, such as a physical or email
35+
address, without their explicit permission
36+
* Other conduct which could reasonably be considered inappropriate in a
37+
professional setting
38+
39+
## Enforcement Responsibilities
40+
41+
Community leaders are responsible for clarifying and enforcing our standards of
42+
acceptable behavior and will take appropriate and fair corrective action in
43+
response to any behavior that they deem inappropriate, threatening, offensive,
44+
or harmful.
45+
46+
Community leaders have the right and responsibility to remove, edit, or reject
47+
comments, commits, code, wiki edits, issues, and other contributions that are
48+
not aligned to this Code of Conduct, and will communicate reasons for moderation
49+
decisions when appropriate.
50+
51+
## Scope
52+
53+
This Code of Conduct applies within all community spaces, and also applies when
54+
an individual is officially representing the community in public spaces.
55+
Examples of representing our community include using an official e-mail address,
56+
posting via an official social media account, or acting as an appointed
57+
representative at an online or offline event.
58+
59+
## Enforcement
60+
61+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62+
reported to the community leaders responsible for enforcement at devops@eitr.tech.
63+
All complaints will be reviewed and investigated promptly and fairly.
64+
65+
All community leaders are obligated to respect the privacy and security of the
66+
reporter of any incident.
67+
68+
## Enforcement Guidelines
69+
70+
Community leaders will follow these Community Impact Guidelines in determining
71+
the consequences for any action they deem in violation of this Code of Conduct:
72+
73+
### 1. Correction
74+
75+
**Community Impact**: Use of inappropriate language or other behavior deemed
76+
unprofessional or unwelcome in the community.
77+
78+
**Consequence**: A private, written warning from community leaders, providing
79+
clarity around the nature of the violation and an explanation of why the
80+
behavior was inappropriate. A public apology may be requested.
81+
82+
### 2. Warning
83+
84+
**Community Impact**: A violation through a single incident or series
85+
of actions.
86+
87+
**Consequence**: A warning with consequences for continued behavior. No
88+
interaction with the people involved, including unsolicited interaction with
89+
those enforcing the Code of Conduct, for a specified period of time. This
90+
includes avoiding interactions in community spaces as well as external channels
91+
like social media. Violating these terms may lead to a temporary or
92+
permanent ban.
93+
94+
### 3. Temporary Ban
95+
96+
**Community Impact**: A serious violation of community standards, including
97+
sustained inappropriate behavior.
98+
99+
**Consequence**: A temporary ban from any sort of interaction or public
100+
communication with the community for a specified period of time. No public or
101+
private interaction with the people involved, including unsolicited interaction
102+
with those enforcing the Code of Conduct, is allowed during this period.
103+
Violating these terms may lead to a permanent ban.
104+
105+
### 4. Permanent Ban
106+
107+
**Community Impact**: Demonstrating a pattern of violation of community
108+
standards, including sustained inappropriate behavior, harassment of an
109+
individual, or aggression toward or disparagement of classes of individuals.
110+
111+
**Consequence**: A permanent ban from any sort of public interaction within
112+
the community.
113+
114+
## Attribution
115+
116+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
117+
version 2.0, available at
118+
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
119+
120+
Community Impact Guidelines were inspired by [Mozilla's code of conduct
121+
enforcement ladder](https://github.com/mozilla/diversity).
122+
123+
[homepage]: https://www.contributor-covenant.org
124+
125+
For answers to common questions about this code of conduct, see the FAQ at
126+
https://www.contributor-covenant.org/faq. Translations are available at
127+
https://www.contributor-covenant.org/translations.

CONTRIBUTING.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Thanks for your interest in contributing to the Salt Extension Modules for
2+
Redis! We welcome any contribution, large or small - from
3+
adding a new feature to fixing a single letter typo.
4+
5+
This is a companion to the Salt Project and the [Salt Contributing
6+
Guide][salt-contributing] should be considered the default for this project.
7+
Where this project disagrees with the Salt Project, the guidelines here take
8+
precedence. Where this project is silent, the Salt guidelines should be used.
9+
10+
See the **Contributing** section in the [README][README.md] for a quickstart.
11+
12+
13+
[README.md]: README.md
14+
[salt-contributing]: https://docs.saltproject.io/en/master/topics/development/contributing.html

NOTICE

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Salt Extension Modules for Redis
2+
Copyright 2024 EITR Technologies, LLC
3+
4+
This product is licensed to you under the Apache 2.0 license (the "License").
5+
You may not use this product except in compliance with the Apache 2.0 License.
6+
7+
This product may include a number of subcomponents with separate copyright
8+
notices and license terms. Your use of these subcomponents is subject to the
9+
terms and conditions of the subcomponent's license, as noted in the LICENSE
10+
file.

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ Salt Extension for interacting with Redis
44

55
## Security
66

7-
If you think you've found a security vulnerability, see
7+
If you think you have found a security vulnerability, see
88
[Salt's security guide][security].
99

1010
## User Documentation
1111

1212
This README is for people aiming to contribute to the project.
1313
If you just want to get started with the extension, check out the
14-
module docstrings (for now, documentation is coming!).
14+
[User Documentation][docs].
1515

1616
## Contributing
1717

@@ -64,11 +64,11 @@ these areas:
6464
You could also contribute in other ways:
6565

6666
* Writing blog posts
67-
* Posting on social media about how you used Salt+Redis to solve your
67+
* Posting on social media about how you used Salt + Redis to solve your
6868
problems, including videos
6969
* Giving talks at conferences
7070
* Publishing videos
71-
* Asking/answering questions in IRC, Slack, or email groups
71+
* Asking/answering questions in IRC, Discord or email groups
7272

7373
Any of these things are super valuable to our community, and we sincerely
7474
appreciate every contribution!
@@ -84,3 +84,4 @@ that's where you'll find the rest of the documentation.
8484
[PRs]: https://github.com/salt-extensions/saltext-redis/pulls
8585
[discussions]: https://github.com/salt-extensions/saltext-redis/discussions
8686
[comments]: https://conventionalcomments.org/
87+
[docs]: https://salt-extensions.github.io/saltext-redis/

docs/_ext/saltdomain.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
"""
2+
Copied/distilled from Salt doc/_ext/saltdomain.py in order to be able
3+
to use Salt's custom doc refs.
4+
"""
5+
6+
7+
def setup(app):
8+
app.add_crossref_type(
9+
directivename="conf_master",
10+
rolename="conf_master",
11+
indextemplate="pair: %s; conf/master",
12+
)
13+
app.add_crossref_type(
14+
directivename="conf_minion",
15+
rolename="conf_minion",
16+
indextemplate="pair: %s; conf/minion",
17+
)
18+
return {"parallel_read_safe": True, "parallel_write_safe": True}

0 commit comments

Comments
 (0)