Skip to content

Commit f59e354

Browse files
committed
Merge branch 'main' into chore/exclude-tests-from-build
2 parents d3c7b0d + 568d85b commit f59e354

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fmt:
3838

3939
lint:
4040
black . --check && \
41-
ruff UnleashClient tests docs && \
41+
ruff check UnleashClient tests docs && \
4242
mypy ${PROJECT_NAME} --install-types --non-interactive;
4343

4444
pytest:

pyproject.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -61,19 +61,19 @@ addopts= """
6161
log_file_level="INFO"
6262

6363
[tool.ruff]
64-
select = [
64+
lint.select = [
6565
"E", # pycodestyle, error
6666
"W", # pycodestyle, warning
6767
"F", # pyflakes
6868
"PL", # pylint,
6969
"YTT", # flake8-2020
7070
"I" # isort
7171
]
72-
ignore = ["E501", "PLR2004"]
72+
lint.ignore = ["E501", "PLR2004"]
7373

74-
fixable = ["I"]
74+
lint.fixable = ["I"]
7575

76-
[tool.ruff.pylint]
76+
[tool.ruff.lint.pylint]
7777
max-args = 25
7878

7979
[tool.setuptools]

tests/unit_tests/test_custom_strategy.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def test_uc_customstrategy_happypath(recwarn):
6666

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

7171

7272
@responses.activate

0 commit comments

Comments
 (0)