Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
flake8
flake8-bugbear
flake8-pyi