Skip to content

Commit

Permalink
Avoid yesqa weirdness
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Aug 15, 2023
1 parent 1e751ba commit 27874f6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
12 changes: 4 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,11 @@ repos:
- id: isort
files: \.py$

- repo: https://github.com/asottile/yesqa
rev: v1.5.0
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.284
hooks:
- id: yesqa

- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
- id: ruff
args: [--fix, --exit-non-zero-on-fix]

- repo: https://github.com/econchick/interrogate
rev: 1.5.0
Expand Down
12 changes: 10 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ dev = ["attrs[tests]", "pre-commit"]
[project.urls]
Documentation = "https://www.attrs.org/"
Changelog = "https://www.attrs.org/en/stable/changelog.html"
"Bug Tracker" = "https://github.com/python-attrs/attrs/issues"
"Source Code" = "https://github.com/python-attrs/attrs"
GitHub = "https://github.com/python-attrs/attrs"
Funding = "https://github.com/sponsors/hynek"
Tidelift = "https://tidelift.com/subscription/pkg/pypi-attrs?utm_source=pypi-attrs&utm_medium=pypi"

Expand Down Expand Up @@ -157,6 +156,15 @@ whitelist-regex = ["test_.*"]
toplevel = ["attr", "attrs"]


[tool.ruff]
src = ["src", "tests", "conftest.py", "docs"]

[tool.ruff.per-file-ignores]
"tests/typing_example.py" = [
"E741", # ambiguous variable names don't matter in type checks
]


[tool.towncrier]
name = "attrs"
directory = "changelog.d"
Expand Down

0 comments on commit 27874f6

Please sign in to comment.