Skip to content

Commit 6acc0ed

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6a78ded commit 6acc0ed

File tree

8 files changed

+462
-477
lines changed

8 files changed

+462
-477
lines changed

.pre-commit-config.yaml

+9-22
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ repos:
1313
rev: v4.6.0
1414
hooks:
1515
- id: check-added-large-files
16-
args:
17-
- --maxkb=25
16+
args: [--maxkb=25]
1817
- id: check-case-conflict
1918
- id: check-merge-conflict
2019
- id: check-vcs-permalinks
@@ -23,16 +22,13 @@ repos:
2322
- id: debug-statements
2423
- id: end-of-file-fixer
2524
- id: fix-byte-order-marker
26-
types:
27-
- text
25+
types: [text]
2826
- id: forbid-submodules
2927
- id: mixed-line-ending
30-
args:
31-
- --fix=lf
28+
args: [--fix=lf]
3229
description: Forces to replace line ending by the UNIX 'lf' character.
3330
- id: name-tests-test
34-
args:
35-
- --pytest-test-first
31+
args: [--pytest-test-first]
3632
- id: trailing-whitespace
3733
- id: check-ast
3834
- id: check-docstring-first
@@ -78,30 +74,21 @@ repos:
7874
rev: 0.7.17
7975
hooks:
8076
- id: mdformat
81-
additional_dependencies:
82-
- mdformat-gfm
83-
- mdformat-black
84-
args:
85-
- --wrap
86-
- '88'
77+
additional_dependencies: [mdformat-gfm, mdformat-black]
78+
args: [--wrap, '88']
8779
files: (README\.md)
8880
- repo: https://github.com/executablebooks/mdformat
8981
rev: 0.7.17
9082
hooks:
9183
- id: mdformat
92-
additional_dependencies:
93-
- mdformat-myst
94-
- mdformat-black
95-
args:
96-
- --wrap
97-
- '88'
84+
additional_dependencies: [mdformat-myst, mdformat-black]
85+
args: [--wrap, '88']
9886
files: (docs/.)
9987
- repo: https://github.com/codespell-project/codespell
10088
rev: v2.3.0
10189
hooks:
10290
- id: codespell
103-
args:
104-
- --skip="**.ipynb"
91+
args: [--skip="**.ipynb"]
10592
- repo: https://github.com/asottile/setup-cfg-fmt
10693
rev: v2.5.0
10794
hooks:

environment.yml

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1+
---
12
# Manual steps after creating environment:
23
# - switch to improve_estimation_table branch in estimagic source
34
# - pip install -e ../relative/path/to/estimagic
4-
55
name: estimagic_tables_examples
6-
channels:
7-
- conda-forge
8-
- nodefaults
9-
6+
channels: [conda-forge, nodefaults]
107
dependencies:
118
- conda-lock
129
- ipykernel
@@ -24,6 +21,4 @@ dependencies:
2421
- setuptools_scm
2522
- statsmodels
2623
- toml
27-
- pip:
28-
- -e .
29-
- kaleido
24+
- pip: [-e ., kaleido]

paper/task_paper.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
"""Tasks for compiling the paper and presentation(s)."""
2+
23
import shutil
34

45
import pytask
56
from pytask_latex import compilation_steps as cs
7+
68
from estimagic_tables_examples.config import BLD, PAPER_DIR
79

810
documents = ["estimagic_tables_examples"]

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ url = https://github.com/OpenSourceEconomics/estimagic_tables_examples
77
author = Christian Zimpelmann
88
author_email = [email protected]
99
license = MIT
10-
license_file = LICENSE
10+
license_files = LICENSE
1111
platforms = unix, linux, osx, cygwin, win32
1212
classifiers =
1313
Intended Audience :: Science/Research

src/estimagic_tables_examples/config.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""All the general configuration of the project."""
2+
23
from pathlib import Path
34

45
SRC = Path(__file__).parent.resolve()

src/estimagic_tables_examples/create_tables/task_descriptives_table.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def task_descriptives_table(
6262
)
6363

6464
# formatting
65-
# ToDo: Provide (part of) this function in estimagic?
65+
# TODO: Provide (part of) this function in estimagic?
6666
descriptive_stats = apply_custom_number_format(
6767
descriptive_stats,
6868
int_cols=["N subj."],

src/estimagic_tables_examples/create_tables/task_two_step_statsmodels_simple.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ def task_two_step_table(
3535
models,
3636
return_type="render_inputs",
3737
custom_param_names={"Intercept": "Constant", "Age": "Age of respondent"},
38-
# ToDo: A bit confusing why I need to use custom_col_groups instead of
39-
# ToDo: custom_col_names here.
38+
# TODO: A bit confusing why I need to use custom_col_groups instead of
39+
# TODO: custom_col_names here.
4040
custom_col_groups={"target": "Output"},
4141
)
4242
# Remove rows from footer.

src/estimagic_tables_examples/original_data/diabetes.csv

+443-443
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)