Skip to content

Commit

Permalink
Environment changes
Browse files Browse the repository at this point in the history
  • Loading branch information
charnley committed Nov 24, 2024
1 parent df17fe6 commit f4dfec7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 25 deletions.
24 changes: 8 additions & 16 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,24 @@ repos:
- id: check-added-large-files
args: ['--maxkb=3000']


- repo: https://github.com/myint/autoflake
rev: v2.3.1
hooks:
- id: autoflake
name: Removes unused variables
name: removes unused variables
args:
- --in-place
- --remove-all-unused-imports
- --expand-star-imports
- --ignore-init-module-imports


- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
hooks:
- id: isort
name: Sorts imports
name: sorts imports
args: [
# Align isort with black formatting
"--multi-line=3",
Expand All @@ -45,11 +47,12 @@ repos:
"--line-width=99",
]


- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
name: Fixes formatting
name: fixes formatting
language_version: python3
args: ["--line-length=99"]

Expand All @@ -58,7 +61,7 @@ repos:
rev: 7.1.1
hooks:
- id: flake8
name: Checks pep8 style
name: checks pep8 style
args: [
"--max-line-length=99",
# Ignore imports in init files
Expand All @@ -69,16 +72,11 @@ repos:
"--ignore=E501,E203,W503",
]

# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v0.782
# hooks:
# - id: mypy
# args: [--ignore-missing-imports]

- repo: local
hooks:
- id: mypy
name: Checking types
name: checking types
entry: mypy
language: system
types: [ python ]
Expand All @@ -87,12 +85,6 @@ repos:
- repo: local
hooks:

# - id: mypy
# name: Static type checking
# entry: mypy
# files: \.py$
# language: python

- id: jupyisort
name: Sorts ipynb imports
entry: jupytext --pipe-fmt ".py" --pipe "isort - --multi-line=3 --trailing-comma --force-grid-wrap=0 --use-parentheses --line-width=99" --sync
Expand Down
12 changes: 6 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
numpy
scipy
scipy-stubs
build
matplotlib
qmllib
monkeytype
mypy
numpy
numpy
pre-commit
pylint
pytest
pytest-cov
qmllib
scipy
build
scipy
scipy-stubs
twine
monkeytype
6 changes: 3 additions & 3 deletions rmsd/calculate_rmsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@

import numpy as np
from numpy import ndarray
from scipy.optimize import linear_sum_assignment
from scipy.spatial import distance_matrix
from scipy.spatial.distance import cdist
from scipy.optimize import linear_sum_assignment # type: ignore
from scipy.spatial import distance_matrix # type: ignore
from scipy.spatial.distance import cdist # type: ignore

try:
import qmllib # type: ignore
Expand Down

0 comments on commit f4dfec7

Please sign in to comment.