Skip to content

Commit

Permalink
Merge 54402c6 into 7cf6a21
Browse files Browse the repository at this point in the history
  • Loading branch information
hammannr committed Feb 15, 2024
2 parents 7cf6a21 + 54402c6 commit fab8b1c
Show file tree
Hide file tree
Showing 21 changed files with 1,091 additions and 878 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PIPY_TOKEN }}
password: ${{ secrets.PIPY_TOKEN }}
5 changes: 0 additions & 5 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ jobs:
- name: Install GOFevaluation
run: |
pip install .
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=F5,F6,F7,F8,F9,E1,E2,E3,E5,E7,E9,W291 --max-line-length=100 --show-source --statistics
- name: Test with pytest
run: |
pytest
Expand All @@ -48,4 +44,3 @@ jobs:
run: |
coverage run --source=GOFevaluation setup.py test -v
coveralls --service=github
45 changes: 45 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files

- repo: https://github.com/psf/black
rev: 24.2.0
hooks:
- id: black
args: [--safe, --line-length=100]
- id: black-jupyter
args: [--safe, --line-length=100]
language_version: python3.9

- repo: https://github.com/pycqa/docformatter
rev: v1.7.5
hooks:
- id: docformatter

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
hooks:
- id: mypy
additional_dependencies: [types-PyYAML, types-tqdm]

- repo: https://github.com/pycqa/doc8
rev: v1.1.1
hooks:
- id: doc8
files: ^docs/.*\.(rst|md)$
args: [--ignore, D001]

- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8

ci:
autoupdate_schedule: weekly
2 changes: 1 addition & 1 deletion GOFevaluation/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '0.1.3'
__version__ = "0.1.3"

from .utils import *
from .evaluator_base import *
Expand Down

0 comments on commit fab8b1c

Please sign in to comment.