Skip to content

Commit 6e82299

Browse files
author
Juan Orduz
authored
add pre-commit hooks (#75)
1 parent a8fc3cb commit 6e82299

File tree

9 files changed

+31
-7
lines changed

9 files changed

+31
-7
lines changed

.github/workflows/publish-to-test-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
with:
3636
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
3737
repository_url: https://test.pypi.org/legacy/
38-
38+
3939
- name: Publish distribution to PyPI
4040
if: startsWith(github.ref, 'refs/tags')
4141
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ jobs:
5555
with:
5656
env_vars: OS,PYTHON
5757
name: codecov-umbrella
58-
fail_ci_if_error: false
58+
fail_ci_if_error: false

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,3 +160,6 @@ cython_debug/
160160
# and can be added to the global gitignore or merged into this file. For a more nuclear
161161
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
162162
#.idea/
163+
164+
# vscode
165+
.vscode/

.pre-commit-config.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
repos:
2+
- repo: local
3+
hooks:
4+
- id: black
5+
name: black
6+
entry: black
7+
language: system
8+
types: [python]
9+
files: ^pymc_bart/
10+
- id: pylint
11+
name: pylint
12+
entry: pylint --rcfile=.pylintrc
13+
language: system
14+
types: [python]
15+
files: ^pymc_bart/
16+
- repo: https://github.com/pre-commit/pre-commit-hooks
17+
rev: v3.2.0
18+
hooks:
19+
- id: trailing-whitespace
20+
- id: end-of-file-fixer
21+
- id: check-yaml
22+
- id: check-added-large-files

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ disable=missing-docstring,
6868
bad-continuation,
6969
import-error,
7070
protected-access
71-
71+
7272

7373

7474
# Enable the message, report, category or checker with the given id(s). You can

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Bayesian Additive Regression Trees for Probabilistic programming with PyMC
33

44

5-
PyMC-BART extends [PyMC](https://github.com/pymc-devs/pymc) probabilistic programming framework to be able to define and solve models including a BART random variable. PyMC-BART also includes a few helpers function to aid with the interpretation of those models and perform variable selection.
5+
PyMC-BART extends [PyMC](https://github.com/pymc-devs/pymc) probabilistic programming framework to be able to define and solve models including a BART random variable. PyMC-BART also includes a few helpers function to aid with the interpretation of those models and perform variable selection.
66

77

88
## Installation

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ local:
2323
# Catch-all target: route all unknown targets to Sphinx using the new
2424
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
2525
%: Makefile
26-
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
26+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/api_reference.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,3 @@ methods in the current release of PyMC-BART.
1414

1515
.. automodule:: pymc_bart
1616
:members: BART, PGBART, plot_dependence, plot_variable_importance, predict
17-

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Overview
2323
============
2424
PyMC-BART extends `PyMC <https://github.com/pymc-devs/pymc>`_ probabilistic programming framework to be able to define
2525
and solve models including a BART random variable. PyMC-BART also includes a few helpers function to aid with the
26-
interpretation of those models and perform variable selection.
26+
interpretation of those models and perform variable selection.
2727

2828

2929
Installation

0 commit comments

Comments
 (0)