Skip to content

Commit

Permalink
chore: adapt ruff call in github build to new format (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
sighphyre authored Jun 28, 2024
1 parent b533c60 commit 568d85b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fmt:

lint:
black . --check && \
ruff UnleashClient tests docs && \
ruff check UnleashClient tests docs && \
mypy ${PROJECT_NAME} --install-types --non-interactive;

pytest:
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,19 @@ addopts= """
log_file_level="INFO"

[tool.ruff]
select = [
lint.select = [
"E", # pycodestyle, error
"W", # pycodestyle, warning
"F", # pyflakes
"PL", # pylint,
"YTT", # flake8-2020
"I" # isort
]
ignore = ["E501", "PLR2004"]
lint.ignore = ["E501", "PLR2004"]

fixable = ["I"]
lint.fixable = ["I"]

[tool.ruff.pylint]
[tool.ruff.lint.pylint]
max-args = 25

[tool.setuptools]
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/test_custom_strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def test_uc_customstrategy_happypath(recwarn):

# Check warning on deprecated strategy.
assert len(recwarn) >= 1
assert any([x.category == DeprecationWarning for x in recwarn])
assert any([x.category is DeprecationWarning for x in recwarn])


@responses.activate
Expand Down

0 comments on commit 568d85b

Please sign in to comment.