Skip to content

Commit 9814da9

Browse files
OriolAbrilPiyushPanwarFST
authored andcommitted
Adding the plot_bf() for bayes_factor
improve plot_posterior and add tests for it add minimal docstrings add init to test folder update plot_posterior add some docs add docs and implement some feedback improve api docs ignore mystnb warning add plot_trace (arviz-devs#1) * add trace plot * use convert_to_datatree in tests * fix linters * Add to draft API docs --------- Co-authored-by: Oriol Abril-Pla <[email protected]> rename plot_posterior and small improvements fix test rename source file add style add styles update intro plotcollection update intro plotcollection add ecdf to distplot draft trace_dens draft trace_dens draft Update src/arviz_plots/plots/tracedensplot.py Co-authored-by: Oriol Abril-Pla <[email protected]> Update src/arviz_plots/plots/tracedensplot.py Co-authored-by: Oriol Abril-Pla <[email protected]> Update src/arviz_plots/plots/utils.py Co-authored-by: Oriol Abril-Pla <[email protected]> Update src/arviz_plots/plots/utils.py Co-authored-by: Oriol Abril-Pla <[email protected]> fix missing argument try fixing docs fix docs Issue was due to wrong handling of try except. To avoid depending on matplotlib, it is imported within a try except to register the colormaps and styles, but then it is deleted from the namespace which was happening outside the try except and so arviz_plots failed to import on envs without matplotlib rename dens -> dist update api index Add legend method to PlotCollection and improve docs (arviz-devs#32) * start work on legend and improve docs * add anchor placeholder * work on docs * add backend functions to docs and improve plot_collection docs * add missing files * extend api docs * first attempt at bokeh legend * make no-duplication of backend api docs work * run pre-commit * fix and docs on generate_aes_dt * doc improvements * some doc extensions * improve plot_dist docs * fix bokeh legend generation * add warning to legend method Add plot_forest and tests (arviz-devs#34) * some improvements to PlotCollection * add classmethod tests * add more tests * add divergences to plot_trace * extend tests * add divergence data to test_plots * add plot_forest draft For everything to work, the following features were added to: * support for "__variable__" in aesthetics * default values for common aesthetics * support for dict of datatree input -> multiple models aligned within the same plot * add labels to plot_forest still some backend elements missing for bokeh * further improvements to plot_forest * invert y aes to preserve order top-down * improvements to aes_map defaults and shading * attempt support for InferenceData inputs * plot_dist support for multiple models and docs * update dependencies * add more tests * raise error on wrong use of combined * better support for aesthetics in labels elements Add neutral element concept to aes generation (arviz-devs#35) * First try at neutral element * Fix syntax * Try fixing syntax and improve readability * Fix shade aes default * update and extend tests * update aes_dt to aes_dict conversion * run tests with coverage on CI Fixes and improvements to plot_trace_dist (arviz-devs#36) * very rough draft to fix aesthetic mapping defaults * fix plot_trace_dist and add tests * use neutral element for combined elements * add example to plot_trace Extend and rerun tutorials (arviz-devs#38) * add xlabel to plot_trace * rerun plots_intro notebook * update leftover arviz-base references * write use plotcollection notebook and some improvements * fix scale_fig_size defaults * switch docs theme, default to light version PlotCollection coords attribute for better composability (arviz-devs#39) * prepare reuse of plotting functions * call plot_trace within plot_trace_dist * use plot_dist in plot_trace_dist * add contributing section to docs * fix doc warnings * fix dark-light issue with backend logos * write new_plot docs * improve neutral element behaviour and docs * fix a couple cross-references add none backend and hypothesis tests (arviz-devs#41) * add none backend and hypothesis tests * add more tests with hypothesis and scheduled actions * fix hypothesis yaml syntax * use unset as default for none backend so keys are filtered * add branch reference to issue add codecov token (arviz-devs#42) change action to create issue/comment (arviz-devs#44) fix hypothesis action (arviz-devs#46) * add condition to run if testing failed * try fixing branch name * try adding a more specific link to action logs * switch pytest-store_date command order Prepare initial pre-release (arviz-devs#54) * add links between sub-libraries * bump version * use accessor in plot_forest docstring * bump version and configure publishing Fix issue in plot_dist_trace (arviz-devs#64) don't try to rename artists if they haven't been drawn Adding Ridgeplot to Arviz-Plots (arviz-devs#57) * First commit for adding ridgeplot * Updated `plot_ridge` with 'face' and 'edge' artists now and updated visual elements `line_xy` and `fill_between_y` * Modified density calculation pre-check in plot_ridge and modified visual element functions * Added hypothesis tests for plot_ridge * Added ridge_height as a top level arg and other modifications * final changes --------- Co-authored-by: Oriol (ProDesk) <[email protected]> Removed unused 'extra_data' arg (arviz-devs#73) Add plotly backend and gallery prototype (arviz-devs#61) * plotly backend proof of concept * be more consistend with kwarg handling and defaults * restructure backend dependencies and install process * fix typo in bokeh's remove_ticks * complete plotly backend * gallery prototype * extend docs and tests * add plotly equivalences to glossary * more sensible defaults and kwarg handling * automate gallery generation via sphinx extension * figsize and gallery related fixes * full fledged gallery * remove unused references * update gallery generator * initial plotly support for styles * fix gallery generator processing add pp-obs comparison with plot_forest example (arviz-devs#74) * add pp-obs comparison with plot_forest example * improve example expand style functionality (arviz-devs#75) * expand style functionality * add feedback * Apply suggestions from code review Co-authored-by: Oriol Abril-Pla <[email protected]> --------- Co-authored-by: Oriol Abril-Pla <[email protected]> Improve backend documentation and get plot_forest to follow best practices (arviz-devs#78) * start working on best practices and backend docs * use none backend as documentation base * add images for plotly and none * adapt minigallery directive * use none backend instead of arviz_plots.backend * gallery references and plot sizing improvements * fix typo * pylint * wait until using sphinx 8 * pseudo fix for empty minigallery * modify slightly auto sizing * Apply suggestions from code review Co-authored-by: Osvaldo A Martin <[email protected]> * add see also --------- Co-authored-by: Osvaldo A Martin <[email protected]> Histogram support addition to distplot.py (arviz-devs#47) * WIP histogram addition to distplot.py * Added histogram computing if kind='hist' * reformatted histogram dataarrays into a dataset * Modified histogram dataset plot_axis coords to 'x' and 'y' and added visual element function, backend interface and matplotlib backend function for plotting histogram * Allowing xarray_einstats.histogram() function to determine default number of bins * Modified histogram data restructuring function to include bin edge data and modified docstrings for hist backend interface * added plot_dist test parametrizations for kind=kde, hist, ecdf, adjusted hypothesis time limit to 2 seconds and modified backend hist plotting function * added width to histogram plotting, removed print statements from previous commits and updated restructure_hist_data() docstring * switched histogram computation to arviz stats, modified plot_hist visual element slightly for new returned hist density data structure * added 'density=True' to normalize histogram heights and removed axis by default for histograms * added Bokeh backend for hist visual element and removed ecdf parametrization from test_plot_dist_models * updated docstring, added 'alpha' argument to the 'hist' backend plotting functions, renamed 'plot_hist' to 'hist', modified `remove_axis` logic slightly and set density=True as default in stats_kwargs * Added 'hist' to visuals.rst * deactivate tests for hist kind and multiple models It needs a fix in arviz-stats to work * removed restructure_dist and glyph default artist kwarg in bokeh * updated hist backend interface and matplotlib hist backend function with updates fromrootogram plot * plotly hist and plot_dist improvements --------- Co-authored-by: Oriol Abril-Pla <[email protected]> Add plot_compare (arviz-devs#77) * add plot_compare * directly use plot_backend * add new kwargs * use fill_between_y * docs * remove commented code * use plot_kwargs * use plotcollection * use plotcollection * alow disabling elements * pass pc_kwargs to plotcollection * try to fix example in gallery * add missing import * Update gallery_generator.py * Improve show method for plotcollection * fix 1x1 grid generation in plotly * fix plotly 1x1 plots * add basic test * fix tests * isort * remove redundant array conversion --------- Co-authored-by: Oriol Abril-Pla <[email protected]> rework styles (arviz-devs#88) * rework color palletes * update plotly clean template fix link to github (arviz-devs#91) Add ESS Plot (arviz-devs#58) * First commit for essplot and scatter_xy visual element * update for ess plot and addition of 'x' aesthetic for 'model' dim * addition of quantile plot and updated x aesthetic mapping * Added rugplot to essplot * updates to essplot * fixed default value for arg 'extra_methods' * modified scatter_xy visual element to take into account _process_da_x_y update * Added color/linestyles aesthetics and simplified min_ess plotting * Added annotate_xy visual element, applied to essplot for extra_methods * visual element vertical alignment logic modification and arviz-stats compute_ranks addition attempt * added docs for essplot * tests for essplot * added scatter_xy to visuals.rst * added rug=True to example gallery plot_ess_local * fixes for rugplot issue and hypothesis test failures * shifted mean_ess, sd_ess computing to before plot_kwargs check+artist plotting logic and modified hypothesis tests * Updated plot_ess and tests * updated .toml file for arviz-stats dependency * Modified figsize to more of a plot_forest approach, fixed order of plots in plots.rst and expanded max limit for test methods in testplots.py in .pylintrc * Updated plot_ess docstring * Switched from .grid to .wrap, removed unused figsize coeffs, disabled pylint warning on testplots.py * final fixes now only waiting for us to figure out behaviour and scope in arviz-stats and xarray-einstats * update pyproject requirements * pylint --------- Co-authored-by: Oriol (ProDesk) <[email protected]> fix warning (arviz-devs#99) Adding Plot ESS Evolution (arviz-devs#71) * Initial ess evolution plot updated plot_ess_evolution including a common ess_dataset computing func added mean and sd annotations like essplot docs and example gallery for plot_ess_evolution updated verticalalign logic for mean/sd and correct (although overlaid and not flattened yet) rug is now displayed removed rug plot added tests updated scatter_xy func to plot_ess version fixed docstring altered store_artist for xlabel, ylabel and modified hypothesis tests shifted mean_ess, sd_edd computing to before plot_kwargs check+artist plotting logic updated docstring, added figsizing and set vertical_align for mean and sd text kwargs as setdefault removed 'rankdata' branch of arviz-stats from dependencies docstring typo fix gallery-generator updated for documentation building * remove visual duplicated when rebasing --------- Co-authored-by: Oriol (ProDesk) <[email protected]> Add plot_psense_dist (arviz-devs#93) * Add plot_psense_dist * Update src/arviz_plots/plots/psensedistplot.py Co-authored-by: Oriol Abril-Pla <[email protected]> * Update src/arviz_plots/plots/psensedistplot.py Co-authored-by: Oriol Abril-Pla <[email protected]> * concat da and simplify logic * set sample_dims to sample * refactor * minor fixes and update pyproject to install from GH * support sample_dims argument and all backends * add minigallery to docstring * tweak example * ensure pointinterval only plot does not have yticks * add initial test for psense plot * add test and example * fix test * fix docstring * rename __group__ --------- Co-authored-by: Oriol Abril-Pla <[email protected]> pin datatree and prepare release (arviz-devs#103) * pin datatree and prepare release * update naming for hist_dim to match arviz-stats install arviz-base/stats from github (arviz-devs#104) move out new_ds to arviz-stats (arviz-devs#102) Bump codecov/codecov-action from 4 to 5 (arviz-devs#107) Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4 to 5. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](codecov/codecov-action@v4...v5) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> update version, dependencies and CI (arviz-devs#110) * update version, dependencies and CI * skip 3.13 until numba release * update rtd env * ignore line too long in gallery template string Use DataTree class from xarray (arviz-devs#111) * start work for xarray datatree compatibility * use datatree from xarray * fix docs * remove unused import Update pyproject.toml (arviz-devs#113) Add energy plot (arviz-devs#108) * add energy plot * remove __variable__, add example * hardcode sampler_dims * use legend only with matplotlib Add plot for distribution of convergence diagnostics (arviz-devs#105) * Add plot for distribution of convergence diagnostics * add ref_line and methods for r-hat * fix docstring * rename, add example * update gallery example * use rhat instead of rhat_rank * update sphinx.configuration key * update sphinx.configuration key * add vline/hline. Co-authored-by: Oriol Abril-Pla <[email protected]> * fix test * fix docstring * fix docstring --------- Co-authored-by: Oriol Abril-Pla <[email protected]> Add separated prior and likelihood groups (arviz-devs#117) * Add separated prior and likelihood groups * upper bound for plotly Add psense_quantities plot (arviz-devs#119) * add psense_quantities plot * remove comment * fix conflicting dimension * update docts * fix color * fix ls * split quantities * fix docstring rename arviz-clean to arviz-variat (arviz-devs#120) rename arviz-clean to arviz-variat add cetrino and vibrant styles to plotly (arviz-devs#121) psense: fix facetting and add xlabel (arviz-devs#123) * fix facetting * add x-label Add summary dictionary arguments (arviz-devs#125) * add summary dictionary arguments * fix spelling plotly: change format of title update in backend (arviz-devs#124) * plotly: change format of title update in backend * update the pyproject.toml file to restrict lower bound of plotly version to 6 Update glossary.md (arviz-devs#126) Add PAV-adjusted calibration plot (arviz-devs#127) * draft pava ppc * add pava-adjusted calibration plot * use dt * fix var name upper bound plotly (arviz-devs#128) use isotonic function that work with datatrees (arviz-devs#131) add reference, fix xlabel (arviz-devs#132) Fix bug when setting some plot_kwargs to false (arviz-devs#134) * fix bug setting when setting some plot_kwargs to false * remove references Add citations (arviz-devs#135) * add citations * reformat citations * fix indentation * fix links * add reference file use <6 version of plotly for documentation and use latest for other purposes (arviz-devs#136) * temporary fix for plotly-plot-rendering-on-webpage * include plotly also in readthedocs fix see algo pava gallery (arviz-devs#137) Add plot_ppc_dist (arviz-devs#138) * add plot_ppc_dist * remove comments * add test and small fixes * fix typo Add warning message for discrete data (arviz-devs#139) * add warning message for discrete data * do not fail on warnings rename plot_pava and minor fixes (arviz-devs#140) fix excesive margins (arviz-devs#141) add arviz-style for bokeh (arviz-devs#122) * add arviz-styles for bokeh * add arviz-styles for bokeh * Update arviz-variat.yml * add more styles Add rootogram (arviz-devs#142) fix examples (arviz-devs#144) Reorganize categories in the gallery (arviz-devs#145) * reorganize categories gallery * update condig * rename remove plots from titles (arviz-devs#146) * remove plots from titles * more renaming * more renaming consistence data_pairs, remove markers pava (arviz-devs#152) added functionality of step histogram for all three backends (arviz-devs#147) * added functionality of step histogram for all three backends * changed user preference format for step histograms * clean * little modifications to make it compatible with cleaned code and to have consistent edgecolor * added test for plot_dist with step value as true * minor fixes: step hist test is not required for 'none' backend --------- Co-authored-by: aloctavodia <[email protected]> use continuous outcome for plot_ppc_dist example (arviz-devs#154) add grid visual (arviz-devs#155) all test cases are passed ruff changes seperating plotting functionality of bayes_factor testing get_plotting funcitonality new implementation of arviz-plot Update bfplot.py it should be something like this. Please, check that it works properly, add docstrings and improve when necessary Improved the plot_bf() function, applied fixes, and added additional assert for test cases Fixed the check for ref_val Added a docstring for plot_bf() Change the backend from matplotlib to none Added a legend to componenet_groups Added few more asserts in test cases Did some other minor fixing and refractoring Signed-off-by: PiyushPanwarFST <[email protected]> Enhance plot_bf() Visualization & Documentation, Fix Linter Issues Adjusted and re-centered BF values for better graph representation. Added plot_bf() function to the documentation. Resolved pylint linter errors in code. Signed-off-by: PiyushPanwarFST <[email protected]> deleting some files and modifying some files
0 parents  commit 9814da9

File tree

117 files changed

+27972
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+27972
-0
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"

.github/workflows/hypothesis.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Run extended tests with hypothesis
2+
on:
3+
schedule:
4+
- cron: '17 5 * * 1'
5+
workflow_dispatch:
6+
7+
permissions:
8+
issues: write
9+
10+
jobs:
11+
hypothesis_testing:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: '3.11'
19+
- name: Install arviz-plots
20+
run: |
21+
python -m pip install ".[test]"
22+
- name: Execute tests
23+
run: |
24+
pytest --hypothesis-profile chron -k hypothesis
25+
echo "DATE=$(date +'%Y-%m-%d %H:%M %z')" >> ${GITHUB_ENV}
26+
- name: Comment on issue if failed
27+
if: failure()
28+
uses: peter-evans/create-or-update-comment@v4
29+
with:
30+
issue-number: 43
31+
body: |
32+
The extended tests with hypothesis failed.
33+
34+
* Branch: ${{ github.ref_name }}
35+
* Date: ${{ env.DATE }}
36+
37+
See [workflow logs](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for details on which tests failed and why.

.github/workflows/publish.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish library
2+
3+
on:
4+
push:
5+
tags:
6+
# Don't try to be smart about PEP 440 compliance,
7+
# see https://www.python.org/dev/peps/pep-0440/#appendix-b-parsing-version-strings-with-regular-expressions
8+
- v*
9+
10+
jobs:
11+
publish:
12+
environment:
13+
name: publish
14+
url: https://pypi.org/p/arviz-plots
15+
runs-on: ubuntu-latest
16+
permissions:
17+
id-token: write
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Set up Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: "3.10"
24+
- name: Install build dependencies
25+
run: python -m pip install build
26+
- name: Build package
27+
run: python -m build
28+
- name: Publish to PyPI
29+
uses: pypa/gh-action-pypi-publish@release/v1
30+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')

.github/workflows/rtd-preview.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Read the Docs Pull Request Preview
2+
on:
3+
pull_request_target:
4+
types:
5+
- opened
6+
7+
permissions:
8+
pull-requests: write
9+
10+
jobs:
11+
documentation-links:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: readthedocs/actions/preview@v1
15+
with:
16+
project-slug: "arviz-plots"

.github/workflows/test.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Run tests
2+
on:
3+
pull_request:
4+
push:
5+
branches: [main]
6+
paths-ignore:
7+
- "docs/"
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.11", "3.12"]
15+
fail-fast: false
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install tox tox-gh-actions
26+
- name: Test with tox
27+
run: tox
28+
- name: Upload coverage to Codecov
29+
uses: codecov/codecov-action@v5
30+
with:
31+
name: Python ${{ matrix.python-version }}
32+
fail_ci_if_error: false
33+
token: ${{ secrets.CODECOV_TOKEN }}
34+
verbose: true

.gitignore

Lines changed: 174 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
2+
# Created by https://www.toptal.com/developers/gitignore/api/python,jupyternotebooks
3+
# Edit at https://www.toptal.com/developers/gitignore?templates=python,jupyternotebooks
4+
5+
### JupyterNotebooks ###
6+
# gitignore template for Jupyter Notebooks
7+
# website: http://jupyter.org/
8+
9+
.ipynb_checkpoints
10+
*/.ipynb_checkpoints/*
11+
.virtual_documents
12+
*/.virtual_documents/*
13+
14+
# IPython
15+
profile_default/
16+
ipython_config.py
17+
18+
# Remove previous ipynb_checkpoints
19+
# git rm -r .ipynb_checkpoints/
20+
21+
### Python ###
22+
# Byte-compiled / optimized / DLL files
23+
__pycache__/
24+
*.py[cod]
25+
*$py.class
26+
27+
# C extensions
28+
*.so
29+
30+
# Distribution / packaging
31+
.Python
32+
build/
33+
develop-eggs/
34+
dist/
35+
downloads/
36+
eggs/
37+
.eggs/
38+
lib/
39+
lib64/
40+
parts/
41+
sdist/
42+
var/
43+
wheels/
44+
share/python-wheels/
45+
*.egg-info/
46+
.installed.cfg
47+
*.egg
48+
MANIFEST
49+
50+
# PyInstaller
51+
# Usually these files are written by a python script from a template
52+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
53+
*.manifest
54+
*.spec
55+
56+
# Installer logs
57+
pip-log.txt
58+
pip-delete-this-directory.txt
59+
60+
# Unit test / coverage reports
61+
htmlcov/
62+
.tox/
63+
.nox/
64+
.coverage
65+
.coverage.*
66+
.cache
67+
nosetests.xml
68+
coverage.xml
69+
*.cover
70+
*.py,cover
71+
.hypothesis/
72+
.pytest_cache/
73+
cover/
74+
75+
# default test image folder
76+
test_images/
77+
78+
# Translations
79+
*.mo
80+
*.pot
81+
82+
# Django stuff:
83+
*.log
84+
local_settings.py
85+
db.sqlite3
86+
db.sqlite3-journal
87+
88+
# Flask stuff:
89+
instance/
90+
.webassets-cache
91+
92+
# Scrapy stuff:
93+
.scrapy
94+
95+
# Sphinx documentation
96+
docs/_build/
97+
docs/build
98+
docs/source/api/**/generated
99+
docs/source/gallery/_images
100+
docs/source/gallery/_scripts
101+
docs/source/gallery/*.md
102+
docs/source/gallery/backreferences.json
103+
docs/jupyter_execute
104+
docs/source/api/backend/*.rst
105+
!docs/source/api/backend/*.part.rst
106+
!docs/source/api/backend/index.rst
107+
108+
# PyBuilder
109+
.pybuilder/
110+
target/
111+
112+
# Jupyter Notebook
113+
114+
# IPython
115+
116+
# pyenv
117+
# For a library or package, you might want to ignore these files since the code is
118+
# intended to run in multiple environments; otherwise, check them in:
119+
# .python-version
120+
121+
# pipenv
122+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
123+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
124+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
125+
# install all needed dependencies.
126+
#Pipfile.lock
127+
128+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
129+
__pypackages__/
130+
131+
# Celery stuff
132+
celerybeat-schedule
133+
celerybeat.pid
134+
135+
# SageMath parsed files
136+
*.sage.py
137+
138+
# Environments
139+
.env
140+
.venv
141+
env/
142+
venv/
143+
ENV/
144+
env.bak/
145+
venv.bak/
146+
147+
# Spyder project settings
148+
.spyderproject
149+
.spyproject
150+
151+
# Rope project settings
152+
.ropeproject
153+
154+
# mkdocs documentation
155+
/site
156+
157+
# mypy
158+
.mypy_cache/
159+
.dmypy.json
160+
dmypy.json
161+
162+
# Pyre type checker
163+
.pyre/
164+
165+
# pytype static type analyzer
166+
.pytype/
167+
168+
# Cython debug symbols
169+
cython_debug/
170+
171+
# macos
172+
.DS_Store
173+
174+
# End of https://www.toptal.com/developers/gitignore/api/python,jupyternotebooks

.pre-commit-config.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.3.0
4+
hooks:
5+
- id: check-added-large-files
6+
args: ['--maxkb=1500']
7+
- id: check-merge-conflict
8+
9+
- repo: https://github.com/PyCQA/isort
10+
rev: 5.12.0
11+
hooks:
12+
- id: isort
13+
exclude: ^src/arviz_base/example_data/
14+
15+
- repo: https://github.com/psf/black
16+
rev: 23.3.0
17+
hooks:
18+
- id: black
19+
exclude: ^docs/source/gallery/
20+
21+
- repo: https://github.com/pycqa/pydocstyle
22+
rev: 6.3.0
23+
hooks:
24+
- id: pydocstyle
25+
additional_dependencies: [tomli]
26+
files: ^src/arviz_plots/.+\.py$
27+
28+
- repo: local
29+
hooks:
30+
- id: pylint
31+
name: pylint
32+
entry: pylint
33+
language: system
34+
types: [python]
35+
args:
36+
[
37+
"-rn", # Only display messages
38+
"-sn", # Don't display the score
39+
]
40+
exclude: ^docs/source/gallery/

0 commit comments

Comments
 (0)