Skip to content

Commit a1b90b9

Browse files
Make _get_extent a utils function
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 707375c commit a1b90b9

24 files changed

+715
-515
lines changed

.cruft.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
{
2-
"template": "https://github.com/scverse/cookiecutter-scverse",
3-
"commit": "c21b82bf134f3a0f13db7482d4fb04ca1f562d59",
4-
"checkout": "main",
5-
"context": {
6-
"cookiecutter": {
7-
"project_name": "spatialdata-plot",
8-
"package_name": "spatialdata_plot",
9-
"project_description": "A very interesting piece of code",
10-
"author_full_name": "scverse",
11-
"author_email": "scverse",
12-
"github_user": "scverse",
13-
"project_repo": "https://github.com/scverse/spatialdata-plot",
14-
"license": "BSD 3-Clause License",
15-
"_copy_without_render": [
16-
".github/workflows/**.yaml",
17-
"docs/_templates/autosummary/**.rst"
18-
],
19-
"_template": "https://github.com/scverse/cookiecutter-scverse"
20-
}
21-
},
22-
"directory": null
2+
"template": "https://github.com/scverse/cookiecutter-scverse",
3+
"commit": "c21b82bf134f3a0f13db7482d4fb04ca1f562d59",
4+
"checkout": "main",
5+
"context": {
6+
"cookiecutter": {
7+
"project_name": "spatialdata-plot",
8+
"package_name": "spatialdata_plot",
9+
"project_description": "A very interesting piece of code",
10+
"author_full_name": "scverse",
11+
"author_email": "scverse",
12+
"github_user": "scverse",
13+
"project_repo": "https://github.com/scverse/spatialdata-plot",
14+
"license": "BSD 3-Clause License",
15+
"_copy_without_render": [
16+
".github/workflows/**.yaml",
17+
"docs/_templates/autosummary/**.rst"
18+
],
19+
"_template": "https://github.com/scverse/cookiecutter-scverse"
20+
}
21+
},
22+
"directory": null
2323
}

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 0 additions & 89 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/codecov.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Based on spatialdata
2+
codecov:
3+
require_ci_to_pass: false
4+
5+
coverage:
6+
status:
7+
project:
8+
default:
9+
# Require 1% coverage, i.e., always succeed
10+
target: 1
11+
patch: false
12+
changes: false
13+
14+
comment:
15+
layout: "diff, flags, files"
16+
behavior: once
17+
require_base: false

.github/workflows/test.yaml.rej

Lines changed: 0 additions & 42 deletions
This file was deleted.

.mypy.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ no_warn_no_return = True
2525

2626
show_error_codes = True
2727
show_column_numbers = True
28-
error_summary = True
28+
error_summary = True

.pre-commit-config.yaml

Lines changed: 7 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,9 @@ default_stages:
55
- commit
66
- push
77
minimum_pre_commit_version: 2.16.0
8+
ci:
9+
skip: []
810
repos:
9-
- repo: https://github.com/nbQA-dev/nbQA
10-
rev: 1.7.0
11-
hooks:
12-
- id: nbqa-pyupgrade
13-
args: [--py38-plus]
14-
- id: nbqa-black
15-
- id: nbqa-isort
1611
- repo: https://github.com/psf/black
1712
rev: 23.3.0
1813
hooks:
@@ -25,73 +20,14 @@ repos:
2520
rev: 1.13.0
2621
hooks:
2722
- id: blacken-docs
28-
- repo: https://github.com/PyCQA/isort
29-
rev: 5.12.0
30-
hooks:
31-
- id: isort
3223
- repo: https://github.com/pre-commit/mirrors-mypy
3324
rev: v1.2.0
3425
hooks:
3526
- id: mypy
3627
additional_dependencies: [numpy, types-requests]
37-
exclude: tests/|docs/|temp/
38-
- repo: https://github.com/asottile/yesqa
39-
rev: v1.4.0
40-
hooks:
41-
- id: yesqa
42-
additional_dependencies:
43-
- flake8-tidy-imports
44-
- flake8-docstrings
45-
- flake8-rst-docstrings
46-
- flake8-comprehensions
47-
- flake8-bugbear
48-
- flake8-blind-except
49-
- repo: https://github.com/pre-commit/pre-commit-hooks
50-
rev: v4.4.0
51-
hooks:
52-
- id: detect-private-key
53-
- id: check-ast
54-
- id: end-of-file-fixer
55-
- id: mixed-line-ending
56-
args: [--fix=lf]
57-
- id: trailing-whitespace
58-
- id: check-case-conflict
59-
- id: check-docstring-first
60-
- repo: https://github.com/PyCQA/autoflake
61-
rev: v2.0.2
62-
hooks:
63-
- id: autoflake
64-
args:
65-
- --in-place
66-
- --remove-all-unused-imports
67-
- --remove-unused-variable
68-
- --ignore-init-module-imports
69-
- repo: https://github.com/PyCQA/flake8
70-
rev: 6.0.0
71-
hooks:
72-
- id: flake8
73-
additional_dependencies:
74-
- flake8-tidy-imports
75-
- flake8-docstrings
76-
- flake8-rst-docstrings
77-
- flake8-comprehensions
78-
- flake8-bugbear
79-
- flake8-blind-except
80-
- repo: https://github.com/asottile/pyupgrade
81-
rev: v3.3.1
82-
hooks:
83-
- id: pyupgrade
84-
args: [--py3-plus, --py39-plus, --keep-runtime-typing]
85-
- repo: https://github.com/pre-commit/pygrep-hooks
86-
rev: v1.10.0
87-
hooks:
88-
- id: python-no-eval
89-
- id: python-use-type-annotations
90-
- id: python-check-blanket-noqa
91-
- id: rst-backticks
92-
- id: rst-directive-colons
93-
- id: rst-inline-touching-normal
94-
- repo: https://github.com/PyCQA/doc8
95-
rev: v1.1.1
28+
exclude: tests/|docs/
29+
- repo: https://github.com/charliermarsh/ruff-pre-commit
30+
rev: v0.0.261
9631
hooks:
97-
- id: doc8
32+
- id: ruff
33+
args: [--fix, --exit-non-zero-on-fix]

.readthedocs.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ build:
66
python: "3.10"
77
sphinx:
88
configuration: docs/conf.py
9-
# disable this for more lenient docs builds
10-
fail_on_warning: true
9+
fail_on_warning: false
1110
python:
1211
install:
1312
- method: pip
1413
path: .
1514
extra_requirements:
16-
- doc
15+
- docs

0 commit comments

Comments
 (0)