Commit ab9a545 1 parent 203d004 commit ab9a545 Copy full SHA for ab9a545
File tree 3 files changed +13
-16
lines changed
3 files changed +13
-16
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,12 @@ help:
10
10
test : # # Run tests, linting, and static typechecking
11
11
tox
12
12
13
+ .PHONY : format
14
+ format : # # Format files
15
+ tox exec -e py38-lint -- ruff format
16
+
13
17
.PHONY : lint
14
- lint : # # Lint and black reformat files
15
- # NOTE(willkg): Make sure this matches what's in tox.ini.
16
- black src setup.py tests docs examples
18
+ lint : # # Lint files
17
19
tox -e py38-lint
18
20
19
21
.PHONY : clean
Original file line number Diff line number Diff line change 2
2
# Enable pycodestyle (E), pyflakes (F), and bugbear (B) rules
3
3
select = [" E" , " F" , " B" ]
4
4
5
- # Ignore line length violations--Black handles those
5
+ # Ignore line length violations
6
6
line-length = 88
7
7
ignore = [" E501" ]
8
8
9
- target-version = " py37 "
9
+ target-version = " py38 "
10
10
11
11
src = [" src" ]
12
12
13
13
[tool .ruff .flake8-quotes ]
14
14
docstring-quotes = " double"
15
15
16
16
17
- [tool .black ]
18
- line-length = 88
19
- target-version = [" py38" ]
20
-
21
17
[tool .mypy ]
22
18
python_version = " 3.8"
23
19
disallow_untyped_defs = true
@@ -75,8 +71,8 @@ commands = pytest --doctest-modules src/
75
71
basepython = python3.8
76
72
changedir = {toxinidir}
77
73
commands =
78
- black --diff setup.py tests docs examples
79
- ruff src setup.py tests docs examples
74
+ ruff format --check setup.py tests docs examples
75
+ ruff check src setup.py tests docs examples
80
76
81
77
[testenv:py38-typecheck]
82
78
basepython = python3.8
Original file line number Diff line number Diff line change 1
1
# Requirements file for developing on Everett.
2
2
-e .[ini,yaml,sphinx ]
3
3
4
- black == 23.9.1
5
4
check-manifest == 0.49
6
5
cogapp == 3.3.0
7
- mypy == 1.5.1
8
- pytest == 7.4.2
9
- ruff == 0.0.292
10
- tox == 4.11.3
6
+ mypy == 1.8.0
7
+ pytest == 7.4.3
8
+ ruff == 0.1.9
9
+ tox == 4.11.4
11
10
tox-gh-actions == 3.1.3
12
11
twine == 4.0.2
13
12
types-PyYAML == 6.0.12.12
You can’t perform that action at this time.
0 commit comments