-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from DiamondLightSource/copier-pyright
Update copier and adopt pyright
- Loading branch information
Showing
21 changed files
with
210 additions
and
108 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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
# Changes here will be overwritten by Copier | ||
_commit: 2.1.0-40-g9e70b8b | ||
_commit: 2.3.0 | ||
_src_path: gh:DiamondLightSource/python-copier-template | ||
author_email: [email protected] | ||
author_name: Gary Yendell | ||
component_lifecycle: experimental | ||
component_owner: user:mef65357 | ||
component_type: library | ||
description: Control system agnostic framework for building Device support in Python | ||
that will work for both EPICS and Tango | ||
distribution_name: fastcs | ||
|
@@ -14,4 +16,4 @@ github_org: DiamondLightSource | |
package_name: fastcs | ||
pypi: true | ||
repo_name: FastCS | ||
type_checker: mypy | ||
type_checker: pyright |
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 |
---|---|---|
|
@@ -55,6 +55,7 @@ cov.xml | |
|
||
# Sphinx documentation | ||
docs/_build/ | ||
docs/_api | ||
|
||
# PyBuilder | ||
target/ | ||
|
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
:orphan: | ||
|
||
.. | ||
This page is not included in the TOC tree, but must exist so that the | ||
autosummary pages are generated for fastcs and all its | ||
subpackages | ||
API | ||
=== | ||
|
||
.. autosummary:: | ||
:toctree: _api | ||
:template: custom-module-template.rst | ||
:recursive: | ||
|
||
fastcs |
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,37 @@ | ||
{{ ('``' + fullname + '``') | underline }} | ||
|
||
{%- set filtered_members = [] %} | ||
{%- for item in members %} | ||
{%- if item in functions + classes + exceptions + attributes %} | ||
{% set _ = filtered_members.append(item) %} | ||
{%- endif %} | ||
{%- endfor %} | ||
|
||
.. automodule:: {{ fullname }} | ||
:members: | ||
|
||
{% block modules %} | ||
{% if modules %} | ||
.. rubric:: Submodules | ||
|
||
.. autosummary:: | ||
:toctree: | ||
:template: custom-module-template.rst | ||
:recursive: | ||
{% for item in modules %} | ||
{{ item }} | ||
{%- endfor %} | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block members %} | ||
{% if filtered_members %} | ||
.. rubric:: Members | ||
|
||
.. autosummary:: | ||
:nosignatures: | ||
{% for item in filtered_members %} | ||
{{ item }} | ||
{%- endfor %} | ||
{% endif %} | ||
{% endblock %} |
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 was deleted.
Oops, something went wrong.
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,3 +1,11 @@ | ||
"""Top level API. | ||
.. data:: __version__ | ||
:type: str | ||
Version number as calculated by https://github.com/pypa/setuptools_scm | ||
""" | ||
|
||
from ._version import __version__ | ||
|
||
__all__ = ["__version__"] |
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,16 +1,24 @@ | ||
"""Interface for ``python -m fastcs``.""" | ||
|
||
from argparse import ArgumentParser | ||
from collections.abc import Sequence | ||
|
||
from . import __version__ | ||
|
||
__all__ = ["main"] | ||
|
||
|
||
def main(args=None): | ||
def main(args: Sequence[str] | None = None) -> None: | ||
"""Argument parser for the CLI.""" | ||
parser = ArgumentParser() | ||
parser.add_argument("-v", "--version", action="version", version=__version__) | ||
args = parser.parse_args(args) | ||
parser.add_argument( | ||
"-v", | ||
"--version", | ||
action="version", | ||
version=__version__, | ||
) | ||
parser.parse_args(args) | ||
|
||
|
||
# test with: python -m fastcs | ||
if __name__ == "__main__": | ||
main() |
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.