Skip to content

Commit 381d445

Browse files
authored
Merge pull request #86 from ksunden/mypy
Mypy Compatible type hints for cycler
2 parents fd748f5 + d19e475 commit 381d445

File tree

6 files changed

+205
-67
lines changed

6 files changed

+205
-67
lines changed

.flake8

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[flake8]
2+
max-line-length = 88
3+
select =
4+
# flake8 default
5+
D, E, F, W,
6+
ignore =
7+
# flake8 default
8+
E121,E123,E126,E226,E24,E704,W503,W504,
9+
# pydocstyle
10+
D100, D101, D102, D103, D104, D105, D106,
11+
D200, D202, D204, D205,
12+
D301,
13+
D400, D401, D403, D404
14+
# ignored by pydocstyle numpy docstring convention
15+
D107, D203, D212, D213, D402, D413, D415, D416, D417,
16+
17+
exclude =
18+
.git
19+
build
20+
# External files.
21+
.tox
22+
.eggs
23+
24+
per-file-ignores =
25+
setup.py: E402
26+
force-check = True

.github/workflows/mypy.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
3+
name: Mypy
4+
5+
on:
6+
push:
7+
branches-ignore:
8+
- auto-backport-of-pr-[0-9]+
9+
- v[0-9]+.[0-9]+.[0-9x]+-doc
10+
pull_request:
11+
12+
jobs:
13+
test:
14+
name: "Mypy"
15+
runs-on: ubuntu-20.04
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Set up Python
23+
uses: actions/setup-python@v4
24+
25+
- name: Install Python dependencies
26+
run: |
27+
python -m pip install --upgrade pip setuptools wheel
28+
python -m pip install --upgrade mypy
29+
30+
- name: Install cycler
31+
run: |
32+
python -m pip install --no-deps .
33+
34+
- name: Run mypy
35+
run: |
36+
mypy cycler test_cycler.py

0 commit comments

Comments
 (0)