Skip to content

Commit

Permalink
Merge pull request #25 from qua-platform/update_linting_rules
Browse files Browse the repository at this point in the history
Refactor: update linting rules
  • Loading branch information
maxim-v4s authored Nov 6, 2024
2 parents bed4f55 + 32368d7 commit a591b8f
Show file tree
Hide file tree
Showing 4 changed files with 105 additions and 91 deletions.
128 changes: 65 additions & 63 deletions poetry.lock

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

21 changes: 16 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ qualibrate-app = "^0.2.1"

[tool.poetry.group.dev.dependencies]
mypy = "^1.8.0"
ruff = "^0.1.15"
ruff = "^0.7.0"
poethepoet = "^0.25.0"

#[tool.poetry.group.qm-dev.dependencies]
Expand All @@ -49,7 +49,6 @@ exclude = ['tests/']
module = [
"jsonpatch",
"jsonpointer",
"qualibrate",
"qualibrate_app.*",
"qualibrate_runner.*",
"json_timeline_database.*",
Expand All @@ -58,13 +57,25 @@ ignore_missing_imports = true

[tool.ruff]
line-length = 80
extend-select = ["I"]
target-version = "py39"

[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # Pyflakes
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"I", # isort
]

[tool.ruff.lint.pycodestyle]
max-line-length = 80
max-doc-length = 80

[tool.poe.tasks]
lint = "ruff ."
lint-fix = "ruff --fix ."
lint = "ruff check ."
lint-fix = "ruff check --fix ."
format = "ruff format --check ."
format-fix = "ruff format ."
type = "mypy ."
Expand Down
Loading

0 comments on commit a591b8f

Please sign in to comment.