diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6b48392..8b469c5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,7 +23,7 @@ repos: - id: ruff - repo: https://github.com/tox-dev/pyproject-fmt - rev: "2.0.4" + rev: "2.1.1" hooks: - id: pyproject-fmt diff --git a/pyproject.toml b/pyproject.toml index fd44d88..ea7fd96 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,23 +51,28 @@ write_to_template = "__version__ = '{version}'" [tool.ruff] -lint.select = [ - "E", # pycodecstyle - "W", # pydocstyle - "F", # flakes - "I", # import sorting -] +line-length = 100 exclude = [ ".git", - "docs/", ".git/", "__pycache__", "dist", + "docs/", ] -line-length = 100 +lint.select = [ + "E", # pycodecstyle + "F", # flakes + "I", # import sorting + "W", # pydocstyle +] +lint.per-file-ignores."pocean/tests/*.py" = [ + "F403", + "F405", +] +lint.isort.order-by-type = false lint.ignore = [ #"E265", #"E221", @@ -79,19 +84,10 @@ lint.ignore = [ #"E251", #"W504", "E501", - "W293", "W291", + "W293", ] -[tool.ruff.lint.per-file-ignores] -"pocean/tests/*.py" = [ - "F403", - "F405", -] - -[tool.ruff.lint.isort] -order-by-type = false - [tool.pytest.ini_options] addopts = "-s -rxs -v"