Skip to content

Commit

Permalink
Get pre-commit to pass
Browse files Browse the repository at this point in the history
This commit makes the changes so that the pre-commit checks pass. Next
step is CI.
  • Loading branch information
lukecampbell committed Oct 19, 2022
1 parent 3f889d7 commit e613627
Show file tree
Hide file tree
Showing 11 changed files with 48 additions and 331 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,6 @@ dmypy.json

# Generated dynamically
intake_erddap/_version.py

# vscode
.vscode
27 changes: 14 additions & 13 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
repos:

- repo: https://github.com/econchick/interrogate
rev: 1.2.0
rev: 1.5.0
hooks:
- id: interrogate
exclude: ^(docs|setup.py|tests)
args: [--config=pyproject.toml]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
rev: v4.3.0
hooks:
- id: trailing-whitespace
exclude: tests/data
Expand All @@ -22,38 +22,39 @@ repos:
files: requirements-dev.txt

- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.9
rev: 3.9.2
hooks:
- id: flake8
exclude: docs/source/conf.py
args: [--max-line-length=105, --ignore=E203,E501,W503, --select=select=C,E,F,W,B,B950]
args: [--max-line-length=105 ]

- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.21
rev: v5.10.1
hooks:
- id: isort
additional_dependencies: [toml]
exclude: ^(docs|setup.py)
args: [--project=gcm_filters, --multi-line=3, --lines-after-imports=2, --lines-between-types=1, --trailing-comma, --force-grid-wrap=0, --use-parentheses, --line-width=88]

- repo: https://github.com/asottile/seed-isort-config
rev: v2.1.1
rev: v2.2.0
hooks:
- id: seed-isort-config

- repo: https://github.com/psf/black
rev: stable
rev: 22.10.0
hooks:
- id: black
exclude: ^(docs|setup.py)
language_version: python3

# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v0.770
# hooks:
# - id: mypy
# exclude: docs/source/conf.py
# args: [--ignore-missing-imports]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.982
hooks:
- id: mypy
additional_dependencies: [types-setuptools]
exclude: docs/source/conf.py
args: [--ignore-missing-imports]

# - repo: https://github.com/codespell-project/codespell
# rev: v1.16.0
Expand Down
2 changes: 2 additions & 0 deletions dev-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ dependencies:
- isort
- flake8
- pre-commit
- types-setuptools
- mypy
7 changes: 2 additions & 5 deletions intake_erddap/__init__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
from pkg_resources import DistributionNotFound, get_distribution

from .erddap import ERDDAPSource, ERDDAPSourceAutoPartition, ERDDAPSourceManualPartition
"""intake-erddap package."""
from .erddap import ERDDAPSource
from .erddap_cat import ERDDAPCatalog
from .version import __version__


__all__ = [
"ERDDAPSource",
"ERDDAPSourceAutoPartition",
"ERDDAPSourceManualPartition",
"ERDDAPCatalog",
"__version__",
]
Loading

0 comments on commit e613627

Please sign in to comment.