Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ci:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: end-of-file-fixer
exclude: ^.idea/
Expand Down Expand Up @@ -35,18 +35,18 @@ repos:
- --offset
- '2'
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.0
rev: v0.5.1
hooks:
- id: ruff
args:
- --fix
exclude: tests/input/
- repo: https://github.com/psf/black
rev: 24.2.0
rev: 24.4.2
hooks:
- id: black
- repo: https://github.com/asottile/blacken-docs
rev: 1.16.0
rev: 1.18.0
hooks:
- id: blacken-docs
additional_dependencies:
Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ requirements/dev.txt: .venv requirements/dev.in
--quiet --generate-hashes --max-rounds=20 --strip-extras \
--resolver=backtracking \
--output-file requirements/dev.txt \
pyproject.toml \
requirements/dev.in

# upgrades the dependencies to their latest/matching version
Expand All @@ -26,6 +27,7 @@ upgrade: .venv
--upgrade \
--resolver=backtracking \
--output-file requirements/dev.txt \
pyproject.toml \
requirements/dev.in


Expand Down
11 changes: 6 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,14 @@ check_untyped_defs = true
addopts = "--verbose --cov-config=pyproject.toml --cov-report=html"

[tool.ruff]
fix = true
# ruff is less lenient than pylint and does not make any exceptions
# (for docstrings, strings and comments in particular).
line-length = 100

target-version = "py38"

[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # pyflakes
Expand All @@ -156,12 +160,10 @@ ignore = [
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
]

target-version = "py38"

[tool.ruff.pydocstyle]
[tool.ruff.lint.pydocstyle]
convention = "google"

[tool.ruff.extend-per-file-ignores]
[tool.ruff.lint.extend-per-file-ignores]
"tests/**/test_*.py" = [
"S101", # pytest works with `assert`s
"FBT", # Don't care about booleans as positional arguments in tests, e.g. via @pytest.mark.parametrize()
Expand All @@ -178,7 +180,6 @@ convention = "google"
]

[tool.pylint]

py-version = "3.8"

ignore-paths="tests/input" # Ignore test inputs
Expand Down
1 change: 1 addition & 0 deletions requirements/dev.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ wheel
pre-commit

# used to run tests
tox
pytest
pytest-cov
Loading