Skip to content

Commit

Permalink
Switched from flake8 to ruff.
Browse files Browse the repository at this point in the history
Python 3.12 tested.
  • Loading branch information
coady committed Mar 14, 2023
1 parent 0f040f4 commit 7199a4d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12.0-alpha - 3.12']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand All @@ -29,7 +29,7 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: pip install black[jupyter] flake8 mypy
- run: pip install black[jupyter] ruff mypy
- run: make lint

docs:
Expand Down
6 changes: 3 additions & 3 deletions Makefile
@@ -1,10 +1,10 @@
check:
python3 -m pytest -s --cov
python -m pytest -s --cov

lint:
black --check .
flake8 --ignore E203,E501,F811 waiter tests
ruff .
mypy -p waiter

html:
PYTHONPATH=$(PWD) python3 -m mkdocs build
PYTHONPATH=$(PWD) python -m mkdocs build
4 changes: 4 additions & 0 deletions pyproject.toml
Expand Up @@ -21,6 +21,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
Expand All @@ -43,6 +44,9 @@ waiter = ["py.typed"]
line-length = 100
skip-string-normalization = true

[tool.ruff]
ignore = ["E501", "F811"]

[[tool.mypy.overrides]]
module = ["multimethod"]
ignore_missing_imports = true
Expand Down

0 comments on commit 7199a4d

Please sign in to comment.