From 1f2197c946c8524b5af4bdfe28eb677452ec6e94 Mon Sep 17 00:00:00 2001 From: Janosh Riebesell Date: Mon, 30 Oct 2023 07:01:20 -0700 Subject: [PATCH] pyproject.toml down-pin pymatgen>=2023.10.11 drop black for ruff-format codespell check filenames --- .pre-commit-config.yaml | 9 +++------ pyproject.toml | 3 +-- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f4307d2f..5ede3515 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,15 +4,11 @@ default_install_hook_types: [pre-commit, commit-msg] repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.1 + rev: v0.1.3 hooks: - id: ruff args: [--fix] - - - repo: https://github.com/psf/black - rev: 23.10.0 - hooks: - - id: black-jupyter + - id: ruff-format - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.5.0 @@ -31,6 +27,7 @@ repos: hooks: - id: codespell stages: [commit, commit-msg] + args: [--check-filenames] - repo: https://github.com/kynan/nbstripout rev: 0.6.1 diff --git a/pyproject.toml b/pyproject.toml index 8113797b..15aeb786 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,7 @@ dependencies = [ "cython>=0.29.26", "numpy>=1.21.6", "nvidia-ml-py3>=7.352.0", - "pymatgen", + "pymatgen>=2023.10.11", "torch>=1.11.0", ] classifiers = [ @@ -49,7 +49,6 @@ find = { include = ["chgnet*"], exclude = ["tests", "tests*"] } [tool.ruff] target-version = "py39" -line-length = 95 include = ["**/pyproject.toml", "*.ipynb", "*.py", "*.pyi"] select = [ "B", # flake8-bugbear