Skip to content

Commit

Permalink
Switch from flake8 to ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatal1ty committed Aug 24, 2023
1 parent b1eb33f commit 5802920
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
pip install --upgrade pip
pip install .
pip install -r requirements-dev.txt
- name: Run flake8
run: flake8 mashumaro --ignore=E203,W503
- name: Run ruff
run: ruff mashumaro
- name: Run mypy
run: mypy mashumaro
- name: Run black
Expand Down
2 changes: 1 addition & 1 deletion mashumaro/core/meta/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def is_generic(typ: Type) -> bool:
# noinspection PyUnresolvedReferences
if (
issubclass(typ.__class__, typing._BaseGenericAlias) # type: ignore
or type(typ) is types.GenericAlias # type: ignore
or type(typ) is types.GenericAlias # noqa: E721
):
return True
else:
Expand Down
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ module = [
]
disable_error_code = 'return'

[flake8]
max-line-length = 79

[tool.isort]
profile = 'black'
line_length = 79
Expand Down
3 changes: 1 addition & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ orjson>=3.6.1

# tests
mypy>=0.812
flake8>=3.8.4
isort>=5.6.4
pytest>=6.2.1
pytest-mock>=3.5.1
pytest-cov>=2.10.1
coveralls>=3.0.0
flake8-isort>=4.0.0
black>=20.8b1
ruff>=0.0.285
codespell>=2.2.2

# third party features
Expand Down

0 comments on commit 5802920

Please sign in to comment.