-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Lint: Add check-peps.py
#3275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Lint: Add check-peps.py
#3275
Changes from 11 commits
Commits
Show all changes
88 commits
Select commit
Hold shift + click to select a range
8b71632
PEP 703, 720: Remove blank ``Resolution`` headers
AA-Turner 6a01dda
PEP 499: Shorten title
AA-Turner 3a6be91
Add ``pep-lint.py``
AA-Turner c6826fa
remove ``docs/`` from pep-lint
AA-Turner b4a8f13
Fix GHA syntax
AA-Turner ff95be9
datetime as dt
AA-Turner 4ad0045
quotation marks
AA-Turner b0d6ba4
Use str builtins
AA-Turner 8b32d59
Add initial tests for pep-lint
AA-Turner d2f80c7
Make tests stricter
AA-Turner 018c726
typo
AA-Turner a088f99
Initial email tests
AA-Turner 8fb81a6
Fully test _email
AA-Turner 30ccbe7
Support passing a subset of PEPs via argv
AA-Turner fa8a54e
Support passing a subset of PEPs via argv
AA-Turner 6116056
Add pep-lint hook to .pre-commit-config.yaml
AA-Turner 84a08df
Parameterise header tests
AA-Turner 3b20b56
Coverage
AA-Turner fc3e4ca
Merge remote-tracking branch 'upstream/main' into pep-lint
AA-Turner 8919996
Test _pep_num
AA-Turner ab876b1
Test _thread
AA-Turner a3ae089
Test _date
AA-Turner bb3ed78
Test _validate_resolution
AA-Turner 657e613
Test _validate_post_history
AA-Turner 7b70ecc
Add pep-lint hook to .pre-commit-config.yaml
AA-Turner 52a8d7d
Format
AA-Turner 4b47d41
Test _validate_python_version
AA-Turner a821870
Test test_validate_created
AA-Turner 1e17a1a
Test _validate_pep_references
AA-Turner 8797cb0
Test _validate_content_type
AA-Turner d58ce26
Test _validate_topic
AA-Turner c1143a7
Format
AA-Turner e79f649
Add pep-lint hook to .pre-commit-config.yaml
AA-Turner 33e9864
Support string filenames
AA-Turner ee0c1ca
Add pep-lint hook to .pre-commit-config.yaml
AA-Turner dffe4ea
Add pep-lint hook to .pre-commit-config.yaml
AA-Turner 7ab98ad
Test _validate_type
AA-Turner e6a0dd9
Test _validate_status
AA-Turner a08aaf6
Test _validate_discussions_to
AA-Turner f008a92
Test _validate_delegate
AA-Turner 24da438
Test _validate_sponsor
AA-Turner 1e21a42
Test _validate_author
AA-Turner 557c0f7
Test _validate_title
AA-Turner 0e1ff27
Test _validate_pep_number
AA-Turner 319a997
Test _validate_required_headers
AA-Turner 89869d3
Format
AA-Turner ce9d603
Test check_direct_links
AA-Turner 20a459d
Move to tests\pep_lint\
AA-Turner a834b5a
Format
AA-Turner 12ba3ca
Move import machinery to conftest.py
AA-Turner b2ef99e
Split out test_headers
AA-Turner 22e1a72
Split out test_direct_links
AA-Turner 6454342
Split out test_pep_number
AA-Turner ba4b7d4
Split out test_email
AA-Turner f1e4683
Split out test_post_url
AA-Turner c7940b3
Split out test_date
AA-Turner 8399fc9
Move remaining to test_headers
AA-Turner a3ad895
Add __init__.py
AA-Turner 41964b6
Add integration test
AA-Turner b95a67f
Format
AA-Turner 5f21f8c
Rework _output_error
AA-Turner 9250d8e
lowercase
AA-Turner 4b851c4
Format
AA-Turner 67ab123
Split out _validate_header
AA-Turner efaff4e
Add types
AA-Turner fb8db10
str
AA-Turner f26c170
test
AA-Turner 4e5eafb
Disable pre-commit hook
AA-Turner 2456a48
Implement help & detailed
AA-Turner 75eb099
Fix regression
AA-Turner 29b770a
ENSURE REVERSION: Introduce errors
AA-Turner 2d7274a
Quotation marks
AA-Turner 5af19b0
Use detailed mode
AA-Turner ceed08d
Revert "ENSURE REVERSION: Introduce errors"
AA-Turner 144370f
Rename pep-lint to check-pep
AA-Turner 9366257
Pluralise
AA-Turner 341e186
Run black
AA-Turner e9f99c0
Executability
AA-Turner 2af8efa
Merge branch 'master' into pep-lint
AA-Turner b2d2de4
Merge branch 'master' into pep-lint
AA-Turner 85ef844
Merge remote-tracking branch 'upstream/main' into pep-lint
AA-Turner efeaebb
Format pytest addopts as a nicer list
AA-Turner c71dba1
Merge branch 'master' into pep-lint
AA-Turner 5db830c
pre-commit tweaks
AA-Turner 017b0c8
match indentation
AA-Turner 712d4b2
Extract default re flags out
AA-Turner 11c5457
Not using types_or any more
AA-Turner f205724
Consolidate paths
AA-Turner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,3 +35,17 @@ jobs: | |
uses: pre-commit/[email protected] | ||
with: | ||
extra_args: --all-files --hook-stage manual codespell || true | ||
|
||
pep-lint: | ||
name: Run pep-lint | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3" | ||
|
||
- name: Run pep-lint | ||
run: python pep-lint.py | ||
AA-Turner marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
PEP: 499 | ||
Title: ``python -m foo`` should bind ``sys.modules['foo']`` in addition to ``sys.modules['__main__']`` | ||
Title: ``python -m foo`` should also bind ``'foo'`` in ``sys.modules`` | ||
AA-Turner marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Version: $Revision$ | ||
Last-Modified: $Date$ | ||
Author: Cameron Simpson <[email protected]>, Chris Angelico <[email protected]>, Joseph Jevnik <[email protected]> | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.