-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to hatch #749
Migrate to hatch #749
Changes from all commits
c69a578
03f8595
3f0fae6
b049521
3479672
9bc991c
7e5cdb4
6124299
049509e
b6fc0f4
0bb5752
cc52363
7284dc6
09572be
1ca45eb
7b9b311
e41cca4
dbd236f
af6ab4d
999c196
99a43e0
3fcb36d
7db11f6
1540d56
a117394
bae4f6e
db13d32
9ef5266
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
default_language_version: | ||
python: python3.8 | ||
python: python3.10 | ||
|
||
ci: | ||
autofix_prs: true | ||
autoupdate_commit_msg: '[pre-commit.ci] pre-commit suggestions' | ||
autoupdate_schedule: quarterly | ||
# submodules: true | ||
autofix_commit_msg: 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks | ||
autoupdate_commit_msg: ⬆ [pre-commit.ci] pre-commit autoupdate | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
|
@@ -21,31 +20,21 @@ repos: | |
- id: check-docstring-first | ||
- id: detect-private-key | ||
|
||
- repo: https://github.com/charliermarsh/ruff-pre-commit | ||
rev: v0.1.2 | ||
hooks: | ||
- id: ruff | ||
args: | ||
- --fix | ||
- id: ruff-format | ||
|
||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.15.0 | ||
hooks: | ||
- id: pyupgrade | ||
args: [--py37-plus] | ||
name: Upgrade code | ||
|
||
#- repo: https://github.com/myint/docformatter | ||
# rev: v1.5.0 | ||
# hooks: | ||
# - id: docformatter | ||
# args: [--in-place, --wrap-summaries=120, --wrap-descriptions=120] | ||
|
||
#- repo: https://github.com/PyCQA/isort | ||
# rev: 5.10.1 | ||
# hooks: | ||
# - id: isort | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 23.11.0 | ||
hooks: | ||
- id: black | ||
name: Black code | ||
args: ["-S"] | ||
Comment on lines
-42
to
-47
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why drop Black? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because this adds ruff-format instead. |
||
|
||
- repo: https://github.com/executablebooks/mdformat | ||
rev: 0.7.17 | ||
hooks: | ||
|
@@ -58,12 +47,3 @@ repos: | |
rev: v1.5.0 | ||
hooks: | ||
- id: yesqa | ||
|
||
- repo: https://github.com/pycqa/flake8 | ||
rev: 6.1.0 | ||
hooks: | ||
- id: flake8 | ||
arge: | ||
- "--count" | ||
- "--show-source" | ||
- "--statistics" |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,7 +80,7 @@ | |
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', 'UPDATE.md'] | ||
|
||
# The name of the Pygments (syntax highlighting) style to use. | ||
pygments_style = "sphinx" | ||
pygments_style = 'sphinx' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. lets fo these changes in separate PR so it is easier to follow what is the main change/focus of this PR |
||
|
||
# If true, `todo` and `todoList` produce output, else they produce nothing. | ||
todo_include_todos = False | ||
|
@@ -90,22 +90,22 @@ | |
|
||
# The theme to use for HTML and HTML Help pages. See the documentation for | ||
# a list of builtin themes. | ||
html_theme = "furo" | ||
html_theme = 'furo' | ||
|
||
# Theme options are theme-specific and customize the look and feel of a theme | ||
# further. For a list of options available for each theme, see the | ||
# documentation. | ||
# | ||
html_theme_options = { | ||
"sidebar_hide_name": True, | ||
'sidebar_hide_name': True, | ||
} | ||
|
||
# Add any paths that contain custom static files (such as style sheets) here, | ||
# relative to this directory. They are copied after the builtin static files, | ||
# so a file named "default.css" will overwrite the builtin "default.css". | ||
html_static_path = ['_static'] | ||
|
||
html_logo = "_static/images/papermill.png" | ||
html_logo = '_static/images/papermill.png' | ||
|
||
# -- Options for HTMLHelp output ------------------------------------------ | ||
|
||
|
@@ -132,9 +132,7 @@ | |
# Grouping the document tree into LaTeX files. List of tuples | ||
# (source start file, target name, title, | ||
# author, documentclass [howto, manual, or own class]). | ||
latex_documents = [ | ||
(master_doc, 'papermill.tex', 'papermill Documentation', 'nteract team', 'manual') | ||
] | ||
latex_documents = [(master_doc, 'papermill.tex', 'papermill Documentation', 'nteract team', 'manual')] | ||
|
||
|
||
# -- Options for manual page output --------------------------------------- | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
from .version import version as __version__ | ||
|
||
from .exceptions import PapermillException, PapermillExecutionError | ||
from .execute import execute_notebook | ||
from .inspection import inspect_notebook | ||
from .version import version as __version__ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
already added with switch flake8 -> ruff #752