Skip to content

Commit

Permalink
Merge pull request #35 from csdms/mcflugen/add-hooks
Browse files Browse the repository at this point in the history
Add additional linters
  • Loading branch information
mcflugen authored Oct 18, 2024
2 parents 3a59c91 + 27c677e commit 143800a
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 57 deletions.
55 changes: 4 additions & 51 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,54 +1,7 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.egg-info/
*.py[cod]

# C extensions
*.so

# Distribution / packaging
.Python
env/
.coverage
.ipynb_checkpoints/
__pycache__/
build/
develop-eggs/
dist/
downloads/
eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.cache
nosetests.xml
coverage.xml

# Translations
*.mo
*.pot

# Django stuff:
*.log

# Sphinx documentation
docs/_build/

# PyBuilder
target/
12 changes: 11 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,20 @@ repos:
- id: forbid-new-submodules
- id: mixed-line-ending
- id: trailing-whitespace
- id: name-tests-test
- id: file-contents-sorter
files: |
(?x)^(
.*requirements(-\w+)?.(in|txt)|
requirements/.*\.txt|
.gitignore
)
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
hooks:
- id: mypy
language_version: python3.12
files: src/.*\.py$
files: heat/.*\.py$
additional_dependencies:
- types-PyYAML
6 changes: 3 additions & 3 deletions requirements-testing.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
black
bmi-tester
coveralls
isort
pytest
pytest-cov
black
isort
ruff
bmi-tester
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
bmipy
numpy
scipy
pyyaml
bmipy
scipy
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 143800a

Please sign in to comment.