-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into add_restore_plugin
- Loading branch information
Showing
12 changed files
with
127 additions
and
89 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
[flake8] | ||
|
||
builtins = _ | ||
|
||
# Print the total number of errors: | ||
count = true | ||
|
||
# Don't even try to analyze these: | ||
extend-exclude = | ||
# No need to traverse egg info dir | ||
*.egg-info, | ||
# tool cache dirs | ||
*_cache | ||
# project env vars | ||
.env, | ||
# GitHub configs | ||
.github, | ||
# Cache files of MyPy | ||
.mypy_cache, | ||
# Cache files of pytest | ||
.pytest_cache, | ||
# Temp dir of pytest-testmon | ||
.tmontmp, | ||
# Occasional virtualenv dir | ||
.venv | ||
# VS Code | ||
.vscode, | ||
# Temporary build dir | ||
build, | ||
# This contains sdists and wheels of ansible-navigator that we don't want to check | ||
dist, | ||
# Metadata of `pip wheel` cmd is autogenerated | ||
pip-wheel-metadata, | ||
# adjacent venv | ||
venv | ||
# ansible won't let me | ||
__init__.py | ||
|
||
# IMPORTANT: avoid using ignore option, always use extend-ignore instead | ||
# Completely and unconditionally ignore the following errors: | ||
extend-ignore = | ||
F841, | ||
# line-length | ||
E501, | ||
# module level import not at top of file | ||
E402 | ||
|
||
# Accessibility/large fonts and PEP8 unfriendly: | ||
max-line-length = 120 | ||
|
||
# Allow certain violations in certain files: | ||
# Please keep both sections of this list sorted, as it will be easier for others to find and add entries in the future | ||
per-file-ignores = | ||
# The following ignores have been researched and should be considered permanent | ||
# each should be preceeded with an explanation of each of the error codes | ||
# If other ignores are added for a specific file in the section following this, | ||
# these will need to be added to that line as well. | ||
|
||
|
||
# S101: Allow the use of assert within the tests directory, since tests require it. | ||
tests/**.py: S101 | ||
|
||
# The following were present during the initial implementation. | ||
# They are expected to be fixed and unignored over time. | ||
|
||
# Count the number of occurrences of each error/warning code and print a report: | ||
statistics = true |
10 changes: 3 additions & 7 deletions
10
.github/workflows/ack.yml → .github/workflows/check_label.yml
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,15 +1,11 @@ | ||
--- | ||
# See https://github.com/ansible-community/devtools/blob/main/.github/workflows/ack.yml | ||
name: ack | ||
|
||
name: "Check label" | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: # yamllint disable-line rule:truthy | ||
pull_request_target: | ||
types: [opened, labeled, unlabeled, synchronize] | ||
|
||
jobs: | ||
ack: | ||
uses: ansible/devtools/.github/workflows/ack.yml@main | ||
check_label: | ||
uses: ansible/ansible-content-actions/.github/workflows/check_label.yaml@main |
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,18 @@ | ||
--- | ||
name: "Draft release" | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
on: # yamllint disable-line rule:truthy | ||
workflow_dispatch: | ||
env: | ||
NAMESPACE: ${{ github.repository_owner }} | ||
COLLECTION_NAME: junos | ||
ANSIBLE_COLLECTIONS_PATHS: ./ | ||
jobs: | ||
update_release_draft: | ||
uses: ansible/ansible-content-actions/.github/workflows/draft_release.yaml@main | ||
with: | ||
repo: ${{ github.event.pull_request.head.repo.full_name }} | ||
secrets: | ||
BOT_PAT: ${{ secrets.BOT_PAT }} |
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -44,3 +44,8 @@ repos: | |
rev: 23.12.1 | ||
hooks: | ||
- id: black | ||
|
||
- repo: https://github.com/pycqa/flake8 | ||
rev: 7.0.0 | ||
hooks: | ||
- id: flake8 |
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,4 @@ | ||
--- | ||
trivial: | ||
- Add sanity ignore file for 2.18 | ||
- Change github actions workflow to content-actions |
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 @@ | ||
plugins/action/junos.py action-plugin-docs # base class for deprecated network platform modules using `connection: local` |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[ansible] | ||
|
||
skip = | ||
py3.7 | ||
py3.8 | ||
2.9 | ||
2.10 | ||
2.11 | ||
2.12 | ||
2.13 |