Skip to content

Commit 20711f2

Browse files
committed
change to ruff
1 parent ca9a18d commit 20711f2

11 files changed

+181
-490
lines changed

.gitattributes

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# SPDX-FileCopyrightText: 2024 Justin Myers for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: Unlicense
4+
5+
.py text eol=lf
6+
.rst text eol=lf
7+
.txt text eol=lf
8+
.yaml text eol=lf
9+
.toml text eol=lf
10+
.license text eol=lf
11+
.md text eol=lf

.pre-commit-config.yaml

Lines changed: 11 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,21 @@
1-
# SPDX-FileCopyrightText: 2020 Diego Elio Pettenò
1+
# SPDX-FileCopyrightText: 2024 Justin Myers for Adafruit Industries
22
#
33
# SPDX-License-Identifier: Unlicense
44

55
repos:
6-
- repo: https://github.com/python/black
7-
rev: 24.10.0
8-
hooks:
9-
- id: black
10-
- repo: https://github.com/fsfe/reuse-tool
11-
rev: v4.0.3
12-
hooks:
13-
- id: reuse
146
- repo: https://github.com/pre-commit/pre-commit-hooks
15-
rev: v5.0.0
7+
rev: v4.5.0
168
hooks:
179
- id: check-yaml
1810
- id: end-of-file-fixer
1911
- id: trailing-whitespace
20-
- id: mixed-line-ending
21-
args:
22-
- --fix=lf
23-
- repo: https://github.com/pycqa/pylint
24-
rev: v3.3.1
12+
- repo: https://github.com/astral-sh/ruff-pre-commit
13+
rev: v0.3.4
2514
hooks:
26-
- id: pylint
27-
name: pylint (library code)
28-
types: [python]
29-
args:
30-
- --disable=consider-using-f-string
31-
exclude: "^(docs/|examples/|tests/|setup.py$)"
32-
- id: pylint
33-
name: pylint (example code)
34-
description: Run pylint rules on "examples/*.py" files
35-
types: [python]
36-
files: "^examples/"
37-
args:
38-
- --disable=missing-docstring,invalid-name,consider-using-f-string,duplicate-code
39-
- id: pylint
40-
name: pylint (test code)
41-
description: Run pylint rules on "tests/*.py" files
42-
types: [python]
43-
files: "^tests/"
44-
args:
45-
- --disable=missing-docstring,consider-using-f-string,duplicate-code
15+
- id: ruff-format
16+
- id: ruff
17+
args: ["--fix"]
18+
- repo: https://github.com/fsfe/reuse-tool
19+
rev: v3.0.1
20+
hooks:
21+
- id: reuse

0 commit comments

Comments
 (0)