Skip to content

Commit

Permalink
Autoupdate pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
timmens committed Jun 23, 2024
1 parent 4149066 commit 5826912
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 20 deletions.
27 changes: 13 additions & 14 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ repos:
# - id: check-hooks-apply # Leave nbqa in here.
# - id: identity # Prints all files passed to pre-commits. Debugging.
- repo: https://github.com/lyz-code/yamlfix
rev: 1.13.0
rev: 1.16.0
hooks:
- id: yamlfix
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.6.0
hooks:
- id: check-added-large-files
args: [--maxkb=25]
Expand All @@ -33,14 +33,14 @@ repos:
- id: check-ast
- id: check-docstring-first
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.32.0
rev: v1.35.1
hooks:
- id: yamllint
- repo: https://github.com/psf/black
rev: 23.9.1
rev: 24.4.2
hooks:
- id: black
language_version: python3.11
language_version: python3.12
- repo: https://github.com/asottile/blacken-docs
rev: 1.16.0
hooks:
Expand All @@ -57,26 +57,25 @@ repos:
- '88'
- --blank
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.292
rev: v0.4.10
hooks:
- id: ruff
# args:
# - --verbose
- repo: https://github.com/kynan/nbstripout
rev: 0.6.1
rev: 0.7.1
hooks:
- id: nbstripout
args:
- --extra-keys
- metadata.kernelspec metadata.language_info.version metadata.vscode
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.7.0
rev: 1.8.5
hooks:
- id: nbqa-black
additional_dependencies: [black==23.9.1]
additional_dependencies: [black==24.4.2]
- id: nbqa-ruff
additional_dependencies: [ruff==v0.0.292]
args: ['--ignore=B018,T201']
additional_dependencies: [ruff==v0.4.10]
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.17
hooks:
Expand All @@ -92,16 +91,16 @@ repos:
args: [--wrap, '88']
files: (docs/.)
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
rev: v2.3.0
hooks:
- id: codespell
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v2.2.0
rev: v2.5.0
hooks:
- id: setup-cfg-fmt
# R specific hooks: https://github.com/lorenzwalthert/precommit
- repo: https://github.com/lorenzwalthert/precommit
rev: v0.3.2
rev: v0.4.2
hooks:
- id: style-files
args: [--style_pkg=styler, --style_fun=tidyverse_style]
Expand Down
1 change: 1 addition & 0 deletions paper/task_paper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tasks for compiling the paper and presentation(s)."""

import shutil

import pytask
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ url = https://github.com/OpenSourceEconomics/econ-project-templates
author = Hans-Martin von Gaudecker
author_email = hmgaudecker@uni-bonn.de
license = MIT
license_file = LICENSE
license_files = LICENSE
platforms = unix, linux, osx, cygwin, win32
classifiers =
Intended Audience :: Science/Research
Expand Down
1 change: 1 addition & 0 deletions src/example_project/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""All the general configuration of the project."""

from pathlib import Path

SRC = Path(__file__).parent.resolve()
Expand Down
10 changes: 5 additions & 5 deletions src/example_project/final/plot_regression.r
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ plot_regression_by_age <- function(data, data_info, predictions, group) {
fig <- plotly::add_lines(
fig,
data = plot_data,
x = ~age,
y = ~prediction,
color = ~ eval(group)
x = ~age,
y = ~prediction,
color = ~ eval(group)
)
fig <- plotly::add_markers(
fig,
data = marker_data,
x = ~age,
y = ~outcome,
x = ~age,
y = ~outcome,
marker = list(color = "black", opacity = 0.1),
name = "Data"
)
Expand Down

0 comments on commit 5826912

Please sign in to comment.