Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
[flake8]
max-line-length=100
import-order-style=pycharm
application-import-names=skyportal,tests
extend-ignore=
# pycodestyle
E226,
E,F,W,
# flake8-annotations
ANN002,ANN003,ANN101,ANN102,ANN204,ANN206,
extend-exclude=
.venv,
per-file-ignores =
skyportal/networklib.py:E731,
16 changes: 8 additions & 8 deletions .github/workflows/lint_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version-file: "pyproject.toml"

- name: Install uv
uses: astral-sh/setup-uv@v5
uses: astral-sh/setup-uv@v7
with:
version: "0.6.x"
version: "0.9.x"
enable-cache: true
cache-dependency-glob: "uv.lock"

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"

- name: Install dependencies
run: uv sync --all-extras --dev

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
contents: write

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version-file: "pyproject.toml"

Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ ci:
autoupdate_schedule: quarterly

repos:
- repo: https://github.com/psf/black
rev: 25.1.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.9.0
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: 6.0.1
rev: 6.1.0
hooks:
- id: isort
name: isort
Expand All @@ -18,7 +18,7 @@ repos:
additional_dependencies:
- flake8-annotations
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: check-case-conflict
- id: check-json
Expand All @@ -35,6 +35,6 @@ repos:
- id: python-check-blanket-type-ignore
- id: python-use-type-annotations
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.2
rev: v0.14.0
hooks:
- id: ruff-check
16 changes: 12 additions & 4 deletions .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ extend-exclude = [

[lint]
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D", # pydocstyle/flake8-docstrings
"E", # pycodestyle
"F", # Pyflakes
"FIX", # flake8-fixme
"D", # pydocstyle/flake8-docstrings
"N", # pep8-naming
"N", # pep8-naming
"W", # pycodestyle
]

ignore = [
Expand Down Expand Up @@ -48,3 +51,8 @@ ignore = [
"N806",
"N815",
]

[lint.per-file-ignores]
"skyportal/networklib.py" = [
"E731",
]
19 changes: 13 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Visualization",
"Typing :: Typed",
]
Expand All @@ -34,11 +35,12 @@ Changelog = "https://github.com/sco1/skyportal/blob/main/CHANGELOG.md"
[project.scripts]
map_gen = "utils.build_map_tile:main"

[tool.uv]
dev-dependencies = [
[dependency-groups]
dev = [
"black~=25.0",
"flake8~=7.1",
"flake8-annotations~=3.1",
"flake8-define-class-attributes~=0.2",
"httpx~=0.28",
"isort~=6.0",
"mypy~=1.11",
Expand All @@ -60,11 +62,15 @@ profile = "black"
line_length = 100
extend_skip = "lib"

[tool.pyright]
reportShadowedImports = false

[tool.mypy]
disallow_incomplete_defs = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
enable_error_code = "exhaustive-match"
ignore_missing_imports = true
no_implicit_optional = true
show_error_codes = true
Expand All @@ -74,9 +80,10 @@ warn_unused_configs = true
warn_unused_ignores = true
exclude = ["lib", "adsblol-proxy"]

[tool.pyright]
reportShadowedImports = false
[tool.uv.build-backend]
module-name = "skyportal"
module-root = ""

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
requires = ["uv_build"]
build-backend = "uv_build"
Loading