pyproject.toml
[tool.poetry]
package-mode = false
[tool.poetry.dependencies]
python = "3.12.x"
[tool.poetry.group.dev.dependencies]
ansible = "10.5.0"
ansible-lint = { version = "24.9.2", markers = "platform_system != 'Windows'" }
autoflake = "2.3.1"
black = {version = "24.10.0", extras = ["d", "jupyter"]}
cmakelint = "1.4.3"
isort = "5.13.2"
miss-hit = "0.9.44"
mypy = "1.11.2"
nb-clean = "3.3.0"
poethepoet = "0.29.0"
ruff = "0.6.9"
sqlfluff = "3.2.4"
vsg = "3.26.0"
yamllint = "1.35.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poe.tasks]
clean-jupyter-notebook = "nb-clean clean"
ansible-galaxy-install = "ansible-galaxy install"
sqlfluff-list-dialects = "sqlfluff dialects"
lint-ansible = {shell = "ansible-lint $(git ls-files '**/playbook.yml')"}
lint-cmake = {shell = "cmakelint $(git ls-files '**/CMakeLists.txt')"}
lint-matlab = {shell = "mh_style $(git ls-files '**/*.m')"}
lint-matlab-fix = {shell = "mh_style --fix $(git ls-files '**/*.m')"}
lint-python-autoflake = "autoflake --remove-all-unused-imports --remove-unused-variables --remove-duplicate-keys --check --recursive ."
lint-python-autoflake-fix = "autoflake --remove-all-unused-imports --remove-unused-variables --remove-duplicate-keys --in-place --recursive ."
lint-python-black = "black --check ."
lint-python-black-fix = "black ."
lint-python-ruff = "ruff check ."
lint-python-ruff-fix = "ruff check --fix ."
lint-python-isort = "isort --check-only ."
lint-python-isort-fix = "isort ."
lint-sql = "sqlfluff lint"
lint-sql-fix = "sqlfluff fix --force"
lint-vhdl = {shell = "vsg --filename $(git ls-files '**/*.vhd')"}
lint-vhdl-fix = {shell = "vsg --filename $(git ls-files '**/*.vhd') --fix"}
lint-yaml = "yamllint ."
static-type-check-python = "mypy --install-types --non-interactive"