Skip to content

Commit f502240

Browse files
authored
Merge pull request #173 from justmobilize/ruff-updates
Ruff updates
2 parents 6c56de7 + edef59a commit f502240

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+220
-640
lines changed

.gitattributes

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# SPDX-FileCopyrightText: 2024 Justin Myers for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: Unlicense
4+
5+
* text eol=lf

.pre-commit-config.yaml

+11-37
Original file line numberDiff line numberDiff line change
@@ -1,47 +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.2.0
8-
hooks:
9-
- id: black
10-
- repo: https://github.com/PyCQA/isort
11-
rev: 5.13.2
12-
hooks:
13-
- id: isort
14-
args: ["--profile", "black", "--filter-files"]
15-
- repo: https://github.com/fsfe/reuse-tool
16-
rev: v1.1.2
17-
hooks:
18-
- id: reuse
196
- repo: https://github.com/pre-commit/pre-commit-hooks
20-
rev: v4.4.0
7+
rev: v4.5.0
218
hooks:
229
- id: check-yaml
2310
- id: end-of-file-fixer
2411
- id: trailing-whitespace
25-
- repo: https://github.com/pycqa/pylint
26-
rev: v2.17.4
12+
- repo: https://github.com/astral-sh/ruff-pre-commit
13+
rev: v0.3.4
14+
hooks:
15+
- id: ruff-format
16+
- id: ruff
17+
args: ["--fix"]
18+
- repo: https://github.com/fsfe/reuse-tool
19+
rev: v3.0.1
2720
hooks:
28-
- id: pylint
29-
name: pylint (library code)
30-
types: [python]
31-
args:
32-
- --disable=consider-using-f-string
33-
exclude: "^(docs/|examples/|tests/|setup.py$)"
34-
- id: pylint
35-
name: pylint (example code)
36-
description: Run pylint rules on "examples/*.py" files
37-
types: [python]
38-
files: "^examples/"
39-
args:
40-
- --disable=consider-using-f-string,duplicate-code,missing-docstring,invalid-name
41-
- id: pylint
42-
name: pylint (test code)
43-
description: Run pylint rules on "tests/*.py" files
44-
types: [python]
45-
files: "^tests/"
46-
args:
47-
- --disable=consider-using-f-string,duplicate-code,missing-docstring,invalid-name,protected-access,redefined-outer-name
21+
- id: reuse

0 commit comments

Comments
 (0)