Skip to content

Commit

Permalink
Remove previous lint tools
Browse files Browse the repository at this point in the history
  • Loading branch information
tdegeus committed Feb 23, 2024
1 parent 17f9b59 commit 34a7bd2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 23 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/linting_and_unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,6 @@ on:
branches: ["main"]

jobs:
lint:
runs-on: ubuntu-latest
container:
image: python:3.8

steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[lint]
- name: Lint format with `black`
run: black bibtexparser tests setup.py --check
- name: Lint imports with `isort`
run: isort bibtexparser tests setup.py --check-only --profile black
- name: Check docstr-coverage with `docstr-coverage`
run: docstr-coverage bibtexparser

build:
strategy:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ jobs:
- uses: actions/checkout@main
- uses: actions/setup-python@main
with:
python-version: '>=3.11'
python-version: '<3.12' # https://github.com/HunterMcGushion/docstr_coverage/issues/137
- uses: pre-commit/action@main
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,8 @@ repos:
rev: v2.5.0
hooks:
- id: setup-cfg-fmt
- repo: https://github.com/HunterMcGushion/docstr_coverage
rev: v2.3.0
hooks:
- id: docstr-coverage
args: ["bibtexparser"]
5 changes: 0 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ def load_readme():
"pytest-cov", # Code coverage
"jupyter", # For runnable examples
],
"lint": [
"black==23.3.0",
"isort==5.12.0",
"docstr-coverage==2.2.0",
],
"docs": [
"sphinx",
],
Expand Down

0 comments on commit 34a7bd2

Please sign in to comment.