Skip to content

Commit

Permalink
Use only pre-commit for linting
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtmckee committed Jan 31, 2024
1 parent 3cbed70 commit 99560d5
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 25 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: 'actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c' # v5.0.0
with:
python-version: ${{ matrix.python-version }}
- name: Install tox
run: pip install tox
- name: Install pre-commit
run: pip install pre-commit
- name: Run linting
run: tox -e flake8,isort
run: pre-commit run -a
6 changes: 0 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ repos:
hooks:
- id: isort

# Allow tox to run isort as a linter.
- id: isort
alias: isort-check
args: [--check]
stages: [manual]

- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
hooks:
Expand Down
2 changes: 0 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ def get_version():
'python-dateutil>=2.6',
'backports.zoneinfo;python_version<"3.9"',
'pymysql',
'flake8>=2.4.0',
'isort>=4.2.2',
'pyodbc',
],
'babel': ['Babel>=1.3'],
Expand Down
14 changes: 0 additions & 14 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
[tox]
envlist =
py{37, 38, 39, 310, 311}-sqlalchemy{13, 14, 2}
flake8
isort

[testenv]
commands =
Expand Down Expand Up @@ -31,18 +29,6 @@ passenv =
SQLALCHEMY_UTILS_TEST_*
recreate = True

[testenv:flake8]
skip_install = True
recreate = False
deps = pre-commit
commands = pre-commit run --hook-stage manual --all flake8

[testenv:isort]
skip_install = True
recreate = False
deps = pre-commit
commands = pre-commit run --hook-stage manual --all isort-check

[pytest]
filterwarnings =
error
Expand Down

0 comments on commit 99560d5

Please sign in to comment.