Skip to content

Commit

Permalink
add preference
Browse files Browse the repository at this point in the history
  • Loading branch information
bagel897 committed Jan 10, 2024
1 parent c843de9 commit 3099c2a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ classifiers = [
'Topic :: Software Development',
]
version = '1.11.0'
dependencies = ['pytoolconfig[global] >= 1.2.2']
dependencies = ['pytoolconfig[global] >= 1.3.0']

[[project.authors]]
name = 'Ali Gholami Rudi'
Expand Down
8 changes: 7 additions & 1 deletion rope/base/prefs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# type: ignore
"""Rope preferences."""
from dataclasses import asdict, dataclass
from enum import Enum, unique
from textwrap import dedent
from typing import Any, Callable, Dict, List, Optional, Tuple

Expand All @@ -10,14 +11,19 @@
from pytoolconfig.sources import Source

from rope.base.resources import Folder

@unique
class DocumentationMode(Enum):
DISABLED = False
ENABLED = True
LAZY = "lazy"

@dataclass
class AutoimportPrefs:
underlined: bool = field(
default=False, description="Cache underlined (private) modules")
memory: bool = field(default=None, description="Cache in memory instead of disk")
parallel: bool = field(default=True, description="Use multiple processes to parse")
documentation: DocumentationMode = field(default=DocumentationMode.DISABLED, description="Cache documentation")


@dataclass
Expand Down

0 comments on commit 3099c2a

Please sign in to comment.