-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
59 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,9 @@ | |
.dso.jso | ||
params.yaml | ||
|
||
# uv | ||
.venv | ||
|
||
# Editors | ||
*.code-workspace | ||
.vscode | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
[project] | ||
name = "dsoproj" | ||
version = "0.1.0dev" | ||
description = "{{ project_description }}" | ||
readme = "README.md" | ||
requires-python = ">=3.10" | ||
dependencies = [ | ||
"dso-core>=0.9", | ||
] | ||
|
||
[tool.ruff] | ||
line-length = 120 | ||
extend-include = [ "*.ipynb" ] | ||
|
||
lint.select = [ | ||
"B", # flake8-bugbear | ||
"BLE", # flake8-blind-except | ||
"C4", # flake8-comprehensions | ||
"D", # pydocstyle | ||
"E", # Error detected by Pycodestyle | ||
"F", # Errors detected by Pyflakes | ||
"I", # isort | ||
"RUF100", # Report unused noqa directives | ||
"TID", # flake8-tidy-imports | ||
"UP", # pyupgrade | ||
"W", # Warning detected by Pycodestyle | ||
] | ||
lint.ignore = [ | ||
# Errors from function calls in argument defaults. These are fine when the result is immutable. | ||
"B008", | ||
# Missing docstring in public module | ||
"D100", | ||
# Missing docstring in public package | ||
"D104", | ||
# __magic__ methods are are often self-explanatory, allow missing docstrings | ||
"D105", | ||
# Missing docstring in __init__ | ||
"D107", | ||
## Disable one in each pair of mutually incompatible rules | ||
# We don’t want a blank line before a class docstring | ||
"D203", | ||
# We want docstrings to start immediately after the opening triple quote | ||
"D213", | ||
# first line should end with a period [Bug: doesn't work with single-line docstrings] | ||
"D400", | ||
# First line should be in imperative mood; try rephrasing | ||
"D401", | ||
# line too long -> we accept long comment lines; black gets rid of long code lines | ||
"E501", | ||
# Do not assign a lambda expression, use a def -> lambda expression assignments are convenient | ||
"E731", | ||
# allow I, O, l as variable names -> I is the identity matrix | ||
"E741", | ||
] | ||
lint.unfixable = [ "F841" ] |