Skip to content

Commit

Permalink
🧑‍💻 Update the configs for Ruff and Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenein committed Apr 22, 2024
1 parent c82fba5 commit ef8ab09
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 53 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
- '3.9'
- '3.10'
- '3.11'
- '3.12'

steps:
- name: "🗃 Cache"
Expand All @@ -46,6 +47,7 @@ jobs:
run: |
pipx install poetry
pipx inject poetry poetry-dynamic-versioning
- name: 🐍 Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -77,7 +79,6 @@ jobs:
env_vars: PYTHON
name: Python ${{ matrix.python-version }}
files: coverage.xml
fail_ci_if_error: false # FIXME: https://github.com/codecov/codecov-action/issues/720

- name: "📦 Build and publish package: dry run"
if: success() || failure()
Expand Down
105 changes: 58 additions & 47 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 7 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
"Typing :: Typed",
]
Expand Down Expand Up @@ -73,7 +74,6 @@ latest-tag = true
allow_redefinition = true
allow_untyped_globals = true
check_untyped_defs = true
enable_incomplete_feature = "TypeVarTuple, Unpack"
ignore_missing_imports = true
pretty = true

Expand All @@ -95,11 +95,13 @@ exclude_lines = [

[tool.black]
line-length = 120
target-version = ["py38", "py39", "py310", "py311"]
target-version = ["py38", "py39", "py310", "py311", "py312"]

[tool.ruff]
line-length = 120
target-version = "py38"

[tool.ruff.lint]
select = [
"A",
"ANN",
Expand All @@ -122,6 +124,7 @@ select = [
"W",
"YTT",
]
unfixable = ["B"]
ignore = [
"ANN101",
"ANN102",
Expand Down Expand Up @@ -149,10 +152,9 @@ ignore = [
"UP007", # 3.10
"UP033", # 3.9
]
unfixable = ["B"]

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D101", "D102", "D106", "D205"]

[tool.ruff.flake8-quotes]
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"

0 comments on commit ef8ab09

Please sign in to comment.