Skip to content

Commit

Permalink
Merge pull request #112 from staciax/ruff
Browse files Browse the repository at this point in the history
drop python 3.8, 3.9
  • Loading branch information
staciax committed Apr 19, 2024
2 parents a2578be + db1cf65 commit b4d3b29
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.8-alpine
FROM python:3.10-alpine
WORKDIR /app
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
Expand Down
9 changes: 1 addition & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ View on Docker image on [DockerHub](https://hub.docker.com/r/marchingon12/valora

## Installation

* [Python 3.8+](https://www.python.org/downloads/)
* [Python 3.10+](https://www.python.org/downloads/)

* Install requirements

Expand All @@ -131,13 +131,6 @@ View on Docker image on [DockerHub](https://hub.docker.com/r/marchingon12/valora
pip install -r requirements.txt
```

```bash
# manual install package
pip discord.py
pip install requests
pip install python-dotenv
```

* Store discord bot token and owner ID under [.env](/.env)

```
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
[project]
name = "valorant-discord-bot"
requires-python = ">=3.12"
requires-python = ">=3.10"

[tool.pyright]
include = ["cogs"]
exclude = ["**/__pycache__", ".git", ".ruff_cache", ".venv"]
pythonVersion = "3.12"
pythonVersion = "3.10"
typeCheckingMode = "basic"
reportUnnecessaryTypeIgnoreComment = "warning"
reportMissingParameterType = "error"
reportUnusedVariable = "warning"

[tool.ruff]
line-length = 120
target-version = "py312"
target-version = "py310"
exclude = [".git", ".ruff_cache", ".venv"]

[tool.ruff.lint]
Expand Down

0 comments on commit b4d3b29

Please sign in to comment.