Skip to content

Commit

Permalink
build(#11): make pip installable (#12)
Browse files Browse the repository at this point in the history
- [ ] I have considered whether this PR needs review, and requested a review if necessary.

Fixes issue #

# Notes for reviewers
Reviewers can skip X, but should pay attention to Y.
  • Loading branch information
MartinBernstorff authored Feb 3, 2024
2 parents 146296b + d133b9b commit e874998
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
{
"label": "Squash-submit",
"type": "shell",
"command": "memorymarker sync --automerge --squash",
"command": "lumberman sync --automerge --squash",
"presentation": {
"reveal": "always",
"clear": true,
Expand Down
21 changes: 11 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,7 @@ exclude = [".*venv*", ".tox"]
pythonPlatform = "Darwin"

[tool.ruff]
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
ignore = ["ANN101", "ANN401", "E402", "E501", "F401", "F841", "RET504", "UP035"]
ignore-init-module-imports = true
# Allow autofix for all enabled rules (when `--fix`) is provided.
unfixable = ["ERA"]
# Exclude a variety of commonly ignored directories.
target-version = "py310"
exclude = [
".bzr",
".direnv",
Expand All @@ -91,23 +86,29 @@ exclude = [
"__init__.py",
"docs/conf.py",
]

[tool.ruff.lint]
ignore = ["ANN101", "ANN401", "E402", "E501", "F401", "F841", "RET504", "UP035"]
ignore-init-module-imports = true
# Allow autofix for all enabled rules (when `--fix`) is provided.
unfixable = ["ERA"]
# Exclude a variety of commonly ignored directories.
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
target-version = "py310"

[tool.ruff.flake8-annotations]
[tool.ruff.lint.flake8-annotations]
mypy-init-return = true
suppress-none-returning = true

[tool.ruff.isort]
[tool.ruff.lint.isort]
known-third-party = ["wandb"]
required-imports = [
"from typing import Mapping, Sequence",
"from dataclasses import dataclass",
"from iterpy._iter import Iter",
]

[tool.ruff.mccabe]
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10

Expand Down

0 comments on commit e874998

Please sign in to comment.