Skip to content

Commit

Permalink
Merge pull request #270 from python-windrose/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 Jun 4, 2024
2 parents 7a0e07b + f1adc4b commit 9507d62
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 20 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ repos:
- id: blackdoc

- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
rev: v2.3.0
hooks:
- id: codespell
exclude: >
Expand All @@ -51,12 +51,12 @@ repos:
- id: add-trailing-comma

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.3
rev: v0.4.7
hooks:
- id: ruff

- repo: https://github.com/tox-dev/pyproject-fmt
rev: 1.8.0
rev: 2.1.3
hooks:
- id: pyproject-fmt

Expand Down
37 changes: 20 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,31 @@
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=41.2",
"setuptools_scm",
"setuptools-scm",
"wheel",
]

[tool.ruff]
select = [
"A", # flake8-builtins
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"F", # flakes
"I", # import sorting
"T20", # flake8-print
"UP", # upgrade
]
target-version = "py38"
line-length = 79

[tool.ruff.per-file-ignores]
"docs/conf.py" = [
select = [
"A", # flake8-builtins
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"F", # flakes
"I", # import sorting
"T20", # flake8-print
"UP", # upgrade
]
per-file-ignores."docs/conf.py" = [
"A001",
]
"samples/example_by.py" = [
"T201",
per-file-ignores."samples/example_by.py" = [
"T201",
]
"samples/example_pdf_by.py" = [
"T201",
per-file-ignores."samples/example_pdf_by.py" = [
"T201",
]

[tool.interrogate]
Expand All @@ -38,7 +37,11 @@ ignore-semiprivate = false
ignore-private = false
ignore-module = false
fail-under = 70
exclude = ["setup.py", "docs", "tests"]
exclude = [
"setup.py",
"docs",
"tests",
]
verbose = 1
quiet = false
color = true

0 comments on commit 9507d62

Please sign in to comment.