Skip to content

Commit

Permalink
Merge pull request #42 from GertjanBisschop/linting
Browse files Browse the repository at this point in the history
add linting to tests
  • Loading branch information
GertjanBisschop authored Jul 6, 2023
2 parents 699909d + 83befd8 commit 55a04ef
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ on:
branches: [main]

jobs:
pre-commit:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: pre-commit/[email protected]
test:
name: Python
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repos:
hooks:
- id: reorder-python-imports
args: [--application-directories=python,
--unclassifiable-application-module=_tskit]
]
- repo: https://github.com/asottile/pyupgrade
rev: v3.2.2
hooks:
Expand All @@ -36,4 +36,4 @@ repos:
- id: blacken-docs
args: [--skip-errors]
additional_dependencies: [black==22.3.0]
language_version: python3
language_version: python3
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import setuptools

if __name__ == "__main__":
setuptools.setup()
setuptools.setup()

0 comments on commit 55a04ef

Please sign in to comment.