Skip to content

Commit

Permalink
Merge pull request #828 from dianna-ai/fix_ruff
Browse files Browse the repository at this point in the history
fix ruff invocation in linting workflow
  • Loading branch information
egpbos authored Jul 31, 2024
2 parents b9faca7 + 62a50e5 commit 430be09
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:
- name: Check code style
run: |
ruff dianna tests
ruff check dianna tests
37 changes: 10 additions & 27 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ extras = dev
"""

[tool.ruff]
extend-exclude = [
"scripts",
]

target-version = "py310"
line-length = 120


[tool.ruff.lint]
# Enable Pyflakes `E` and `F` codes by default.
select = [
"F", # Pyflakes
Expand Down Expand Up @@ -58,39 +67,13 @@ ignore = [
fixable = ["A", "B", "C", "D", "E", "F", "I"]
unfixable = []

exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
".venv",
"scripts",
]
per-file-ignores = {}


# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"

target-version = "py310"
line-length = 120

[tool.ruff.isort]
[tool.ruff.lint.isort]
known-first-party = ["dianna"]
force-single-line = true
no-lines-before = ["future","standard-library","third-party","first-party","local-folder"]

0 comments on commit 430be09

Please sign in to comment.