File tree Expand file tree Collapse file tree 3 files changed +42
-3
lines changed Expand file tree Collapse file tree 3 files changed +42
-3
lines changed Original file line number Diff line number Diff line change 25
25
- name : Test with pytest
26
26
run : pytest -v --cov .
27
27
- uses : codecov/codecov-action@v4
28
+ lint :
29
+ runs-on : ubuntu-latest
30
+ steps :
31
+ - uses : actions/checkout@v4
32
+ - uses : actions/setup-python@v5
33
+ with :
34
+ python-version : " 3.12"
35
+ -
uses :
pre-commit/[email protected]
28
36
build :
29
37
runs-on : ubuntu-latest
30
38
steps :
Original file line number Diff line number Diff line change
1
+ minimum_pre_commit_version : 2.15.0
2
+ ci :
3
+ autofix_prs : false
4
+ repos :
5
+ - repo : https://github.com/astral-sh/ruff-pre-commit
6
+ rev : v0.6.2
7
+ hooks :
8
+ - id : ruff
9
+ args :
10
+ - --fix
11
+ - id : ruff-format
12
+ - repo : https://github.com/pre-commit/pre-commit-hooks
13
+ rev : v4.6.0
14
+ hooks :
15
+ - id : debug-statements
16
+ - id : end-of-file-fixer
17
+ - id : trailing-whitespace
Original file line number Diff line number Diff line change @@ -22,9 +22,6 @@ dependencies = [
22
22
23
23
[project .optional-dependencies ]
24
24
dev = [
25
- " flake8" ,
26
- " isort" ,
27
- " pydocstyle" ,
28
25
" pytest" ,
29
26
" pytest-cov" ,
30
27
]
@@ -39,3 +36,20 @@ path = "oidckit/__init__.py"
39
36
include = [
40
37
" /oidckit" ,
41
38
]
39
+
40
+ [tool .ruff .lint ]
41
+ ignore = [
42
+ " E501" ,
43
+ ]
44
+ select = [
45
+ " B" ,
46
+ " COM" ,
47
+ " E" ,
48
+ " F" ,
49
+ " I" ,
50
+ " TID" ,
51
+ " W" ,
52
+ ]
53
+
54
+ [tool .ruff .lint .flake8-tidy-imports ]
55
+ ban-relative-imports = " all"
You can’t perform that action at this time.
0 commit comments