Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
almostintuitive committed Feb 29, 2024
1 parent d857104 commit a69c0a0
Show file tree
Hide file tree
Showing 5 changed files with 100 additions and 42 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/black.yaml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/flake8.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/isort.yaml

This file was deleted.

12 changes: 12 additions & 0 deletions .github/workflows/ruff.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Ruff
on: push
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
with:
version: 0.1.11


88 changes: 88 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,91 @@ push = false
'current_version = "{version}"',
'version = "{version}"'
]


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

ignore = ["RUF200", "DTZ011","PD901", "PGH003", "COM812", "ISC001", "PD101", "C408", "DTZ005", "E501", "PLR2004", "PLR0913", "B904", "N803", "ARG001", "ARG002", "PD010", "N806", "I001", "TID252", "N802", "A002", "PD011", "PGH004", "N818", "PLR0911", "PT011", "PD003", "DTZ001", "INP001", "N815", "A003"]
select = [
# pyflakes
"F",
# pycodestyle
"E",
"W",
# isort
"I",
# pep8-naming
"N",
# pyupgrade
"UP",
# flake8-annotations
# "ANN",
# flake8-bandit
# "S",
# flake8-blind-except
"BLE",
# flake8-boolean-trap
# "FBT",
# flake8-bugbear
"B",
# flake8-builtins
"A",
# flake8-commas
"COM",
# flake8-comprehensions
"C4",
# flake8-datetimez
"DTZ",
# flake8-debugger
"T10",
# flake8-errmsg
# "EM",
# flake8-executable
# "EXE",
# flake8-implicit-str-concat
"ISC",
# flake8-import-conventions
"ICN",
# flake8-logging-format
# "G",
# flake8-no-pep420
"INP",
# flake8-pie
"PIE",
# flake8-print
# "T20",
# flake8-pytest-style
"PT",
# flake8-quotes
"Q",
# flake8-return
"RET",
# flake8-simplify
"SIM",
# flake8-tidy-imports
# "TID",
# flake8-type-checking
# "TCH",
# flake8-unused-arguments
"ARG",
# flake8-use-pathlib
"PTH",
# pandas-vet
"PD",
# pygrep-hooks
"PGH",
# pylint
"PLE", "PLR", "PLW",
# flake8-raise
"RSE",
# ruff-specific rules
"RUF"
]
fixable = ["ALL"]
unsafe-fixes = true


[per-file-ignores]
"__init__.py" = ["E", "F", "I", "N", "F403"]

0 comments on commit a69c0a0

Please sign in to comment.