Skip to content

Commit

Permalink
Dependabot is back in action, local pre-commit ruff config
Browse files Browse the repository at this point in the history
  • Loading branch information
Xithrius committed Oct 29, 2023
1 parent d89c250 commit fc66515
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 5 deletions.
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: 2

updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily

- package-ecosystem: pip
directory: api
schedule:
interval: daily

- package-ecosystem: pip
directory: bot
schedule:
interval: daily
24 changes: 19 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ repos:
hooks:
- id: python-check-blanket-noqa

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.3
hooks:
- id: ruff

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
Expand All @@ -42,3 +37,22 @@ repos:
- --autofix
- --preserve-quotes
- --indent=2

- repo: local
hooks:
- id: ruff-lint
name: ruff linting
description: Run ruff linting
entry: pdm ruff check
language: system
"types_or": [python, pyi]
require_serial: true
args: [--fix, --exit-non-zero-on-fix]

- id: ruff-format
name: ruff formatting
description: Run ruff formatting
entry: pdm ruff format
language: system
"types_or": [python, pyi]
require_serial: true

0 comments on commit fc66515

Please sign in to comment.