Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- updated GitHub Actions workflow: skip publishing existing versions - included ruff pre commit hook - updated dependency lock - included tests for python 3.12
- Loading branch information
Showing
26 changed files
with
1,588 additions
and
1,134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "pip" | ||
directory: "pyproject.toml" | ||
schedule: | ||
interval: "weekly" | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,82 +1,74 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: check-ast # Is it valid Python? | ||
- id: debug-statements # no debugging statements used | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
- id: check-case-conflict | ||
- id: check-merge-conflict | ||
# - id: name-tests-test | ||
- id: check-docstring-first | ||
- id: requirements-txt-fixer | ||
- id: detect-private-key | ||
# - id: check-executables-have-shebangs | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
hooks: | ||
- id: check-ast # Is it valid Python? | ||
- id: debug-statements # no debugging statements used | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
- id: check-case-conflict | ||
- id: check-merge-conflict | ||
# - id: name-tests-test | ||
- id: check-docstring-first | ||
- id: requirements-txt-fixer | ||
- id: detect-private-key | ||
# - id: check-executables-have-shebangs | ||
|
||
- repo: https://github.com/pycqa/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
args: | ||
- --profile=black | ||
- --filter-files | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.3.5 | ||
hooks: | ||
# linter. | ||
- id: ruff | ||
args: [ --fix ] | ||
- id: ruff-format | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 23.1.0 | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
args: | ||
- --line-length=120 | ||
- repo: https://github.com/asottile/blacken-docs | ||
rev: 1.16.0 | ||
hooks: | ||
- id: blacken-docs | ||
additional_dependencies: [ black==22.1 ] | ||
|
||
- repo: https://github.com/asottile/blacken-docs | ||
rev: 1.13.0 | ||
hooks: | ||
- id: blacken-docs | ||
additional_dependencies: [ black==22.1 ] | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: 7.0.0 | ||
hooks: | ||
- id: flake8 | ||
exclude: (docs|tests) | ||
args: | ||
- --max-line-length=120 | ||
- --ignore=E501,W503 | ||
additional_dependencies: | ||
- flake8-bugbear | ||
- flake8-comprehensions | ||
- flake8-tidy-imports | ||
|
||
- repo: https://github.com/pycqa/flake8 | ||
rev: 6.0.0 | ||
hooks: | ||
- id: flake8 | ||
exclude: (docs|tests) | ||
args: | ||
- --max-line-length=120 | ||
- --ignore=E501,W503 | ||
additional_dependencies: | ||
- flake8-bugbear | ||
- flake8-comprehensions | ||
- flake8-tidy-imports | ||
# - repo: https://github.com/mgedmin/check-manifest | ||
# rev: "0.49" | ||
# hooks: | ||
# - id: check-manifest | ||
# args: [ "--no-build-isolation", "--ignore", "*.png,docs/*,paper/*,scripts/*,setup.py,publish.py,readthedocs.yml,poetry.lock" ] | ||
# additional_dependencies: [ numpy, poetry==1.3.2] | ||
|
||
# - repo: https://github.com/mgedmin/check-manifest | ||
# rev: "0.49" | ||
# hooks: | ||
# - id: check-manifest | ||
# args: [ "--no-build-isolation", "--ignore", "*.png,docs/*,paper/*,scripts/*,setup.py,publish.py,readthedocs.yml,poetry.lock" ] | ||
# additional_dependencies: [ numpy, poetry==1.3.2] | ||
# TODO sphinx check | ||
# - repo: https://github.com/myint/rstcheck | ||
# rev: 'v3.3.1' | ||
# hooks: | ||
# - id: rstcheck | ||
|
||
# TODO sphinx check | ||
# - repo: https://github.com/myint/rstcheck | ||
# rev: 'v3.3.1' | ||
# hooks: | ||
# - id: rstcheck | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.15.2 | ||
hooks: | ||
- id: pyupgrade | ||
|
||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.3.1 | ||
hooks: | ||
- id: pyupgrade | ||
# # very detailed linting: | ||
# - repo: https://github.com/pycqa/pylint | ||
# rev: pylint-2.6.0 | ||
# hooks: | ||
# - id: pylint | ||
|
||
# # very detailed linting: | ||
# - repo: https://github.com/pycqa/pylint | ||
# rev: pylint-2.6.0 | ||
# hooks: | ||
# - id: pylint | ||
|
||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.0.0 | ||
hooks: | ||
- id: mypy | ||
exclude: ^((tests|scripts)/) | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.9.0 | ||
hooks: | ||
- id: mypy | ||
exclude: ^((tests|scripts)/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
from multivar_horner.classes.abstract_poly import load_pickle | ||
from multivar_horner.classes.horner_poly import HornerMultivarPolynomial, HornerMultivarPolynomialOpt | ||
from multivar_horner.classes.horner_poly import ( | ||
HornerMultivarPolynomial, | ||
HornerMultivarPolynomialOpt, | ||
) | ||
from multivar_horner.classes.regular_poly import MultivarPolynomial | ||
|
||
__all__ = ["HornerMultivarPolynomial", "MultivarPolynomial", "HornerMultivarPolynomialOpt", "load_pickle"] | ||
__all__ = [ | ||
"HornerMultivarPolynomial", | ||
"MultivarPolynomial", | ||
"HornerMultivarPolynomialOpt", | ||
"load_pickle", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.