Skip to content

Commit

Permalink
apply suggested fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
CamJN committed Oct 5, 2023
1 parent 9b2fde2 commit 80c2e6c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,8 @@ classifiers = [
"Bug Reports" = "https://github.com/getargv/getargv.py/issues"
"Homepage" = "https://getargv.narzt.cam"
"Funding" = "https://github.com/sponsors/CamJN"

[tool.pyright]
include = ["src", "setup.py"]
typeCheckingMode = "strict"
reportMissingModuleSource = false
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
from setuptools import setup, Extension
from distutils.ccompiler import new_compiler
from platform import processor
from sys import platform, version_info
from sysconfig import get_config_var
from os import environ, path
from typing import Any, TypedDict, Literal, cast, Union
import subprocess
if version_info >= (3, 11):
import sys
if sys.version_info >= (3, 11):
import tomllib
else:
import tomli as tomllib

# debug by setting DISTUTILS_DEBUG env var in shell to anything

assert platform == "darwin"
assert sys.platform == "darwin"

encoding:str = 'UTF-8'

Expand Down
6 changes: 3 additions & 3 deletions src/getargv/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
__version__ The package version
"""

from sys import platform, version_info
if version_info >= (3, 8):
import sys
if sys.version_info >= (3, 8):
from importlib import metadata
else:
import importlib_metadata as metadata

if platform != 'darwin':
if sys.platform != 'darwin':
from warnings import warn
warn("only macOS is supported")

Expand Down
1 change: 0 additions & 1 deletion typings/_getargv.pyi

This file was deleted.

0 comments on commit 80c2e6c

Please sign in to comment.