Skip to content

Commit

Permalink
.pre-commit-config.yaml - autoupdate and add a few more hooks
Browse files Browse the repository at this point in the history
Add these hooks:
* check-xml
* check-symlinks: checks for symlinks which do not point to anything
* destroyed-symlinks:  detects symlinks which are changed to regular
  files with a content of a path which that symlink was pointing to.
* check-executables-have-shebangs:  ensures that (non-binary)
  executables have a shebang.
  • Loading branch information
Allen Winter committed Dec 14, 2023
1 parent 7e4b008 commit d87886c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@ repos:
- id: check-yaml
args: [--allow-multiple-documents]
- id: check-json
- id: check-symlinks
- id: destroyed-symlinks
- id: check-executables-have-shebangs
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v17.0.3
rev: v17.0.6
hooks:
- id: clang-format
- repo: https://github.com/PyCQA/pylint
rev: v3.0.1
rev: v3.0.3
hooks:
- id: pylint
exclude: ^(.cmake-format.py|conan/conanfile.py|scripts/genignore.py)
Expand Down
2 changes: 1 addition & 1 deletion src/KDChart/KDChartAttributesModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ QVariant AttributesModel::defaultHeaderData(int section, Qt::Orientation orienta
switch (role) {
case Qt::DisplayRole:
// TODO for KDChart 3.0: return QString::number( dataset + 1 );
return QString{QLatin1String(orientation == Qt::Vertical ? "Series " : "Item ") + QString::number(dataset)};
return QString {QLatin1String(orientation == Qt::Vertical ? "Series " : "Item ") + QString::number(dataset)};
case KDChart::DatasetBrushRole:
return d->palette.getBrush(dataset);
case KDChart::DatasetPenRole:
Expand Down

0 comments on commit d87886c

Please sign in to comment.