Deduplicate format checking
This was being checked in both the tox tests and separately in GitHub actions.
This commit is contained in:
parent
593584154d
commit
e810f42ca2
3 changed files with 4 additions and 25 deletions
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
|
@ -43,3 +43,4 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: psf/black@stable
|
- uses: psf/black@stable
|
||||||
|
- uses: isort/isort-action@v1
|
||||||
|
|
4
setup.py
4
setup.py
|
@ -1,8 +1,8 @@
|
||||||
from setuptools import setup, find_packages
|
import re
|
||||||
from codecs import open # For a consistent encoding
|
from codecs import open # For a consistent encoding
|
||||||
from os import path
|
from os import path
|
||||||
import re
|
|
||||||
|
|
||||||
|
from setuptools import find_packages, setup
|
||||||
|
|
||||||
here = path.dirname(__file__)
|
here = path.dirname(__file__)
|
||||||
|
|
||||||
|
|
24
tox.ini
24
tox.ini
|
@ -7,8 +7,6 @@ envlist =
|
||||||
coverage_report
|
coverage_report
|
||||||
py{27, 35, 36, 37}-most_platforms
|
py{27, 35, 36, 37}-most_platforms
|
||||||
pypy{2, 3}-most_platforms
|
pypy{2, 3}-most_platforms
|
||||||
py39-black
|
|
||||||
py39-isort
|
|
||||||
skip_missing_interpreters = true
|
skip_missing_interpreters = true
|
||||||
|
|
||||||
|
|
||||||
|
@ -48,26 +46,6 @@ commands =
|
||||||
coverage html
|
coverage html
|
||||||
|
|
||||||
|
|
||||||
[testenv:py39-black]
|
|
||||||
skip_install = true
|
|
||||||
skip_build = true
|
|
||||||
deps =
|
|
||||||
black
|
|
||||||
|
|
||||||
commands =
|
|
||||||
black --check dotbot/ tests/
|
|
||||||
|
|
||||||
|
|
||||||
[testenv:py39-isort]
|
|
||||||
skip_install = true
|
|
||||||
skip_build = true
|
|
||||||
deps =
|
|
||||||
isort
|
|
||||||
|
|
||||||
commands =
|
|
||||||
isort --check dotbot/ tests/
|
|
||||||
|
|
||||||
|
|
||||||
[coverage:run]
|
[coverage:run]
|
||||||
branch = true
|
branch = true
|
||||||
parallel = true
|
parallel = true
|
||||||
|
@ -84,7 +62,7 @@ directory = htmlcov
|
||||||
python =
|
python =
|
||||||
; Run on all platforms (Linux, Mac, and Windows)
|
; Run on all platforms (Linux, Mac, and Windows)
|
||||||
3.8: py38-all_platforms
|
3.8: py38-all_platforms
|
||||||
3.9: py39-all_platforms, py39-black, py39-isort
|
3.9: py39-all_platforms
|
||||||
3.10: py310-all_platforms
|
3.10: py310-all_platforms
|
||||||
|
|
||||||
; Run on most platforms (Linux and Mac)
|
; Run on most platforms (Linux and Mac)
|
||||||
|
|
Loading…
Reference in a new issue