Skip to content

Commit

Permalink
Merge pull request #92 from pyoceans/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
ocefpaf committed May 21, 2024
2 parents a5ae117 + 2e22470 commit e45bb0f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
32 changes: 14 additions & 18 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"

Expand Down

0 comments on commit e45bb0f

Please sign in to comment.