Skip to content

Commit 143800a

Browse files
authored
Merge pull request #35 from csdms/mcflugen/add-hooks
Add additional linters
2 parents 3a59c91 + 27c677e commit 143800a

File tree

8 files changed

+20
-57
lines changed

8 files changed

+20
-57
lines changed

.gitignore

Lines changed: 4 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,7 @@
1-
# Byte-compiled / optimized / DLL files
2-
__pycache__/
1+
*.egg-info/
32
*.py[cod]
4-
5-
# C extensions
6-
*.so
7-
8-
# Distribution / packaging
9-
.Python
10-
env/
3+
.coverage
4+
.ipynb_checkpoints/
5+
__pycache__/
116
build/
12-
develop-eggs/
137
dist/
14-
downloads/
15-
eggs/
16-
lib/
17-
lib64/
18-
parts/
19-
sdist/
20-
var/
21-
*.egg-info/
22-
.installed.cfg
23-
*.egg
24-
25-
# PyInstaller
26-
# Usually these files are written by a python script from a template
27-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
28-
*.manifest
29-
*.spec
30-
31-
# Installer logs
32-
pip-log.txt
33-
pip-delete-this-directory.txt
34-
35-
# Unit test / coverage reports
36-
htmlcov/
37-
.tox/
38-
.coverage
39-
.cache
40-
nosetests.xml
41-
coverage.xml
42-
43-
# Translations
44-
*.mo
45-
*.pot
46-
47-
# Django stuff:
48-
*.log
49-
50-
# Sphinx documentation
51-
docs/_build/
52-
53-
# PyBuilder
54-
target/

.pre-commit-config.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,20 @@ repos:
4646
- id: forbid-new-submodules
4747
- id: mixed-line-ending
4848
- id: trailing-whitespace
49+
- id: name-tests-test
50+
- id: file-contents-sorter
51+
files: |
52+
(?x)^(
53+
.*requirements(-\w+)?.(in|txt)|
54+
requirements/.*\.txt|
55+
.gitignore
56+
)
4957
5058
- repo: https://github.com/pre-commit/mirrors-mypy
5159
rev: v1.8.0
5260
hooks:
5361
- id: mypy
5462
language_version: python3.12
55-
files: src/.*\.py$
63+
files: heat/.*\.py$
64+
additional_dependencies:
65+
- types-PyYAML

requirements-testing.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
black
2+
bmi-tester
13
coveralls
4+
isort
25
pytest
36
pytest-cov
4-
black
5-
isort
67
ruff
7-
bmi-tester

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1+
bmipy
12
numpy
2-
scipy
33
pyyaml
4-
bmipy
4+
scipy
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)