Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump ruff from 0.2.2 to 0.3.0 #17

Merged
merged 5 commits into from
Mar 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions poetry.lock

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

8 changes: 5 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ python = "^3.11"
bandit = "^1.7.6"
mypy = "^1.8.0"
poethepoet = "^0.25.0"
ruff = "^0.2.1"
ruff = "^0.3.0"

[tool.poetry.group.test.dependencies]
pytest = "^8.0.0"
Expand All @@ -62,7 +62,7 @@ backend-path = ["src"]
[tool.poe.tasks]
bandit = "bandit -c pyproject.toml -r ."
mypy = "mypy"
ruff = "ruff --fix"
ruff = "ruff check --fix"
lint = ["bandit", "mypy", "ruff"]
format = "ruff format"
test = "pytest --cov=src --cov-report=html"
Expand All @@ -89,14 +89,16 @@ exclude = [
]
line-length = 88
target-version = "py311"
src = ["src", "tests"]

[tool.ruff.lint]
select = [
"E",
"F",
"W",
"I",
]
ignore = []
src = ["src", "tests"]

[tool.ruff.format]
docstring-code-format = true
Expand Down
1 change: 1 addition & 0 deletions src/bmkg/enums/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Module to store common enum classes used by bmkg.
"""

from .cardinal import Cardinal
from .province import Province
from .sexa import Sexa
Expand Down
1 change: 1 addition & 0 deletions src/bmkg/enums/cardinal.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Module to store a str enum class representation cardinal directions.
"""

from enum import StrEnum

__all__ = ["Cardinal"]
Expand Down
1 change: 1 addition & 0 deletions src/bmkg/enums/province.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Module to store a str enum class representation the name of the province.
"""

from enum import StrEnum

__all__ = ["Province"]
Expand Down
1 change: 1 addition & 0 deletions src/bmkg/enums/sexa.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Module to store a str enum class representation sexa directions.
"""

from enum import StrEnum

__all__ = ["Sexa"]
Expand Down
1 change: 1 addition & 0 deletions src/bmkg/enums/type.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Module to store a str enum class representation area type.
"""

from enum import StrEnum

__all__ = ["Type"]
Expand Down
1 change: 1 addition & 0 deletions src/bmkg/enums/weather.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Module to store an int enum class representation of the weather code.
"""

from enum import IntEnum

__all__ = ["Weather"]
Expand Down