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
12 changes: 0 additions & 12 deletions .cursor/rules/custom-rule.mdc

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
strategy:
fail-fast: true
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ci:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-ast
Expand Down Expand Up @@ -49,13 +49,13 @@ repos:
- id: codespell
additional_dependencies: ["tomli"]
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "v2.6.0"
rev: "v2.11.1"
hooks:
- id: pyproject-fmt
additional_dependencies: ["tomli"]
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.11.10
rev: v0.14.11
hooks:
# Run the linter with configuration from pyproject.toml
- id: ruff
Expand All @@ -65,7 +65,7 @@ repos:
# Run the formatter.
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.15.0
rev: v1.19.1
hooks:
- id: mypy
files: ^(google_docstring_parser|tests)/
Expand Down
26 changes: 26 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Claude AI Rules

This document contains rules and guidelines for Claude AI when working on this project.

## Communication

- Do not create a summary document on every fix

## Philosophy

Our development approach follows this priority order:

1. **Delete** - First, delete as much code as possible
2. **Simplify** - Second, simplify what remains
3. **Optimize** - Third, optimize if needed

## Python Development

- We use Python 3.10 typing
- For tests we use pytest and parametrize
- We use Google type docstrings
- To check syntax we do not run ruff, flake8, but just run `pre-commit run --all-files`

## Testing

- We use extensive testing
Empty file.
15 changes: 7 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ requires = [ "setuptools>=45", "wheel" ]

[project]
name = "google-docstring-parser"
version = "0.0.8"
version = "0.0.9"

description = "A lightweight, efficient parser for Google-style Python docstrings that converts them into structured dictionaries."
readme = "README.md"
Expand All @@ -14,7 +14,7 @@ license = { text = "Custom License - See LICENSE file for details" }
maintainers = [ { name = "Vladimir Iglovikov" } ]

authors = [ { name = "Vladimir Iglovikov" } ]
requires-python = ">=3.9"
requires-python = ">=3.10"

classifiers = [
"Development Status :: 5 - Production/Stable",
Expand All @@ -24,11 +24,11 @@ classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Documentation",
"Topic :: Software Development :: Libraries",
Expand All @@ -38,7 +38,6 @@ classifiers = [

dependencies = [
"docstring-parser>=0.16",
"typing-extensions>=4.9; python_version<'3.10'",
]

optional-dependencies.dev = [
Expand All @@ -50,19 +49,19 @@ optional-dependencies.dev = [
packages = [ "google_docstring_parser", "tools" ]

[tool.setuptools.package-data]
google_docstring_parser = [ "*.md" ]
google_docstring_parser = [ "*.md", "py.typed" ]

[tool.setuptools.exclude-package-data]
"*" = [ "tests*" ]

[tool.ruff]
# Exclude a variety of commonly ignored directories.
target-version = "py39"
target-version = "py310"

line-length = 120
indent-width = 4

# Assume Python 3.9
# Assume Python 3.10
exclude = [
".bzr",
".cursor",
Expand Down Expand Up @@ -130,7 +129,7 @@ lint.dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
lint.pydocstyle.convention = "google"

[tool.mypy]
python_version = "3.9"
python_version = "3.10"
ignore_missing_imports = true
follow_imports = "silent"
warn_redundant_casts = true
Expand Down
Loading