Skip to content

Commit

Permalink
Fix ruff warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dyve committed Apr 20, 2024
1 parent 2e7567c commit e9cfbec
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -12,11 +12,11 @@ tests:
.PHONY: reformat
reformat:
ruff format .
ruff --fix .
ruff check . --fix

.PHONY: lint
lint:
ruff .
ruff check .

.PHONY: docs
docs: clean
Expand Down
10 changes: 6 additions & 4 deletions pyproject.toml
Expand Up @@ -44,6 +44,11 @@ Source = "https://github.com/zostera/django-icons"

[tool.ruff]
fix = false
line-length = 120
src = ["src"]
target-version = "py38"

[tool.ruff.lint]
fixable = [
"I001", # isort (sorting)
"F", # flake8
Expand All @@ -56,21 +61,18 @@ ignore = [
"D212", # D212: Multi-line docstring summary should start at the first line
"D301", # D301: Use r”“” if any backslashes in a docstring (unclear how else to handle backslashes in docstrings)
]
line-length = 120
select = [
"D", # pydocstyle
"E", # pycodestyle
"F", # flake8
"I", # isort
"UP", # pyupgrade
]
src = ["src"]
target-version = "py38"
unfixable = [
"F8", # names in flake8, such as defined but unused variables
]

[tool.ruff.isort]
[tool.ruff.lint.isort]
known-first-party = ["django_marina", "app"]
known-third-party = ["django"]

Expand Down
2 changes: 1 addition & 1 deletion requirements-test.txt
@@ -1,3 +1,3 @@
tox==4.14.2
coverage==7.4.4
ruff==0.3.7
ruff==0.4.1

0 comments on commit e9cfbec

Please sign in to comment.