Skip to content

Commit

Permalink
Refactor out linting into pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jakirkham committed Apr 2, 2024
1 parent a4d88d4 commit 9756735
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,6 @@ jobs:
env:
GH_TOKEN: ${{ steps.generate_token.outputs.token }}

- name: lint
shell: bash -l {0}
run: |
# maybe later...
# black --check conda_forge_webservices
flake8 conda_forge_webservices
- name: run test suite
shell: bash -l {0}
run: |
Expand Down
16 changes: 16 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
repos:
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8

ci:
autofix_commit_msg: |
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
autofix_prs: false
autoupdate_commit_msg: '[ci skip] [pre-commit.ci] pre-commit autoupdate'
autoupdate_schedule: monthly
skip: []
submodules: false
2 changes: 0 additions & 2 deletions conda-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
anaconda-client>=1.8.0
black
cachetools
conda
conda-build
Expand All @@ -8,7 +7,6 @@ conda-forge-pinning
conda-smithy>=3.7.6 # this pin is for bot automerge and maint. team bug fixes
cryptography>=39
python-dateutil
flake8
git
lxml
mock
Expand Down

0 comments on commit 9756735

Please sign in to comment.