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
23 changes: 6 additions & 17 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@
repos:
-
repo: 'https://github.com/ambv/black'
# 18.6b1
rev: stable
hooks:
- id: black
args: ['--safe']
-
repo: 'https://github.com/pre-commit/pre-commit-hooks'
rev: v2.0.0
hooks:
- id: flake8
args: [
# E501 let black handle all line length decisions
# W503 black conflicts with "line break before operator" rule
# E203 black conflicts with "whitespace before ':'" rule
'--ignore=E501,W503,E203,W605']
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.4
hooks:
- id: ruff
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

huzzah.gif

args: [--fix]
- id: ruff-format
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

25 changes: 16 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ build-backend = "setuptools.build_meta"

[project]
name = "supermercado"
version = "0.3.0"
version = "0.4.0"
description = "Supercharged mercantile"
readme = "README.md"
requires-python = ">=3.10"
requires-python = ">=3.12"
authors = [{ name = "Mapbox Raster", email = "raster@mapbox.com" }]
license = { file = "LICENSE" }
dependencies = [
Expand All @@ -26,8 +26,6 @@ classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries",
"Topic :: Scientific/Engineering :: GIS"
Expand All @@ -42,7 +40,8 @@ supermercado = "supermercado.scripts.cli:cli"

[project.optional-dependencies]
test = [
"pytest"
"pytest>=8.2.0",
"pytest-cov"
]

[tool.setuptools]
Expand All @@ -51,15 +50,17 @@ include-package-data = true
[tool.setuptools.packages.find]
exclude = ["tests*", "docs*"]

[tool.uv]
dev-dependencies = [
"pytest==7.2.0",
[dependency-groups]
dev = [
"pre-commit",
"pytest>=8.2.0",
"pytest-cov",
"ruff==0.5.4"
]

[tool.ruff]
line-length = 88
target-version = "py39"
target-version = "py312"
src = ["supermercado", "tests"]

[tool.ruff.lint]
Expand All @@ -69,3 +70,9 @@ ignore = ["E203", "E501", "E712", "F401" ]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"

[tool.pytest.ini_options]
filterwarnings = [
"ignore:Sequences of Features, not FeatureCollections, will be the default in version 1.0.0:FutureWarning",
"ignore:Mercantile 2.0 will require tile x and y to be within the range .*:FutureWarning",
]
Comment on lines +75 to +78
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This'll come in handy, if a bit noisy.

Loading
Loading