From c26c84f7a87b089411eedf4a0906cf43f3c2c762 Mon Sep 17 00:00:00 2001 From: Joel Falknau Date: Sat, 31 Aug 2024 20:18:21 +1000 Subject: [PATCH 1/2] expand python test versions --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 69232a08..f1c370ee 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v4 From 0c2e77401b52b00048b3ffdc4d54139e93708b88 Mon Sep 17 00:00:00 2001 From: Joel Falknau Date: Sat, 31 Aug 2024 20:18:38 +1000 Subject: [PATCH 2/2] reformat --- pyproject.toml | 36 +++++++++++++++++------------------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4c510f91..0ece586b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [build-system] build-backend = "flit_core.buildapi" requires = [ - "flit_core<4,>=3.2", + "flit-core<4,>=3.2", ] [project] @@ -11,7 +11,7 @@ keywords = [ "allianceauth", "eveonline", ] -license = {file = "LICENSE"} +license = { file = "LICENSE" } authors = [ { name = "AaronKable", email = "aaronkable@gmail.com" }, ] @@ -41,19 +41,17 @@ dynamic = [ "version", ] dependencies = [ - "allianceauth<5.0.0,>=3", + "allianceauth<5,>=3", "django-model-utils", - "django-ninja<2.0.0,>=1.0.1", + "django-ninja<2,>=1.0.1", "networkx", ] -[project.optional-dependencies] -test = [ +optional-dependencies.test = [ "allianceauth-securegroups", ] -[project.urls] -Homepage = "https://github.com/Solar-Helix-Independent-Transport/allianceauth-corp-tools" -Source = "https://github.com/Solar-Helix-Independent-Transport/allianceauth-corp-tools" -Tracker = "https://github.com/Solar-Helix-Independent-Transport/allianceauth-corp-tools/issues" +urls.Homepage = "https://github.com/Solar-Helix-Independent-Transport/allianceauth-corp-tools" +urls.Source = "https://github.com/Solar-Helix-Independent-Transport/allianceauth-corp-tools" +urls.Tracker = "https://github.com/Solar-Helix-Independent-Transport/allianceauth-corp-tools/issues" [tool.flit.module] name = "corptools" @@ -67,19 +65,19 @@ sections = [ "DJANGO", "ALLIANCEAUTH", "FIRSTPARTY", - "LOCALFOLDER" + "LOCALFOLDER", ] -known_allianceauth = ["allianceauth", "esi"] -known_django = ["django"] +known_allianceauth = [ "allianceauth", "esi" ] +known_django = [ "django" ] skip_gitignore = true [tool.flake8] -exclude = [".git", "*migrations*", ".tox", "dist", "htmlcov"] +exclude = [ ".git", "*migrations*", ".tox", "dist", "htmlcov" ] max-line-length = 119 -select = ["C", "E", "F", "W", "B", "B950"] -ignore = ['E203', 'E231', 'E501', 'W503', 'W291', 'W293'] +select = [ "C", "E", "F", "W", "B", "B950" ] +ignore = [ 'E203', 'E231', 'E501', 'W503', 'W291', 'W293' ] [tool.djlint] -max_attribute_length=119 -max_line_length=119 -max_blank_lines=1 +max_attribute_length = 119 +max_line_length = 119 +max_blank_lines = 1