Skip to content

Commit

Permalink
ci: fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
long2ice committed Jan 5, 2024
1 parent e69d56b commit 0a749a8
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 61 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.x"
python-version: "3.7"
- name: Install and configure Poetry
run: |
pip install -U pip poetry
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: '3.7'
- name: Install and configure Poetry
run: |
pip install -U pip poetry
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ style: deps

check: deps
black --check $(black_opts) $(checkfiles) || (echo "Please run 'make style' to auto-fix style issues" && false)
flake8 $(checkfiles)
ruff $(checkfiles)
bandit -x tests -r $(checkfiles)

test: deps
Expand Down
91 changes: 34 additions & 57 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ python = "^3.7"
uvicorn = "*"
bandit = "*"
black = "*"
flake8 = "*"
ruff = "*"
isort = "*"
pytest = "*"
pytest-asyncio = "*"
Expand All @@ -34,3 +34,13 @@ requests = "*"
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0"]

[tool.isort]
profile = "black"

[tool.black]
line-length = 100
target-version = ['py38', 'py39', 'py310', 'py311']

[tool.ruff]
line-length = 100

0 comments on commit 0a749a8

Please sign in to comment.