Skip to content
This repository was archived by the owner on Dec 24, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 8 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
3 changes: 2 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- dev
paths:
- 'LICENSE'
- 'CHANGELOG.md'
Expand Down Expand Up @@ -52,7 +53,7 @@ jobs:
- name: Install dependencies
run: |
uv pip install -e .
uv pip install --group docs
uv pip install --group docs --group lint

- name: Deploy to GitHub Pages
run: uv run mkdocs gh-deploy --force
135 changes: 132 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,135 @@
*.egg-info/
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
.DS_store
.venv/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock
uv.lock

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# VS Code
.vscode/

# PDM
.pdm.toml
__pypackages__/

.DS_Store
23 changes: 17 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
repos:
- repo: https://github.com/pycqa/isort
rev: 5.13.2
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.5
hooks:
- id: isort
- repo: https://github.com/ambv/black
rev: 22.12.0
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: black
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/aio-libs/sort-all
rev: v1.3.0
hooks:
- id: sort-all
4 changes: 3 additions & 1 deletion docs/types/attribution_alignment.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
::: flet_map.types.AttributionAlignment
::: flet_map.types.AttributionAlignment
options:
separate_signature: false
2 changes: 2 additions & 0 deletions docs/types/cursor_rotation_behaviour.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
::: flet_map.types.CursorRotationBehaviour
options:
separate_signature: false
2 changes: 2 additions & 0 deletions docs/types/interaction_flag.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
::: flet_map.types.InteractionFlag
options:
separate_signature: false
2 changes: 2 additions & 0 deletions docs/types/multi_finger_gesture.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
::: flet_map.types.MultiFingerGesture
options:
separate_signature: false
4 changes: 3 additions & 1 deletion docs/types/pattern_fit.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
::: flet_map.types.PatternFit
::: flet_map.types.PatternFit
options:
separate_signature: false
4 changes: 3 additions & 1 deletion docs/types/tile_layer_evict_error_tile_strategy.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
::: flet_map.types.TileLayerEvictErrorTileStrategy
::: flet_map.types.TileLayerEvictErrorTileStrategy
options:
separate_signature: false
19 changes: 10 additions & 9 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,20 @@ validation:
unrecognized_links: warn
anchors: warn

# Watch
watch:
- docs
- src
- src/flet_map
- CHANGELOG.md
- LICENSE
- README.md

# Plugins
plugins:
# - footnotes
- search:
lang: en
- open-in-new-tab
- mike:
alias_type: symlink
- glightbox
Expand All @@ -164,21 +169,17 @@ plugins:
show_labels: false
show_if_no_docstring: true
docstring_section_style: spacy
separate_signature: true
inherited_members: true
preload_modules: [ flet ]
filters:
- "!^_" # Exclude private members starting with only one underscore
- "!before_update"
- "!before_event"
- "!clean"
- "!did_mount"
- "!init"
- "!is_isolated"
- "!update"
- "!will_unmount"
- "!get_event_field_type"
extensions:
- griffe_modernized_annotations
- griffe_warnings_deprecated
inventories:
- url: https://docs.flet.dev/objects.inv
- url: https://docs.python.org/3/objects.inv
domains: [ py, std ]
- url: https://typing-extensions.readthedocs.io/en/latest/objects.inv
Expand Down
48 changes: 35 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,43 @@ Issues = "https://github.com/flet-dev/flet-map/issues"
"flutter.flet_map" = ["**/*"]

[dependency-groups]
test = [
"pytest >=7.2.0",
]
lint = [
"ruff >=0.11.7",
]
dev = [
"pre-commit>=4.2.0",
"ruff>=0.11.7",
"pre-commit >=4.2.0",
{ include-group = 'lint' },
{ include-group = 'test' },
]
docs-coverage = [
"docstr-coverage >=2.3.2",
]
docs = [
"mkdocs",
"mkdocs-material",
"mkdocstrings[python]",
"mkdocstrings-python-xref",
"mike",
"markdown>=3.6",
"pymdown-extensions",
"mkdocs-glightbox",
"mkdocs-section-index",
"griffe-modernized-annotations",
"pygments>=2.16",
"mkdocs >=1.6.1",
"mkdocs-material >=9.6.15",
"mkdocstrings-python >=1.16.12",
"mkdocstrings-python-xref >=1.16.3",
"mike >=2.1.3",
"markdown >=3.6",
"pymdown-extensions >=10.16",
"mkdocs-exclude >=1.0.2",
"mkdocs-glightbox >=0.4.0",
"mkdocs-open-in-new-tab >=1.0.8",
"mkdocs-section-index >=0.3.10",
"griffe-modernized-annotations >=1.0.8",
"griffe-warnings-deprecated >=1.1.0",
"pygments >=2.16",
"markdown-exec[ansi] >=1.11.0",
"pydocstyle >=6.3.0",
"linkcheckmd >=1.4.0",
{ include-group = 'docs-coverage' },
]
all = [
{ include-group = 'dev' },
{ include-group = 'docs' },
]

[build-system]
Expand Down Expand Up @@ -64,6 +85,7 @@ select = [
"I"
]
preview = true
pydocstyle = { convention = 'google' }

[tool.ruff.format]
quote-style = "double"
Expand Down
44 changes: 44 additions & 0 deletions src/flet_map/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,47 @@
TileDisplay,
TileLayerEvictErrorTileStrategy,
)

__all__ = [
"AttributionAlignment",
"Camera",
"CameraFit",
"CircleLayer",
"CircleMarker",
"CursorKeyboardRotationConfiguration",
"CursorRotationBehaviour",
"DashedStrokePattern",
"DottedStrokePattern",
"FadeInTileDisplay",
"ImageSourceAttribution",
"InstantaneousTileDisplay",
"InteractionConfiguration",
"InteractionFlag",
"KeyboardConfiguration",
"Map",
"MapEvent",
"MapEventSource",
"MapHoverEvent",
"MapLatitudeLongitude",
"MapLatitudeLongitudeBounds",
"MapPointerEvent",
"MapPositionChangeEvent",
"MapTapEvent",
"Marker",
"MarkerLayer",
"MultiFingerGesture",
"PatternFit",
"PolygonLayer",
"PolygonMarker",
"PolylineLayer",
"PolylineMarker",
"RichAttribution",
"SimpleAttribution",
"SolidStrokePattern",
"SourceAttribution",
"StrokePattern",
"TextSourceAttribution",
"TileDisplay",
"TileLayer",
"TileLayerEvictErrorTileStrategy",
]
Loading