Skip to content

Commit

Permalink
Merge branch 'main' into ruff_0.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Dec 16, 2024
2 parents 64e3dcc + 10b9b69 commit 983be58
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 20 deletions.
3 changes: 1 addition & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,13 @@ repos:
- id: black

- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.11.2"
rev: "v1.13.0"
hooks:
- id: mypy
args: []
additional_dependencies: &mypy-deps
- pytest


- repo: https://github.com/codespell-project/codespell
rev: "v2.3.0"
hooks:
Expand Down
27 changes: 9 additions & 18 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,11 @@ test = [
"pyodide-lock==v0.1.0a8",
]


[project.urls]
"Homepage" = "https://github.com/pyodide/micropip"
"Bug Tracker" = "https://github.com/pyodide/micropip/issues"



[build-system]
requires = ["setuptools>=42", "setuptools_scm[toml]>=6.2", "wheel"]

Expand All @@ -41,28 +39,21 @@ build-backend = "setuptools.build_meta"
write_to = "micropip/_version.py"

[tool.ruff]
line-length = 122
lint.select = [
"E", # pycodestyles
"W", # pycodestyles
"F", # pyflakes
"B0", # bugbear (all B0* checks enabled by default)
"B904", # bugbear (Within an except clause, raise exceptions with raise ... from err)
"B905", # bugbear (zip() without an explicit strict= parameter set.)
"B", # bugbear
"C4", # flake8-comprehensions
"C90", # mccabe code complexity
"PERF", # perflint
"UP", # pyupgrade
"E", # pycodestyles
"F", # pyflakes
"G", # flake8-logging-format
"I", # isort
"PERF", # perflint
"PGH", # pygrep-hooks
"G", # flake8-logging-format
"UP", # pyupgrade
"W", # pycodestyles
]
# Remove E999 once pattern matching is supported
# https://github.com/charliermarsh/ruff/issues/282
lint.flake8-comprehensions.allow-dict-calls-with-keyword-arguments = true
lint.ignore = ["E402", "E501", "E731", "E741", "E999"]
lint.mccabe.max-complexity = 13
target-version = "py311"

target-version = "py312"

[tool.ruff.lint.isort]
known-first-party = [
Expand Down

0 comments on commit 983be58

Please sign in to comment.