-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from RedHatProductSecurity/add-helper-tooling
Add helper tooling
- Loading branch information
Showing
15 changed files
with
1,170 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: CI | ||
|
||
on: | ||
# Triggers the workflow on push or pull request events but only for the "main" branch | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
tox: | ||
name: Run Tox | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Run all envs | ||
uses: fedora-python/tox-github-action@main | ||
with: | ||
tox_env: ${{ matrix.tox_env }} | ||
strategy: | ||
matrix: | ||
tox_env: [black, ruff, schema] | ||
runs-on: ubuntu-latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
.cache | ||
*.egg-info/ | ||
.tox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,14 @@ | ||
# security-data-guidelines | ||
A set of documents detailing Red Hat's publishing of security data. | ||
|
||
|
||
## Docs Development | ||
|
||
To run a locally served docs site, run: | ||
|
||
``` | ||
python3 -m venv venv | ||
source venv/bin/activate | ||
pip install -r requirements/docs-requirements.txt | ||
mkdocs serve | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
site_name: Red Hat Security Data Guidelines | ||
site_url: https://redhatproductsecurity.github.io/security-data-guidelines/ | ||
edit_uri: "https://github.com/RedHatProductSecurity/security-data-guidelines/blob/main/docs" | ||
copyright: Copyright © Red Hat, Inc. · <a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a> | ||
|
||
theme: | ||
name: material | ||
|
@@ -12,7 +13,7 @@ theme: | |
- search.suggest | ||
- search.highlight | ||
- content.tabs.link | ||
- content.code.annotation | ||
- content.code.annotate | ||
- content.code.copy | ||
- content.action.view | ||
language: en | ||
|
@@ -46,12 +47,16 @@ extra: | |
link: "mailto:[email protected]" | ||
|
||
markdown_extensions: | ||
- pymdownx.highlight: | ||
linenums: true | ||
anchor_linenums: true | ||
- pymdownx.highlight | ||
- pymdownx.inlinehilite # https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/?h=snippets#inlinehilite | ||
- pymdownx.snippets # https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/?h=snippets#snippets | ||
- admonition # https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/?h=#admonition | ||
- footnotes # https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/?h=#footnotes | ||
- attr_list | ||
- abbr # https://squidfunk.github.io/mkdocs-material/reference/tooltips/#adding-abbreviations | ||
- md_in_html | ||
- pymdownx.superfences | ||
- pymdownx.tabbed: | ||
alternate_style: true | ||
- toc: | ||
permalink: 🔗 # Add anchor to each title element |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[tool.black] | ||
line-length = 100 | ||
|
||
[tool.ruff] | ||
line-length = 100 | ||
|
||
[tool.ruff.lint] | ||
# https://beta.ruff.rs/docs/rules/ | ||
select = ["F", "E", "W", "I", "N"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
black | ||
check-jsonschema | ||
ruff |
Oops, something went wrong.