Commit 4be3369
Update to follow our code standards more closely (#4)
* Added editorconfig based on that in nvaccess/nvda
* lf instead of crlf
* Add initial ruff configuration, based on that of NVDA
* remove explicit inheritance from `object`
* Initial run ov monkeytype over the code base
* Remove inheritance from object
* Fix a couple of type annotations
* Rename and improve ruff.toml
* Fix up type annotations by removing Optional, Union, Dict, List etc
* Read certificates as binary
* Move type hints into server.py
* Fix logging
* Fix ambiguous name
* Fix some typing issues
* Docstrings for channel
* Docstrings for Handler
* Docstrings for User
* Docstrings for ServerState
* Add some comments
* Enable pyright, with all failing tests disabled
* Fix reportDeprecated
* Fix unannotated functions
* Resolved several type issues
* Move to pyproject.toml for ruff config
* Remove no longer needed type stubs
* Update pre-commit config for CI
* Pre-commit updates
* Remove pyrightCI and remove pyrightLocal alias
* Experimental pyright GHA
* Try using uvx to run pyright
* Update deps
* Try running with uv run
* Sync environment then use uvx
* Include dev
* Use uv run
* Apply suggestions from code review
Co-authored-by: Sean Budd <seanbudd123@gmail.com>
* Update .github/workflows/pyright.yml
Co-authored-by: Sean Budd <seanbudd123@gmail.com>
* Fix pyright error in server.py
* Fix typ annotations on test.TestGenerateKey._test
* Silence pyright errors caused by incorrect types in ttwisted/Zope interfaces
* Bring coverage back up to 100%
* camelCase variables, methods and attributes in server.Channel
* camelCase attributes, methods and variables in server.Handler
* camelCase attributes, methods and variables in server.User
* camelCase attributes, methods and variables in server.RemoteServerFactory
* camelCase attributes, methods and variables in server.ServerState
* Fix some straggling snake_case
* Minor sweeks
* Try using a composite setup action for coverage
* Add default shell to actions/setup-environment
* run -> runs
* Move shell to steps with runs
* Use setup-environment with pyright ci
* Add pyright output to GHA summary
* Test restricting perms
* Test restricting perms
* Restrict perms of pyright action
---------
Co-authored-by: Sean Budd <seanbudd123@gmail.com>1 parent 48f4019 commit 4be3369
File tree
7 files changed
+359
-176
lines changed- .github
- actions/setup-environment
- workflows
7 files changed
+359
-176
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
11 | 10 | | |
12 | 11 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 12 | + | |
17 | 13 | | |
18 | 14 | | |
19 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
0 commit comments