aesara-devs / aesara

Aesara is a Python library for defining, optimizing, and efficiently evaluating mathematical expressions involving multi-dimensional arrays.
https://aesara.readthedocs.io
Other
1.17k stars 156 forks source link

Update `pre-commit` config #1482

Closed brandonwillard closed 1 year ago

brandonwillard commented 1 year ago

This PR updates the pre-commit config and addresses a Mypy error involving an import from setuptools._distutils.errors in aesara.link.c.exceptions.

codecov[bot] commented 1 year ago

Codecov Report

Merging #1482 (e137dd8) into main (5268d20) will not change coverage. The diff coverage is 74.19%.

Additional details and impacted files [![Impacted file tree graph](https://codecov.io/gh/aesara-devs/aesara/pull/1482/graphs/tree.svg?width=650&height=150&src=pr&token=2HNzVWyxrA&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aesara-devs)](https://codecov.io/gh/aesara-devs/aesara/pull/1482?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aesara-devs) ```diff @@ Coverage Diff @@ ## main #1482 +/- ## ======================================= Coverage 75.02% 75.02% ======================================= Files 194 194 Lines 50102 50102 Branches 12096 12096 ======================================= Hits 37589 37589 Misses 10189 10189 Partials 2324 2324 ``` | [Impacted Files](https://codecov.io/gh/aesara-devs/aesara/pull/1482?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aesara-devs) | Coverage Δ | | |---|---|---| | [aesara/breakpoint.py](https://codecov.io/gh/aesara-devs/aesara/pull/1482?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aesara-devs#diff-YWVzYXJhL2JyZWFrcG9pbnQucHk=) | `55.00% <ø> (ø)` | | | [aesara/compile/builders.py](https://codecov.io/gh/aesara-devs/aesara/pull/1482?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aesara-devs#diff-YWVzYXJhL2NvbXBpbGUvYnVpbGRlcnMucHk=) | `79.16% <ø> (ø)` | | | [aesara/compile/function/types.py](https://codecov.io/gh/aesara-devs/aesara/pull/1482?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aesara-devs#diff-YWVzYXJhL2NvbXBpbGUvZnVuY3Rpb24vdHlwZXMucHk=) | `79.81% <ø> (ø)` | | | [aesara/configdefaults.py](https://codecov.io/gh/aesara-devs/aesara/pull/1482?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aesara-devs#diff-YWVzYXJhL2NvbmZpZ2RlZmF1bHRzLnB5) | `66.20% <ø> (ø)` | | | [aesara/gradient.py](https://codecov.io/gh/aesara-devs/aesara/pull/1482?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aesara-devs#diff-YWVzYXJhL2dyYWRpZW50LnB5) | `77.02% <ø> (ø)` | | | [aesara/graph/basic.py](https://codecov.io/gh/aesara-devs/aesara/pull/1482?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aesara-devs#diff-YWVzYXJhL2dyYXBoL2Jhc2ljLnB5) | `88.24% <ø> (ø)` | | | [aesara/graph/rewriting/basic.py](https://codecov.io/gh/aesara-devs/aesara/pull/1482?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aesara-devs#diff-YWVzYXJhL2dyYXBoL3Jld3JpdGluZy9iYXNpYy5weQ==) | `65.03% <0.00%> (ø)` | | | [aesara/graph/utils.py](https://codecov.io/gh/aesara-devs/aesara/pull/1482?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aesara-devs#diff-YWVzYXJhL2dyYXBoL3V0aWxzLnB5) | `64.84% <ø> (ø)` | | | [aesara/ifelse.py](https://codecov.io/gh/aesara-devs/aesara/pull/1482?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aesara-devs#diff-YWVzYXJhL2lmZWxzZS5weQ==) | `51.14% <ø> (ø)` | | | [aesara/link/c/basic.py](https://codecov.io/gh/aesara-devs/aesara/pull/1482?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aesara-devs#diff-YWVzYXJhL2xpbmsvYy9iYXNpYy5weQ==) | `87.14% <ø> (ø)` | | | ... and [70 more](https://codecov.io/gh/aesara-devs/aesara/pull/1482?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aesara-devs) | |