From ebc87cacea2b6463c2c964a8576f2450b0b2c8ce Mon Sep 17 00:00:00 2001 From: Kurt McKee Date: Fri, 23 Jan 2026 06:41:15 -0600 Subject: [PATCH] Remove pre-commit from nox for lack of a config file --- .github/copilot-instructions.md | 5 ----- noxfile.py | 16 ++-------------- 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 125812717..18d2cb5d4 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -123,12 +123,7 @@ python -m GSASII ### Linting and Code Quality ```bash # Using nox (recommended) -python -m nox -s lint # Pre-commit hooks and formatting python -m nox -s pylint # Static code analysis - -# Manual linting -python -m pip install pre-commit -pre-commit run --all-files ``` ### Documentation diff --git a/noxfile.py b/noxfile.py index 9f81103b3..f643a0ef1 100644 --- a/noxfile.py +++ b/noxfile.py @@ -8,18 +8,7 @@ DIR = Path(__file__).parent.resolve() -nox.options.sessions = ["lint", "pylint", "tests"] - - -@nox.session -def lint(session: nox.Session) -> None: - """ - Run the linter. - """ - session.install("pre-commit") - session.run( - "pre-commit", "run", "--all-files", "--show-diff-on-failure", *session.posargs - ) +nox.options.sessions = ["pylint", "tests"] @nox.session @@ -27,8 +16,7 @@ def pylint(session: nox.Session) -> None: """ Run PyLint. """ - # This needs to be installed into the package environment, and is slower - # than a pre-commit check + # This needs to be installed into the package environment session.install(".", "pylint") session.run("pylint", "gsas_ii", *session.posargs)