From 86bafecf278c908e249f5b2c70fc95410ef7b5b8 Mon Sep 17 00:00:00 2001 From: Nayane Fernandes <143632290+ansnfernand@users.noreply.github.com> Date: Fri, 2 Aug 2024 10:41:10 +0200 Subject: [PATCH] Update pre-commit --- .pre-commit-config.yaml | 14 +++++++------- doc/source/conf.py | 1 + pyproject.toml | 1 - src/ansys/sherlock/core/analysis.py | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7c95941e8..2df798264 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,29 +1,29 @@ repos: - repo: https://github.com/psf/black - rev: 23.3.0 # IF VERSION CHANGES --> MODIFY "blacken-docs" MANUALLY AS WELL!! + rev: 24.4.2 # IF VERSION CHANGES --> MODIFY "blacken-docs" MANUALLY AS WELL!! hooks: - id: black - repo: https://github.com/adamchainz/blacken-docs - rev: 1.13.0 + rev: 1.18.0 hooks: - id: blacken-docs additional_dependencies: [black==23.3.0] - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort - repo: https://github.com/PyCQA/flake8 - rev: 6.0.0 + rev: 7.1.0 hooks: - id: flake8 args: [src, tests, doc] - repo: https://github.com/codespell-project/codespell - rev: v2.2.4 + rev: v2.3.0 hooks: - id: codespell args: ["--toml", "pyproject.toml", "--ignore-words", @@ -38,7 +38,7 @@ repos: files: ^src/ - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.6.0 hooks: - id: check-merge-conflict - id: debug-statements @@ -47,6 +47,6 @@ repos: # this validates our github workflow files - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.22.0 + rev: 0.29.1 hooks: - id: check-github-workflows diff --git a/doc/source/conf.py b/doc/source/conf.py index e6f64a93f..6125e484e 100755 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -1,4 +1,5 @@ """Sphinx documentation configuration file.""" + from datetime import datetime import os diff --git a/pyproject.toml b/pyproject.toml index 30bcda885..bf1d94316 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,7 +62,6 @@ line-length = 100 profile = "black" force_sort_within_sections = true line_length = 100 -default_section = "THIRDPARTY" src_paths = ["doc", "src", "tests"] [tool.coverage.run] diff --git a/src/ansys/sherlock/core/analysis.py b/src/ansys/sherlock/core/analysis.py index af3b9facb..dc84dc773 100644 --- a/src/ansys/sherlock/core/analysis.py +++ b/src/ansys/sherlock/core/analysis.py @@ -1339,7 +1339,7 @@ def update_natural_frequency_props( cca_name : str Name of the CCA. natural_freq_count: int - Natural frequecy result count. + Natural frequency result count. natural_freq_min: float, optional Minimum frequency. This parameter is for NX Nastran analysis only. natural_freq_min_units: str, optional