Skip to content

Commit

Permalink
ci: use prettier legacy cli, remove black, update ruff config
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Jun 6, 2024
1 parent b0f9c38 commit 2c9f7a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ repos:
rev: v3.1.0
hooks:
- id: prettier
entry: env PRETTIER_LEGACY_CLI=1 prettier
args: [--ignore-unknown, --no-error-on-unmatched-pattern, "!chart/**"]

# Lint: Markdown
Expand Down
15 changes: 5 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ includes = ["osm_rawdata"]
source-includes = ["LICENSE.md", "README.md"]
[tool.pdm.dev-dependencies]
dev = [
"black>=23.7.0",
"commitizen>=3.6.0",
"pre-commit>=3.3.3",
]
Expand All @@ -83,16 +82,10 @@ docs = [
"mkdocs-exclude>=1.0.2",
]

[tool.black]
line-length = 132
target-versions = ["py310", "py311"]

[tool.ruff]
fix = true
line-length = 132
line-length = 88
target-version = "py310"
select = ["I", "E", "W", "D", "B", "F", "N", "Q"]
ignore = ["N805", "B008"]
exclude = [
".git",
".ruff_cache",
Expand All @@ -102,10 +95,12 @@ exclude = [
"dist",
"osm_rawdata/__version__.py",
]
[tool.ruff.pydocstyle]
[tool.ruff.lint]
select = ["I", "E", "W", "D", "B", "F", "N", "Q"]
ignore = ["N805", "B008"]
[tool.ruff.lint.pydocstyle]
convention = "google"


[project.scripts]
# osm-rawdata = "osm_rawdata.cmd:main"
importer = "osm_rawdata.importer:main"
Expand Down

0 comments on commit 2c9f7a9

Please sign in to comment.