-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DOC: update development documentation 2ed6a90
- Loading branch information
0 parents
commit ca81ff9
Showing
222 changed files
with
25,636 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
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 @@ | ||
pre-commit-hooks.docs.ansys.com |
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,6 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>Redirecting to https://pre-commit-hooks.docs.ansys.com/version/stable/</title> | ||
<meta name="description" content=""> | ||
<meta http-equiv="refresh" content="0; URL=https://pre-commit-hooks.docs.ansys.com/version/stable/"> | ||
<link rel="canonical" href="https://pre-commit-hooks.docs.ansys.com/version/stable/"> |
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,57 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | ||
<url> | ||
<loc>https://www.pre-commit-hooks.docs.ansys.com</loc> | ||
<lastmod>2023-09-01T13:01:51+00:00</lastmod> | ||
<changefreq>daily</changefreq> | ||
<priority>1.0</priority> | ||
</url> | ||
<url> | ||
<loc>https://www.pre-commit-hooks.docs.ansys.com/autoapi/index</loc> | ||
<lastmod>2023-09-01T13:01:51+00:00</lastmod> | ||
<changefreq>weekly</changefreq> | ||
<priority>0.5</priority> | ||
</url> | ||
<url> | ||
<loc>https://www.pre-commit-hooks.docs.ansys.com/autoapi/pre_commit_hooks/add_license_headers/index</loc> | ||
<lastmod>2023-09-01T13:01:51+00:00</lastmod> | ||
<changefreq>weekly</changefreq> | ||
<priority>0.5</priority> | ||
</url> | ||
<url> | ||
<loc>https://www.pre-commit-hooks.docs.ansys.com/autoapi/pre_commit_hooks/index</loc> | ||
<lastmod>2023-09-01T13:01:51+00:00</lastmod> | ||
<changefreq>weekly</changefreq> | ||
<priority>0.5</priority> | ||
</url> | ||
<url> | ||
<loc>https://www.pre-commit-hooks.docs.ansys.com/_static/webpack-macros</loc> | ||
<lastmod>2023-09-01T13:01:51+00:00</lastmod> | ||
<changefreq>weekly</changefreq> | ||
<priority>0.5</priority> | ||
</url> | ||
<url> | ||
<loc>https://www.pre-commit-hooks.docs.ansys.com/search</loc> | ||
<lastmod>2023-09-01T13:01:51+00:00</lastmod> | ||
<changefreq>weekly</changefreq> | ||
<priority>0.5</priority> | ||
</url> | ||
<url> | ||
<loc>https://www.pre-commit-hooks.docs.ansys.com/genindex</loc> | ||
<lastmod>2023-09-01T13:01:51+00:00</lastmod> | ||
<changefreq>weekly</changefreq> | ||
<priority>0.5</priority> | ||
</url> | ||
<url> | ||
<loc>https://www.pre-commit-hooks.docs.ansys.com/index</loc> | ||
<lastmod>2023-09-01T13:01:51+00:00</lastmod> | ||
<changefreq>weekly</changefreq> | ||
<priority>0.5</priority> | ||
</url> | ||
<url> | ||
<loc>https://www.pre-commit-hooks.docs.ansys.com/py-modindex</loc> | ||
<lastmod>2023-09-01T13:01:51+00:00</lastmod> | ||
<changefreq>weekly</changefreq> | ||
<priority>0.5</priority> | ||
</url> | ||
</urlset> |
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,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: bcdb4b438276f1038db0ddafe532b6cc | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
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,9 @@ | ||
API reference | ||
============= | ||
|
||
This section provides descriptions of all API members for Ansys pre-commit hooks. | ||
|
||
.. toctree:: | ||
:titlesonly: | ||
|
||
/autoapi/pre_commit_hooks/index |
225 changes: 225 additions & 0 deletions
225
version/0.1/_sources/autoapi/pre_commit_hooks/add_license_headers/index.rst.txt
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,225 @@ | ||
:py:mod:`pre_commit_hooks.add_license_headers` | ||
============================================== | ||
|
||
.. py:module:: pre_commit_hooks.add_license_headers | ||
.. autoapi-nested-parse:: | ||
|
||
Module for running `REUSE <https://reuse.software/>`_ to add missing license headers to files. | ||
|
||
A license header consists of the Ansys copyright statement and licensing information. | ||
|
||
.. | ||
!! processed by numpydoc !! | ||
|
||
Module Contents | ||
--------------- | ||
|
||
|
||
Functions | ||
~~~~~~~~~ | ||
|
||
.. autoapisummary:: | ||
|
||
pre_commit_hooks.add_license_headers.set_lint_args | ||
pre_commit_hooks.add_license_headers.list_noncompliant_files | ||
pre_commit_hooks.add_license_headers.find_files_missing_header | ||
pre_commit_hooks.add_license_headers.check_reuse_dir | ||
pre_commit_hooks.add_license_headers.run_reuse | ||
pre_commit_hooks.add_license_headers.main | ||
|
||
|
||
|
||
.. py:function:: set_lint_args(parser) | ||
Add lint arguments to the parser for `REUSE <https://reuse.software/>`_. | ||
|
||
|
||
:Parameters: | ||
|
||
**parser: argparse.ArgumentParser** | ||
Parser without any lint arguments. | ||
|
||
:Returns: | ||
|
||
:obj:`argparse.Namespace` | ||
Parser namespace containing lint arguments. | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
.. | ||
!! processed by numpydoc !! | ||
.. py:function:: list_noncompliant_files(args, proj) | ||
Get a list of the files that are missing license headers. | ||
|
||
|
||
:Parameters: | ||
|
||
**args: argparse.Namespace** | ||
Namespace of arguments with their values. | ||
|
||
**proj: project.Project** | ||
Project to run `REUSE <https://reuse.software/>`_ on. | ||
|
||
:Returns: | ||
|
||
:class:`python:list` | ||
List of the files that are missing license headers. | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
.. | ||
!! processed by numpydoc !! | ||
.. py:function:: find_files_missing_header() | ||
Find files that are missing license headers and run `REUSE <https://reuse.software/>`_ on them. | ||
|
||
|
||
|
||
:Returns: | ||
|
||
:class:`python:int` | ||
``1`` if ``REUSE`` changed all noncompliant files. | ||
|
||
``2`` if the ``.reuse`` directory does not exist in the root path of the | ||
GitHub repository. | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
.. | ||
!! processed by numpydoc !! | ||
.. py:function:: check_reuse_dir() | ||
Check if the ``.reuse`` directory exists in the root path of the git repository. | ||
|
||
|
||
|
||
:Returns: | ||
|
||
:class:`python:str` | ||
Root path of the git repository. | ||
|
||
:class:`python:int` | ||
``1`` if the ``.reuse`` directory does not exist in the root path | ||
of the git repository. | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
.. | ||
!! processed by numpydoc !! | ||
.. py:function:: run_reuse(parser, year, loc, missing_headers) | ||
Run `REUSE <https://reuse.software/>`_ on files that are missing license headers. | ||
|
||
|
||
:Parameters: | ||
|
||
**parser: argparse.ArgumentParser** | ||
Parser containing the previously set arguments. | ||
|
||
**year: int** | ||
Current year for the license header. | ||
|
||
**loc: str** | ||
Location to search for files that are missing license headers. | ||
|
||
**missing_headers: list** | ||
List of files that are missing license headers. | ||
|
||
:Returns: | ||
|
||
:class:`python:int` | ||
``1`` if the pre-commit hook fails. | ||
|
||
``2`` if the ``.reuse`` directory does not exist in the root path | ||
of the GitHub repository. | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
.. | ||
!! processed by numpydoc !! | ||
.. py:function:: main() | ||
Find files missing license headers and run `REUSE <https://reuse.software/>`_ on them. | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
.. | ||
!! processed by numpydoc !! | ||
38 changes: 38 additions & 0 deletions
38
version/0.1/_sources/autoapi/pre_commit_hooks/index.rst.txt
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,38 @@ | ||
:py:mod:`pre_commit_hooks` | ||
========================== | ||
|
||
.. py:module:: pre_commit_hooks | ||
.. autoapi-nested-parse:: | ||
|
||
|
||
Module for initializing package-level imports for Ansys pre-commit hooks. | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
.. | ||
!! processed by numpydoc !! | ||
|
||
Submodules | ||
---------- | ||
.. toctree:: | ||
:titlesonly: | ||
:maxdepth: 1 | ||
|
||
add_license_headers/index.rst | ||
|
||
|
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,12 @@ | ||
.. | ||
Just reuse the root readme to avoid duplicating the documentation. | ||
Provide any documentation specific to your online documentation | ||
here. | ||
.. include:: ../../README.rst | ||
|
||
.. toctree:: | ||
:hidden: | ||
:maxdepth: 3 | ||
|
||
autoapi/index |
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,6 @@ | ||
Oops! | ||
===== | ||
|
||
This is unexpected. The page you are requesting does not exist. | ||
|
||
If this page should exist, please contact `{{ theme_contact_mail }} <{{ theme_contact_mail }}>`_. |
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 @@ | ||
Static files can be found here (like images and other assets). |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.