Skip to content

Commit

Permalink
Updated linters and checking 3.12 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
JanEricNitschke committed Oct 3, 2023
1 parent 85c0805 commit 352ad72
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.11"] #, "3.12-dev"]
python-version: ["3.11", "3.12-dev"]
go-version: ["1.18", "1.19", "1.20"]
steps:
- name: Checkout awpy library
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
- name: Lint with ruff
uses: chartboost/ruff-action@v1
with:
version: 0.0.291
version: 0.0.292

- name: Typecheck with pyright
uses: jakebailey/pyright-action@v1
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ repos:
- id: check-builtin-literals
language: python
- repo: 'https://github.com/charliermarsh/ruff-pre-commit'
rev: v0.0.291
rev: v0.0.292
hooks:
- id: ruff
args:
Expand All @@ -38,7 +38,7 @@ repos:
- id: black
language: python
- repo: https://github.com/crate-ci/typos
rev: v1.16.13
rev: v1.16.17
hooks:
- id: typos
args: []
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ max-statements = 50
# Minimum number of public methods for a class (see R0903).
min-public-methods = 1

# Maximum number of allowed ancestors (see R0901).
# Inheriting from typing_extensions.TypedDict alones gives that
max-parents = 22

[tool.pylint.exceptions]
# Exceptions that will emit a warning when caught.
overgeneral-exceptions = ["builtins.BaseException"]
Expand Down
2 changes: 1 addition & 1 deletion tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pre-commit==3.4.0
pylint==2.17.6
pylint==3.0.0
pyright==1.1.329
pytest==7.4.2
pytest-cov==4.1.0
Expand Down
4 changes: 2 additions & 2 deletions tests/test_nav.py
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ def test_position_token(self):
assert token["ctToken"] == "000000000000000000000000000000"
assert (
token["token"]
== "000000000000000000000000000000000000000000000000100000000000" # noqa: S105,E501
== "000000000000000000000000000000000000000000000000100000000000" # noqa: S105
)
frame = {
"ct": {
Expand Down Expand Up @@ -754,7 +754,7 @@ def test_position_token(self):
assert token["ctToken"] == "000000000000000000100000000000"
assert (
token["token"]
== "000000000000000000100000000000000000000000000000000000000000" # noqa: S105,E501
== "000000000000000000100000000000000000000000000000000000000000" # noqa: S105
)

with pytest.raises(ValueError, match="Map not found."):
Expand Down

0 comments on commit 352ad72

Please sign in to comment.