Skip to content

Commit 447b62c

Browse files
fix CI (#4)
1 parent 47600f6 commit 447b62c

File tree

10 files changed

+48
-70
lines changed

10 files changed

+48
-70
lines changed

.flake8

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[flake8]
2+
3+
max-line-length = 90
4+
ignore =
5+
# irrelevant plugins
6+
B3,
7+
DW12,
8+
# code is sometimes better without this
9+
E129,
10+
# consistency with mypy
11+
W504
12+
exclude =
13+
# tests have more relaxed formatting rules
14+
# and its own specific config in .flake8-tests
15+
src/test_typing_extensions.py,

.flake8-tests

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This configuration is specific to test_*.py; you need to invoke it
2+
# by specifically naming this config, like this:
3+
#
4+
# $ flake8 --config=.flake8-tests [SOURCES]
5+
#
6+
# This will be possibly merged in the future.
7+
8+
[flake8]
9+
max-line-length = 100
10+
ignore =
11+
# temporary ignores until we sort it out
12+
B017,
13+
E302,
14+
E303,
15+
E306,
16+
E501,
17+
E701,
18+
E704,
19+
F722,
20+
F811,
21+
F821,
22+
F841,
23+
W503,
24+
# irrelevant plugins
25+
B3,
26+
DW12,
27+
# consistency with mypy
28+
W504

.github/ISSUE_TEMPLATE/documentation-issue.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/new-typing-feature.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/other-issue.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/typing-extensions-issue.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/workflows/build-docs.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
run: |
3636
# Be wary of running `pip install` here, since it becomes easy for us to
3737
# accidentally pick up typing_extensions as installed by a dependency
38-
cd typing_extensions/src
38+
cd src
3939
python -m unittest test_typing_extensions.py
4040
4141
linting:
@@ -61,4 +61,4 @@ jobs:
6161
run: flake8
6262

6363
- name: Lint tests
64-
run: flake8 --config=.flake8-tests typing_extensions/src/test_typing_extensions.py
64+
run: flake8 --config=.flake8-tests src/test_typing_extensions.py

.github/workflows/package.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ jobs:
2929
3030
- name: Build and install wheel
3131
run: |
32-
cd typing_extensions
3332
python -m build .
3433
export path_to_file=$(find dist -type f -name "typing_extensions-*.whl")
3534
echo "::notice::Installing wheel: $path_to_file"
@@ -60,7 +59,6 @@ jobs:
6059
6160
- name: Build and install sdist
6261
run: |
63-
cd typing_extensions
6462
python -m build .
6563
export path_to_file=$(find dist -type f -name "typing_extensions-*.tar.gz")
6664
echo "::notice::Installing sdist: $path_to_file"

test-requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
flake8
2+
flake8-bugbear
3+
flake8-pyi

0 commit comments

Comments
 (0)