Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

ansys-pre-commit-hooks

Latest version: v0.8.4

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
PyPI package Publisher: ansys
6 Stars
0 Forks
4 Versions
598 Downloads
Python Repo language

Scan summary

ansys-pre-commit-hooks was last scanned on 23 Nov 2026 at version 0.8.4. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 4 versions; the latest 3 were published within 5 days (19–23 Nov 2026).
  • Findings: No rules fired in version 0.8.4.
  • Downloads: 598 downloads.

Versions

4 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.8.4 LATEST 23 Nov 2026 No rules fired
0.8.3 20 Nov 2026 No rules fired
0.8.2 19 Nov 2026 No rules fired
0.8.1 4 Nov 2026 Not shown

No rules fired in 0.8.4

Findings

Findings for v0.8.4. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.8.4; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Ansys pre-commit hooks

|pyansys| |python| |pypi| |GH-CI| |MIT| |ruff| |pre-commit-ci|

.. |pyansys| image:: https://img.shields.io/badge/Py-Ansys-ffc107.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAABDklEQVQ4jWNgoDfg5mD8vE7q/3bpVyskbW0sMRUwofHD7Dh5OBkZGBgW7/3W2tZpa2tLQEOyOzeEsfumlK2tbVpaGj4N6jIs1lpsDAwMJ278sveMY2BgCA0NFRISwqkhyQ1q/Nyd3zg4OBgYGNjZ2ePi4rB5loGBhZnhxTLJ/9ulv26Q4uVk1NXV/f///////69du4Zdg78lx//t0v+3S88rFISInD59GqIH2esIJ8G9O2/XVwhjzpw5EAam1xkkBJn/bJX+v1365hxxuCAfH9+3b9/+////48cPuNehNsS7cDEzMTAwMMzb+Q2u4dOnT2vWrMHu9ZtzxP9vl/69RVpCkBlZ3N7enoDXBwEAAA+YYitOilMVAAAAAElFTkSuQmCC :target: https://docs.pyansys.com/ :alt: PyAnsys

.. |python| image:: https://img.shields.io/pypi/pyversions/ansys-pre-commit-hooks?logo=pypi :target: https://pypi.org/project/ansys-pre-commit-hooks/ :alt: Python

.. |pypi| image:: https://img.shields.io/pypi/v/ansys-pre-commit-hooks.svg?logo=python&logoColor=white :target: https://pypi.org/project/ansys-pre-commit-hooks :alt: PyPI

.. |GH-CI| image:: https://github.com/ansys/pre-commit-hooks/actions/workflows/ci_cd.yml/badge.svg :target: https://github.com/ansys/pre-commit-hooks/actions/workflows/ci_cd.yml :alt: GH-CI

.. |MIT| image:: https://img.shields.io/badge/License-MIT-yellow.svg :target: https://opensource.org/licenses/MIT :alt: MIT

.. |ruff| image:: https://img.shields.io/badge/code%20style-ruff-D7FF64.svg?style=flat :target: https://github.com/astral-sh/ruff :alt: Ruff

.. |pre-commit-ci| image:: https://results.pre-commit.ci/badge/github/ansys/pre-commit-hooks/main.svg :target: https://results.pre-commit.ci/latest/github/ansys/pre-commit-hooks/main :alt: pre-commit.ci status

This Ansys repository contains pre-commit_ hooks for different purposes. The following hooks are currently available:

  • add-license-headers: Add missing license headers to files by using REUSE <https://reuse.software/>_ . To use this hook, you must have REUSE implemented in your repository.
  • tech-review: Do a technical review of your repository according to Ansys repository requirements <https://dev.docs.pyansys.com/packaging/structure.html>_
  • pyansys-quality-report: Check PyAnsys quality with selectable rules and a machine-readable JSON report.

Configure the quality report in the .pre-commit-config.yaml file:

.. code:: yaml

