diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 09bfb1d52a..d802c03f0e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -71,7 +71,7 @@ repos: args: ["--print-width=140"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.9 + rev: v0.15.20 hooks: - id: ruff args: ["--fix"] @@ -79,7 +79,7 @@ repos: - id: ruff - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.21.0 + rev: v2.25.1 hooks: - id: pyproject-fmt additional_dependencies: [tox] diff --git a/pyproject.toml b/pyproject.toml index d13505c47b..ab2c8b8ad8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -86,15 +86,15 @@ urls.homepage = "https://github.com/lightning-AI/litgpt" scripts.litgpt = "litgpt.__main__:main" [tool.setuptools] -package-data.litgpt = [ - "LICENSE.md", - "README.md", -] packages.find.include = [ "litgpt", "litgpt.*", ] packages.find.exclude = [] +package-data.litgpt = [ + "LICENSE.md", + "README.md", +] [tool.ruff] target-version = "py310" @@ -111,12 +111,6 @@ lint.select = [ "UP", # see: https://docs.astral.sh/ruff/rules/#pyupgrade-up "W", # see: https://pypi.org/project/pycodestyle ] -# extend-select = [ -# "C4", # see: https://pypi.org/project/flake8-comprehensions -# "PT", # see: https://pypi.org/project/flake8-pytest-style -# "RET", # see: https://pypi.org/project/flake8-return -# "SIM", # see: https://pypi.org/project/flake8-simplify -# ] lint.ignore = [ "E501", # Line too long "E731", # Do not assign a lambda expression, use a def @@ -125,14 +119,20 @@ lint.ignore = [ ] # Use Google-style docstrings. lint.pydocstyle.convention = "google" +# extend-select = [ +# "C4", # see: https://pypi.org/project/flake8-comprehensions +# "PT", # see: https://pypi.org/project/flake8-pytest-style +# "RET", # see: https://pypi.org/project/flake8-return +# "SIM", # see: https://pypi.org/project/flake8-simplify +# ] [tool.codespell] -# skip = '*.py' -quiet-level = 3 ignore-words-list = """ tral, \ Rockerfeller """ +# skip = "*.py" +quiet-level = 3 [tool.pytest] ini_options.addopts = [