generated from ansible-collections/collection_template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up of directory structure and linting of code
- Loading branch information
Showing
6 changed files
with
54 additions
and
12 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,21 @@ | ||
--- | ||
on: [] | ||
name: Linters | ||
jobs: | ||
linters: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update -y | ||
sudo apt-get install jq libyaml-dev git build-essential findutils libsystemd-dev -y | ||
sudo python3 -m pip install tox | ||
sudo python3 -m pip install --upgrade --ignore-installed PyYAML | ||
sudo python3 -m pip install --upgrade pip | ||
sudo python3 -m pip install --upgrade virtualenv | ||
sudo python3 -m pip install --upgrade setuptools | ||
- name: Run tox | ||
run: | | ||
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
File renamed without changes.
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,7 +1,7 @@ | ||
--- | ||
namespace: kentik | ||
name: ansible_eda | ||
version: 1.0.0 | ||
version: 1.0.1 | ||
readme: README.md | ||
authors: | ||
- Kentik <[email protected]> | ||
|
@@ -31,4 +31,4 @@ issues: https://github.com/kentik/ansible_eda/issues | |
# artifact. A pattern is matched from the relative path of the file or directory of the collection directory. This | ||
# uses 'fnmatch' to match the files or directories. Some directories and files like 'galaxy.yml', '*.pyc', '*.retry', | ||
# and '.git' are always filtered. Mutually exclusive with 'manifest' | ||
build_ignore: [] | ||
build_ignore: [.github/, tox.ini] |
Binary file not shown.
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,27 @@ | ||
[tox] | ||
envlist = ruff, darglint, pylint | ||
skipsdist = true | ||
requires = | ||
ruff | ||
darglint | ||
pylint | ||
|
||
[testenv] | ||
allowlist_externals=* | ||
commands = | ||
{envpython} --version | ||
|
||
[testenv:ruff] | ||
deps = ruff | ||
commands = | ||
bash -c 'ruff check --exclude .tox --select ALL --ignore INP001,FA102,UP001,UP010,I001,FA100,PLR0913,E501 -q extensions/eda/plugins' | ||
|
||
[testenv:darglint] | ||
deps = darglint | ||
commands = | ||
bash -c 'darglint -s numpy -z full extensions/eda/plugins' | ||
|
||
[testenv:pylint] | ||
deps = pylint | ||
commands = | ||
bash -c 'find ./extensions/eda/plugins -name "*.py" -print0 | xargs -0 pylint --output-format=parseable -sn --disable R0801,E0401,C0103,R0913,R0902,R0903' |