Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ repos:
- id: mypy
args: []
additional_dependencies: ["numpy>=2.2", "pytest>=8.1.1", "types-networkx>=3.4.2.20250312"]
- repo: https://github.com/python-poetry/poetry
rev: "2.1.1"
hooks:
- id: poetry-check
- id: poetry-lock
- repo: local
hooks:
- id: pytest
Expand Down
124 changes: 2 additions & 122 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
# serve to show the default.
from datetime import datetime


import rsd
from importlib.metadata import version as get_version

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down Expand Up @@ -67,7 +66,7 @@
# built documents.
#
# The full version, including alpha/beta/rc tags.
release = rsd.__version__
release = get_version("rgmining-rsd")
# The short X.Y version.
version = ".".join(release.split(".")[:2])

Expand Down Expand Up @@ -253,122 +252,3 @@

# Output file base name for HTML help builder.
htmlhelp_basename = "ReviewGraphMiningReviewSpammerDetectiondoc"

# -- Options for LaTeX output ---------------------------------------------

latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
#
# 'papersize': 'letterpaper',
# The font size ('10pt', '11pt' or '12pt').
#
# 'pointsize': '10pt',
# Additional stuff for the LaTeX preamble.
#
# 'preamble': '',
# Latex figure (float) alignment
#
# 'figure_align': 'htbp',
}

# 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,
"ReviewGraphMiningReviewSpammerDetection.tex",
"Review Graph Mining Review Spammer Detection Documentation",
"Junpei Kawamoto",
"manual",
),
]

# The name of an image file (relative to this directory) to place at the top of
# the title page.
#
# latex_logo = None

# For "manual" documents, if this is true, then toplevel headings are parts,
# not chapters.
#
# latex_use_parts = False

# If true, show page references after internal links.
#
# latex_show_pagerefs = False

# If true, show URL addresses after external links.
#
# latex_show_urls = False

# Documents to append as an appendix to all manuals.
#
# latex_appendices = []

# It false, will not define \strong, \code, itleref, \crossref ... but only
# \sphinxstrong, ..., \sphinxtitleref, ... To help avoid clash with user added
# packages.
#
# latex_keep_old_macro_names = True

# If false, no module index is generated.
#
# latex_domain_indices = True


# -- Options for manual page output ---------------------------------------

# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
(master_doc, "reviewgraphminingrsd", "Review Graph Mining Review Spammer Detection Documentation", [author], 1)
]

# If true, show URL addresses after external links.
#
# man_show_urls = False


# -- Options for Texinfo output -------------------------------------------

# Grouping the document tree into Texinfo files. List of tuples
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
(
master_doc,
"ReviewGraphMiningReviewSpammerDetection",
"Review Graph Mining Review Spammer Detection Documentation",
author,
"ReviewGraphMiningReviewSpammerDetection",
"One line description of project.",
"Miscellaneous",
),
]

# Documents to append as an appendix to all manuals.
#
# texinfo_appendices = []

# If false, no module index is generated.
#
# texinfo_domain_indices = True

# How to display URL addresses: 'footnote', 'no', or 'inline'.
#
# texinfo_show_urls = 'footnote'

# If true, do not generate a @detailmenu in the "Top" node's menu.
#
# texinfo_no_detailmenu = False


# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}


# -- Options for autodoc output -------------------------------------------

autodoc_member_order = "groupwise"
autodoc_typehints_format = "short"
5 changes: 1 addition & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ sphinx = "^8.2.3"
sphinx-rtd-theme = "^3.0.2"

[tool.ruff]
target-version = "py310"
target-version = "py311"
line-length = 120

[tool.pytest.ini_options]
Expand All @@ -80,9 +80,6 @@ filename = "pyproject.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'

[[tool.bumpversion.files]]
filename = "rsd/__init__.py"

[[tool.bumpversion.files]]
filename = "README.rst"

Expand Down
4 changes: 1 addition & 3 deletions rsd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,4 @@

from rsd.graph import ReviewGraph

__version__: Final = "0.3.4"

__all__: Final = ("ReviewGraph", "__version__")
__all__: Final = ("ReviewGraph",)