Skip to content

Commit

Permalink
fix CI (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra committed May 19, 2022
1 parent 47600f6 commit 447b62c
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 70 deletions.
15 changes: 15 additions & 0 deletions .flake8
@@ -0,0 +1,15 @@
[flake8]

max-line-length = 90
ignore =
# irrelevant plugins
B3,
DW12,
# code is sometimes better without this
E129,
# consistency with mypy
W504
exclude =
# tests have more relaxed formatting rules
# and its own specific config in .flake8-tests
src/test_typing_extensions.py,
28 changes: 28 additions & 0 deletions .flake8-tests
@@ -0,0 +1,28 @@
# This configuration is specific to test_*.py; you need to invoke it
# by specifically naming this config, like this:
#
# $ flake8 --config=.flake8-tests [SOURCES]
#
# This will be possibly merged in the future.

[flake8]
max-line-length = 100
ignore =
# temporary ignores until we sort it out
B017,
E302,
E303,
E306,
E501,
E701,
E704,
F722,
F811,
F821,
F841,
W503,
# irrelevant plugins
B3,
DW12,
# consistency with mypy
W504
10 changes: 0 additions & 10 deletions .github/ISSUE_TEMPLATE/documentation-issue.md

This file was deleted.

10 changes: 0 additions & 10 deletions .github/ISSUE_TEMPLATE/new-typing-feature.md

This file was deleted.

10 changes: 0 additions & 10 deletions .github/ISSUE_TEMPLATE/other-issue.md

This file was deleted.

10 changes: 0 additions & 10 deletions .github/ISSUE_TEMPLATE/typing-extensions-issue.md

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/build-docs.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -35,7 +35,7 @@ jobs:
run: |
# Be wary of running `pip install` here, since it becomes easy for us to
# accidentally pick up typing_extensions as installed by a dependency
cd typing_extensions/src
cd src
python -m unittest test_typing_extensions.py
linting:
Expand All @@ -61,4 +61,4 @@ jobs:
run: flake8

- name: Lint tests
run: flake8 --config=.flake8-tests typing_extensions/src/test_typing_extensions.py
run: flake8 --config=.flake8-tests src/test_typing_extensions.py
2 changes: 0 additions & 2 deletions .github/workflows/package.yml
Expand Up @@ -29,7 +29,6 @@ jobs:
- name: Build and install wheel
run: |
cd typing_extensions
python -m build .
export path_to_file=$(find dist -type f -name "typing_extensions-*.whl")
echo "::notice::Installing wheel: $path_to_file"
Expand Down Expand Up @@ -60,7 +59,6 @@ jobs:
- name: Build and install sdist
run: |
cd typing_extensions
python -m build .
export path_to_file=$(find dist -type f -name "typing_extensions-*.tar.gz")
echo "::notice::Installing sdist: $path_to_file"
Expand Down
3 changes: 3 additions & 0 deletions test-requirements.txt
@@ -0,0 +1,3 @@
flake8
flake8-bugbear
flake8-pyi

0 comments on commit 447b62c

Please sign in to comment.