Skip to content

Commit 1005a38

Browse files
committed
Init
0 parents  commit 1005a38

File tree

12 files changed

+1549
-0
lines changed

12 files changed

+1549
-0
lines changed

.config/dictionary.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
CLIARGS
2+
virsh
3+
popen
4+
pylibsshext
5+
pylibssh
6+
virl
7+
virsh
8+
xmltodict
9+
getppid
10+
fqcn

.darglint

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[darglint]
2+
docstring_style = sphinx
3+
strictness = full

.flake8

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
[flake8]
2+
3+
builtins = _
4+
5+
# Print the total number of errors:
6+
count = true
7+
8+
# Don't even try to analyze these:
9+
extend-exclude =
10+
# No need to traverse egg info dir
11+
*.egg-info,
12+
# tool cache dirs
13+
*_cache
14+
# project env vars
15+
.env,
16+
# GitHub configs
17+
.github,
18+
# Cache files of MyPy
19+
.mypy_cache,
20+
# Cache files of pytest
21+
.pytest_cache,
22+
# Temp dir of pytest-testmon
23+
.tmontmp,
24+
# Occasional virtualenv dir
25+
.venv
26+
# VS Code
27+
.vscode,
28+
# Temporary build dir
29+
build,
30+
# This contains sdists and wheels
31+
dist,
32+
# Metadata of `pip wheel` cmd is autogenerated
33+
pip-wheel-metadata,
34+
# adjacent venv
35+
venv
36+
37+
# IMPORTANT: avoid using ignore option, always use extend-ignore instead
38+
# Completely and unconditionally ignore the following errors:
39+
extend-ignore =
40+
E203, # annoy black by allowing white space before : https://github.com/psf/black/issues/315
41+
F401, # duplicate of pylint W0611 (unused-import)
42+
F821, # duplicate of pylint E0602 (undefined-variable)
43+
F841, # duplicate of pylint W0612 (unused-variable)
44+
45+
# Accessibility/large fonts and PEP8 unfriendly:
46+
max-line-length = 100
47+
48+
# Allow certain violations in certain files:
49+
# Please keep both sections of this list sorted, as it will be easier for others to find and add entries in the future
50+
per-file-ignores =
51+
# The following ignores have been researched and should be considered permanent
52+
# each should be preceeded with an explanation of each of the error codes
53+
# If other ignores are added for a specific file in the section following this,
54+
# these will need to be added to that line as well.
55+
56+
# S101: Allow the use of assert within the tests directory, since tests require it.
57+
tests/**.py: S101
58+
59+
# The following were present during the initial implementation.
60+
# They are expected to be fixed and unignored over time.
61+
#
62+
63+
# Count the number of occurrences of each error/warning code and print a report:
64+
statistics = true

.gitignore

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
collections/
2+
.virl/
3+
4+
# Byte-compiled / optimized / DLL files
5+
__pycache__/
6+
*.py[cod]
7+
*$py.class
8+
9+
# C extensions
10+
*.so
11+
12+
# Distribution / packaging
13+
.Python
14+
build/
15+
develop-eggs/
16+
dist/
17+
downloads/
18+
eggs/
19+
.eggs/
20+
lib/
21+
lib64/
22+
parts/
23+
sdist/
24+
var/
25+
wheels/
26+
pip-wheel-metadata/
27+
share/python-wheels/
28+
*.egg-info/
29+
.installed.cfg
30+
*.egg
31+
MANIFEST
32+
33+
# PyInstaller
34+
# Usually these files are written by a python script from a template
35+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
36+
*.manifest
37+
*.spec
38+
39+
# Installer logs
40+
pip-log.txt
41+
pip-delete-this-directory.txt
42+
43+
# Unit test / coverage reports
44+
htmlcov/
45+
.tox/
46+
.nox/
47+
.coverage
48+
.coverage.*
49+
.cache
50+
nosetests.xml
51+
coverage.xml
52+
*.cover
53+
*.py,cover
54+
.hypothesis/
55+
.pytest_cache/
56+
57+
# Translations
58+
*.mo
59+
*.pot
60+
61+
# Django stuff:
62+
*.log
63+
local_settings.py
64+
db.sqlite3
65+
db.sqlite3-journal
66+
67+
# Flask stuff:
68+
instance/
69+
.webassets-cache
70+
71+
# Scrapy stuff:
72+
.scrapy
73+
74+
# Sphinx documentation
75+
docs/_build/
76+
77+
# PyBuilder
78+
target/
79+
80+
# Jupyter Notebook
81+
.ipynb_checkpoints
82+
83+
# IPython
84+
profile_default/
85+
ipython_config.py
86+
87+
# pyenv
88+
.python-version
89+
90+
# pipenv
91+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
93+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
94+
# install all needed dependencies.
95+
#Pipfile.lock
96+
97+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
98+
__pypackages__/
99+
100+
# Celery stuff
101+
celerybeat-schedule
102+
celerybeat.pid
103+
104+
# SageMath parsed files
105+
*.sage.py
106+
107+
# Environments
108+
.env
109+
.venv
110+
env/
111+
venv/
112+
ENV/
113+
env.bak/
114+
venv.bak/
115+
116+
# Spyder project settings
117+
.spyderproject
118+
.spyproject
119+
120+
# Rope project settings
121+
.ropeproject
122+
123+
# mkdocs documentation
124+
/site
125+
126+
# mypy
127+
.mypy_cache/
128+
.dmypy.json
129+
dmypy.json
130+
131+
# Pyre type checker
132+
.pyre/

.pre-commit-config.yaml

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
---
2+
default_language_version:
3+
# ensures that we get same behavior on CI(s) as on local machines
4+
python: python3.10
5+
repos:
6+
- repo: https://github.com/asottile/add-trailing-comma.git
7+
rev: v2.2.2
8+
hooks:
9+
- id: add-trailing-comma
10+
args:
11+
- --py36-plus
12+
stages: ["manual"]
13+
14+
- repo: https://github.com/PyCQA/isort
15+
rev: 5.10.1
16+
hooks:
17+
- id: isort
18+
name: Sort import statements using isort
19+
20+
- repo: https://github.com/pre-commit/mirrors-prettier
21+
rev: "v2.6.2"
22+
hooks:
23+
- id: prettier
24+
# Original hook implementation is flaky due to *several* bugs described
25+
# in https://github.com/prettier/prettier/issues/12364
26+
# a) CI=1 needed to avoid incomplete output
27+
# b) two executions are needed because --list-different works correctly
28+
# only when run with --check as with --write the output will also
29+
# include other entries and logging level cannot be used to keep only
30+
# modified files listed (any file is listes using the log level,
31+
# regardless if it is modified or not).
32+
# c) We avoid letting pre-commit pass each filename in order to avoid
33+
# runing multiple instances in parallel. This also ensures that running
34+
# prettier from the command line behaves identically with the pre-commit
35+
# one. No real performance downsides.
36+
# d) exit with the return code from list-different (0=none, 1=some)
37+
# rather than the write (0=successfully rewrote files). pre-commit.ci
38+
entry: >-
39+
env CI=1 bash -c "prettier --list-different . ||
40+
ec=$? && prettier --loglevel=error --write . && exit $ec"
41+
pass_filenames: false
42+
args: []
43+
additional_dependencies:
44+
- prettier
45+
- prettier-plugin-toml
46+
47+
- repo: https://github.com/psf/black.git
48+
rev: 22.3.0
49+
hooks:
50+
- id: black
51+
language_version: python3
52+
53+
- repo: https://github.com/streetsidesoftware/cspell-cli
54+
rev: v5.9.1
55+
hooks:
56+
- id: cspell
57+
name: Spell check with cspell
58+
59+
- repo: https://github.com/Lucas-C/pre-commit-hooks.git
60+
rev: v1.1.13
61+
hooks:
62+
- id: remove-tabs
63+
64+
- repo: https://github.com/pre-commit/pre-commit-hooks.git
65+
rev: v4.2.0
66+
hooks:
67+
# Side-effects:
68+
- id: trailing-whitespace
69+
- id: check-merge-conflict
70+
- id: end-of-file-fixer
71+
- id: requirements-txt-fixer
72+
- id: check-added-large-files
73+
- id: fix-byte-order-marker
74+
- id: check-case-conflict
75+
- id: check-json
76+
- id: check-symlinks
77+
- id: check-yaml
78+
- id: detect-private-key
79+
80+
# Heavy checks:
81+
- id: check-ast
82+
- id: debug-statements
83+
84+
- repo: https://github.com/codespell-project/codespell
85+
rev: v2.1.0
86+
hooks:
87+
- id: codespell
88+
89+
- repo: https://github.com/adrienverge/yamllint.git
90+
rev: v1.26.3
91+
hooks:
92+
- id: yamllint
93+
args:
94+
- --strict
95+
types: [file, yaml]
96+
97+
- repo: https://github.com/PyCQA/flake8.git
98+
rev: 4.0.1
99+
hooks:
100+
- id: flake8
101+
alias: flake8
102+
language_version: python3
103+
additional_dependencies:
104+
- flake8-2020 >= 1.6.0
105+
- flake8-isort >= 4.1.1
106+
- darglint
107+
- flake8-docstrings # uses pydocstyle
108+
109+
- repo: https://github.com/pre-commit/mirrors-mypy.git
110+
rev: v0.942
111+
hooks:
112+
- id: mypy
113+
alias: mypy-py310
114+
name: MyPy, for Python 3.10
115+
additional_dependencies:
116+
- pytest
117+
- types-PyYAML
118+
args:
119+
- --python-version=3.10
120+
pass_filenames: false
121+
122+
- repo: https://github.com/pycqa/pylint.git
123+
rev: v2.13.5
124+
hooks:
125+
- id: pylint
126+
args:
127+
- src/
128+
additional_dependencies:
129+
- ansible-core
130+
- pytest
131+
pass_filenames: false

0 commit comments

Comments
 (0)