Run pre-commit run pyansys-quality-report --all-files (or prek run pyansys-quality-report --all-files) to show warnings and errors. Use --show-all to include passing checks, --check RM003 to select a rule, --ignore RM004 to omit one, --color never for plain output, or --json for JSON output. Colors are enabled by default, including for captured output. The current rules and options are documented in the quality report guide <https://pre-commit-hooks.docs.ansys.com/version/stable/getting-started/pyansys-quality-report/index.html>_.

How to install

The following sections provide instructions for installing the ansys-pre-commit-hooks package in two installation modes: user and developer.

For users ^^^^^^^^^

Before installing the package, to ensure that you have the latest version of pip_, run this command:

.. code:: bash

python -m pip install -U pip

Then, to install the package, run this command:

.. code:: bash

python -m pip install ansys-pre-commit-hooks

For developers ^^^^^^^^^^^^^^

Installing the package in developer mode allows you to modify and enhance the source code.

Before contributing to the project, ensure that you are familiar with the PyAnsys Developer's Guide_.

For a developer installation, you must follow these steps:

. Clone the repository with this command:

.. code:: bash

  git clone https://github.com/ansys/pre-commit-hooks

. Create a fresh-clean Python environment and activate it with these commands:

.. code:: bash

  # Create a virtual environment
  python -m venv .venv

  # Activate it in a POSIX system
  source .venv/bin/activate

  # Activate it in Windows CMD environment
  .venv\Scripts\activate.bat

  # Activate it in Windows Powershell
  .venv\Scripts\Activate.ps1

. Ensure that you have the latest required build system tools by

running this command:

.. code:: bash

  python -m pip install -U pip flit tox twine

. Install the project in editable mode by running one of these commands:

.. code:: bash

  # Install the minimum requirements
  python -m pip install -e .

  # Install the minimum + tests requirements
  python -m pip install -e .[tests]

  # Install the minimum + doc requirements
  python -m pip install -e .[doc]

  # Install all requirements
  python -m pip install -e .[tests,doc]

. Verify your development installation by running this command:

.. code:: bash

  tox

How to test it

This project takes advantage of tox_. This tool automates common development tasks (similar to Makefile), but it is oriented towards Python development.

Using tox ^^^^^^^^^^^^^

While Makefile has rules, tox has environments. In fact, tox creates its own virtual environment so that anything being tested is isolated from the project to guarantee the project's integrity.

These environment commands are provided:

  • tox -e style: Checks for coding style quality.
  • tox -e py: Checks for unit tests.
  • tox -e py-coverage: Checks for unit testing and code coverage.
  • tox -e doc: Checks for successfully building the documentation.

Raw testing ^^^^^^^^^^^

If required, you can call ruff check --fix . and ruff format . with Ruff, or unit testing commands, such as pytest, from the command line. However, calling these commands does not guarantee that your project is being tested in an isolated environment, which is the reason why tools like tox exist.

A note on pre-commit ^^^^^^^^^^^^^^^^^^^^^^^^

The style checks take advantage of pre-commit_. Developers are not forced but encouraged to install this tool by running this command:

.. code:: bash

python -m pip install pre-commit && pre-commit install

Documentation

For building documentation, you can run the usual rules provided in the Sphinx_ Makefile with a command that is formatted like this:

.. code:: bash

make -C doc/ html && your_browser_name doc/html/index.html

However, the recommended way of checking documentation integrity is by running tox with a command that is formatted like this:

.. code:: bash

tox -e doc && your_browser_name .tox/doc_out/index.html

Distributing

If you would like to create either source or wheel files, install the building requirements and then execute the build module with these commands:

.. code:: bash

python -m pip install .
python -m build
python -m twine check dist/*

.. LINKS AND REFERENCES .. _Ruff: https://docs.astral.sh/ruff/ .. _pip: https://pypi.org/project/pip/ .. _pre-commit: https://pre-commit.com/ .. _PyAnsys Developer's Guide: https://dev.docs.pyansys.com/ .. _pytest: https://docs.pytest.org/en/stable/ .. _Sphinx: https://www.sphinx-doc.org/en/master/ .. _tox: https://tox.wiki/

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases ansys-pre-commit-hooks

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Frame 2085668439 (1)
Group 1261154229