Skip to content

Commit 2363917

Browse files
committed
add some generic files
1 parent 9402be6 commit 2363917

File tree

8 files changed

+1345
-0
lines changed

8 files changed

+1345
-0
lines changed

.pre-commit-config.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# https://pre-commit.com/
2+
repos:
3+
# isort should run before black as black sometimes tweaks the isort output
4+
- repo: https://github.com/timothycrosley/isort
5+
rev: 4.3.21-2
6+
hooks:
7+
- id: isort
8+
files: .+\.py$
9+
# https://github.com/python/black#version-control-integration
10+
- repo: https://github.com/python/black
11+
rev: stable
12+
hooks:
13+
- id: black
14+
- repo: https://gitlab.com/pycqa/flake8
15+
rev: 3.7.9
16+
hooks:
17+
- id: flake8
18+
- repo: https://github.com/pre-commit/mirrors-mypy
19+
rev: v0.761 # Must match ci/requirements/*.yml
20+
hooks:
21+
- id: mypy
22+
# run this occasionally, ref discussion https://github.com/pydata/xarray/pull/3194
23+
# - repo: https://github.com/asottile/pyupgrade
24+
# rev: v1.22.1
25+
# hooks:
26+
# - id: pyupgrade
27+
# args:
28+
# - "--py3-only"
29+
# # remove on f-strings in Py3.7
30+
# - "--keep-percent-format"

.readthedocs.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# .readthedocs.yml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
build:
9+
image: stable
10+
11+
# Build documentation in the docs/ directory with Sphinx
12+
sphinx:
13+
configuration: doc/conf.py
14+
15+
# Build documentation with MkDocs
16+
#mkdocs:
17+
# configuration: mkdocs.yml
18+
19+
# Optionally build your docs in additional formats such as PDF
20+
# formats:
21+
# - pdf
22+
23+
# Optionally set the version of Python and requirements required to build your docs
24+
conda:
25+
environment: ci/doc.yml
26+
27+
python:
28+
install:
29+
- method: pip
30+
path: .

cf_xarray/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .accessor import CFDataArrayAccessor, CFDatasetAccessor

0 commit comments

Comments
 (0)