Skip to content

Commit

Permalink
Use ruff for all formatting and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmiclat committed Nov 21, 2023
1 parent 750a26c commit 61da614
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 202 deletions.
8 changes: 3 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
repos:
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.291
rev: v0.1.6
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.7.0
hooks:
Expand Down
218 changes: 27 additions & 191 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ authors = ["Jt Miclat <jtmiclat@gmail.com>"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/jtmiclat/folium-pmtiles"
packages = [{include = "folium_pmtiles"}]
packages = [{ include = "folium_pmtiles" }]
classifiers = [
"Topic :: Scientific/Engineering :: GIS",
"Topic :: Scientific/Engineering :: Visualization",
"License :: OSI Approved :: MIT License"
"License :: OSI Approved :: MIT License",
]

[tool.poetry.dependencies]
Expand All @@ -19,19 +19,18 @@ folium = ">=0.14.0"


[tool.poetry.group.dev.dependencies]
flake8 = {version= "^6.0.0", python=">=3.8.1"}
black = "^23.1.0"
pre-commit = "^3.0.4"
isort = "^5.12.0"
nbqa = "^1.6.1"
urllib3 = "<2.0.0"
ruff = "^0.1.6"


[tool.poetry.group.notebook.dependencies]
jupyter = "^1.0.0"

[tool.ruff]
ignore = ["E501"]
extend-include = ["*.ipynb"]


[build-system]
requires = ["poetry-core"]
Expand Down

0 comments on commit 61da614

Please sign in to comment.