diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 12581271..18d2cb5d 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 9f81103b..f643a0ef 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)