Skip to content

Commit

Permalink
Ran pre-commit locally + disable pre-commit workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
madebr committed Aug 22, 2023
1 parent 1f7ff65 commit 38d93c6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 18 deletions.
File renamed without changes.
24 changes: 12 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -18,7 +18,7 @@ repos:
- id: check-ast

- repo: https://github.com/myint/docformatter
rev: v1.4
rev: v1.7.5
hooks:
- id: docformatter
args: [ -r, --in-place, --wrap-descriptions, '120', --wrap-summaries, '120', -- ]
Expand All @@ -28,32 +28,32 @@ repos:
hooks:
- id: sign-commit
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.8.0
rev: v1.10.0
hooks:
- id: python-use-type-annotations
- id: python-check-mock-methods
- id: python-no-eval
- id: rst-directive-colons

# - repo: https://github.com/PyCQA/isort
# rev: 5.12.0
# hooks:
# - id: isort
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort

- repo: https://github.com/asottile/pyupgrade
rev: v2.11.0
rev: v3.10.1
hooks:
- id: pyupgrade
args: [ --py36-plus ]

- repo: https://github.com/asottile/setup-cfg-fmt
rev: v1.17.0
rev: v2.4.0
hooks:
- id: setup-cfg-fmt

# Notebook formatting
- repo: https://github.com/nbQA-dev/nbQA
rev: 0.5.9
rev: 1.7.0
hooks:
- id: nbqa-isort
additional_dependencies: [ isort==5.6.4 ]
Expand All @@ -63,12 +63,12 @@ repos:
args: [ --py36-plus ]

- repo: https://github.com/mgedmin/check-manifest
rev: '0.46'
rev: '0.49'
hooks:
- id: check-manifest
stages: [ manual ]
- repo: https://github.com/sondrelg/pep585-upgrade
rev: '5f7033a0d0174c65105b041500060b993c1bc211'
rev: 'v1.0'
hooks:
- id: upgrade-type-hints
args: [ '--futures=true' ]
3 changes: 1 addition & 2 deletions examples/rosenbrock.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/usr/bin/env python
"""Solves Rosenbrock's Unconstrained Problem.
min 100*(x2-x1^2)**2 + (1-x1)^2
s.t.: -10 <= xi <= 10, i = 1,2
min 100*(x2-x1^2)**2 + (1-x1)^2 s.t.: -10 <= xi <= 10, i = 1,2
f* = 0 , x* = [1, 1]
"""
Expand Down
5 changes: 1 addition & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ classifiers =
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Topic :: Education
Topic :: Scientific/Engineering
Topic :: Software Development
Expand All @@ -37,6 +34,6 @@ keywords = optimization
[options]
install_requires =
numpy>=1.13.3
python_requires = >=3.7
python_requires = >=3.8
include_package_data = True
zip_safe = False

0 comments on commit 38d93c6

Please sign in to comment.