Skip to content

Commit ac0942d

Browse files
committed
Switch to pyproject.toml
1 parent bf2402b commit ac0942d

File tree

4 files changed

+36
-34
lines changed

4 files changed

+36
-34
lines changed

ci/environment.yml

-3
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,8 @@ dependencies:
1010
- pytest-cov
1111
- xarray
1212
- numpydoc
13-
- nbsphinx
1413
- pre-commit
1514
- numpy_groupies
1615
- pooch
1716
- toolz
1817
- numba
19-
- pip:
20-
- icecream

docs/source/conf.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
import os
1616
import sys
1717

18+
import dask_groupby
19+
1820
# If extensions (or modules to document with autodoc) are in another directory,
1921
# add these directories to sys.path here. If the directory is relative to the
2022
# documentation root, use os.path.abspath to make it absolute, like shown here.
@@ -24,7 +26,6 @@
2426
parent = os.path.dirname(cwd)
2527
sys.path.insert(0, parent)
2628

27-
import dask_groupby
2829

2930
# -- General configuration -----------------------------------------------------
3031

pyproject.toml

+34-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
11
[tool.black]
22
line-length = 100
3-
target-version = ['py38']
3+
target-version = ["py38"]
4+
5+
[tool.isort]
6+
profile = "black"
7+
skip_gitignore = true
8+
float_to_top = true
9+
combine_as_imports = true
10+
known_first_party = "dask_groupby"
11+
known_third_party = [
12+
"dask",
13+
"numpy",
14+
"numpy_groupies",
15+
"pandas",
16+
"pkg_resources",
17+
"pytest",
18+
"setuptools",
19+
"xarray"
20+
]
21+
22+
[tool.mypy]
23+
allow_redefinition = true
24+
exclude = "properties|asv_bench|doc|tests|flycheck"
25+
files = "dask_groupby/*.py"
26+
show_error_codes = true
27+
28+
[[tool.mypy.overrides]]
29+
module=[
30+
"dask.*",
31+
"numpy_groupies",
32+
"pandas",
33+
"setuptools",
34+
"toolz"
35+
]
36+
ignore_missing_imports = true

setup.cfg

-29
Original file line numberDiff line numberDiff line change
@@ -17,32 +17,3 @@ exclude=
1717
max-line-length = 100
1818
max-complexity = 18
1919
select = B,C,E,F,W,T4,B9
20-
21-
[isort]
22-
known_first_party=dask_groupby
23-
known_third_party=dask,numpy,numpy_groupies,pandas,pkg_resources,pytest,setuptools,xarray
24-
multi_line_output=3
25-
include_trailing_comma=True
26-
force_grid_wrap=0
27-
combine_as_imports=True
28-
line_length=100
29-
skip=
30-
docs/source/conf.py
31-
setup.py
32-
33-
[mypy]
34-
allow_redefinition = True
35-
exclude = properties|asv_bench|doc|tests|flycheck
36-
files = dask_groupby/*.py
37-
show_error_codes = True
38-
39-
[mypy-dask.*]
40-
ignore_missing_imports = True
41-
[mypy-icecream.*]
42-
ignore_missing_imports = True
43-
[mypy-numpy_groupies]
44-
ignore_missing_imports = True
45-
[mypy-pandas.*]
46-
ignore_missing_imports = True
47-
[mypy-setuptools]
48-
ignore_missing_imports = True

0 commit comments

Comments
 (0)