File tree 3 files changed +34
-16
lines changed
3 files changed +34
-16
lines changed Original file line number Diff line number Diff line change @@ -10,16 +10,8 @@ repos:
10
10
- id : end-of-file-fixer
11
11
exclude : ' .*\.pth$'
12
12
- id : debug-statements
13
- - repo : https://github.com/PyCQA/isort
14
- rev : 5.12.0
13
+ - repo : https://github.com/charliermarsh/ruff-pre-commit
14
+ rev : v0.0.253
15
15
hooks :
16
- - id : isort
17
- - repo : https://github.com/asottile/pyupgrade
18
- rev : v3.3.1
19
- hooks :
20
- - id : pyupgrade
21
- args : [--py37-plus]
22
- - repo : https://github.com/PyCQA/flake8
23
- rev : 6.0.0
24
- hooks :
25
- - id : flake8
16
+ - id : ruff
17
+ # args: [--fix, --exit-non-zero-on-fix]
Original file line number Diff line number Diff line change
1
+ # [tool.ruff] # <- TODO Uncomment when migrating to pyproject.toml
2
+ exclude = [
3
+ " .eggs" ,
4
+ " .tox" ,
5
+ " build" ,
6
+ " ci/templates" ,
7
+ " dist" ,
8
+ ]
9
+ line-length = 140
10
+ select = [
11
+ " E" ,
12
+ " F" ,
13
+ " I" ,
14
+ " PLC" ,
15
+ " PLE" ,
16
+ " UP" ,
17
+ " W" ,
18
+ ]
19
+ target-version = " py37"
20
+
21
+ # [tool.ruff.isort] # <- TODO Uncomment when migrating to pyproject.toml
22
+ [isort ]
23
+ # default-section = "THIRDPARTY"
24
+ force-single-line = true
25
+ forced-separate = [" test_pytest_cov" ]
26
+ known-first-party = [" pytest_cov" ]
Original file line number Diff line number Diff line change @@ -7,22 +7,22 @@ prune examples/adhoc-layout/*.egg-info
7
7
prune examples/src-layout/src/*.egg-info
8
8
9
9
graft .github/workflows
10
- graft src
11
10
graft ci
11
+ graft src
12
12
graft tests
13
13
14
14
include .bumpversion.cfg
15
15
include .cookiecutterrc
16
16
include .coveragerc
17
17
include .editorconfig
18
- include tox.ini
19
- include .readthedocs.yml
20
18
include .pre-commit-config.yaml
19
+ include .readthedocs.yml
20
+ include .ruff.toml
21
21
include AUTHORS.rst
22
22
include CHANGELOG.rst
23
23
include CONTRIBUTING.rst
24
24
include LICENSE
25
25
include README.rst
26
-
26
+ include tox.ini
27
27
28
28
global-exclude *.py[cod] __pycache__/* *.so *.dylib
You can’t perform that action at this time.
0 commit comments