Skip to content

Commit

Permalink
⚡ Configure ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
arv-anshul committed Feb 13, 2024
1 parent 3175c3d commit 52881f7
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs_src/generate_simpleicons_css.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@
Go to simple-icons website: https://simpleicons.org
Check `simpleicons` library: https://github.com/sachinraja/simple-icons-py
"""
from __future__ import annotations

import json
import logging
from pathlib import Path
from typing import TYPE_CHECKING

from simpleicons import icons
from simpleicons.icon import Icon

if TYPE_CHECKING:
from simpleicons.icon import Icon

SIMPLEICONS_CSS_PATH = Path("docs/stylesheets/simpleicons.css")
SIMPLEICONS_JSON_PATH = Path("data/simpleicons.json")
Expand Down
46 changes: 46 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,49 @@ dependencies = [
managed = true
virtual = true
dev-dependencies = []

[tool.ruff]
target-version = "py311"

[tool.ruff.lint]
extend-select = [
"B",
"BLE",
"C4",
"C90",
"E",
"F",
"I",
"ICN",
"INP",
"ISC",
"PGH",
"PIE",
"PTH",
"Q",
"RSE",
"RUF",
"S",
"SIM",
"TCH",
"UP",
"W",
"YTT",
]
extend-ignore = [
"B008",
"B905",
"E501",
"E741",
"INP001",
"ISC001",
"N818",
"PGH003",
"S101",
"S301",
"UP035",
]
extend-unfixable = ["B", "F401"]

[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402", "F401"]

0 comments on commit 52881f7

Please sign in to comment.