Skip to content

Commit

Permalink
feat(deps): add lint dependency group, remove unused/replaced with
Browse files Browse the repository at this point in the history
ruff
  • Loading branch information
BradenM committed Mar 13, 2023
1 parent 8c600f2 commit f820baa
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 182 deletions.
17 changes: 8 additions & 9 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ babel==2.11.0 ; python_version >= "3.7" and python_version < "3.12"
bleak-sigspec==0.0.4 ; python_version >= "3.7" and python_version < "3.12"
bleak-winrt==1.2.0 ; python_version >= "3.7" and python_version < "3.12" and platform_system == "Windows"
bleak==0.19.4 ; python_version >= "3.7" and python_version < "3.12"
boltons==21.0.0 ; python_version >= "3.7" and python_version < "3.12"
boltons==23.0.0 ; python_version >= "3.7" and python_version < "3.12"
cachier==2.0.0 ; python_version >= "3.7" and python_version < "3.12"
certifi==2022.9.24 ; python_version >= "3.7" and python_version < "3.12"
charset-normalizer==2.1.1 ; python_version >= "3.7" and python_version < "3.12"
Expand All @@ -20,27 +20,26 @@ distlib==0.3.6 ; python_version >= "3.7" and python_version < "3.12"
docutils==0.17.1 ; python_version >= "3.7" and python_version < "3.12"
dpath==1.5.0 ; python_version >= "3.7" and python_version < "3.12"
gitdb==4.0.9 ; python_version >= "3.7" and python_version < "3.12"
gitpython==3.1.30 ; python_version >= "3.7" and python_version < "3.12"
gitpython==3.1.31 ; python_version >= "3.7" and python_version < "3.12"
idna==3.4 ; python_version >= "3.7" and python_version < "3.12"
imagesize==1.4.1 ; python_version >= "3.7" and python_version < "3.12"
importlib-metadata==5.2.0 ; python_version >= "3.7" and python_version < "3.10"
jinja2==3.1.2 ; python_version >= "3.7" and python_version < "3.12"
jsonschema==3.2.0 ; python_version >= "3.7" and python_version < "3.12"
markupsafe==2.1.2 ; python_version >= "3.7" and python_version < "3.12"
mypy-extensions==0.4.3 ; python_version >= "3.7" and python_version < "3.12"
mypy==0.991 ; python_version >= "3.7" and python_version < "3.12"
mypy-extensions==1.0.0 ; python_version >= "3.7" and python_version < "3.12"
mypy==1.1.1 ; python_version >= "3.7" and python_version < "3.12"
netifaces==0.11.0 ; python_version >= "3.7" and python_version < "3.12"
packaging==21.3 ; python_version >= "3.7" and python_version < "3.12"
packaging==23.0 ; python_version >= "3.7" and python_version < "3.12"
pathtools==0.1.2 ; python_version >= "3.7" and python_version < "3.12"
portalocker==2.6.0 ; python_version >= "3.7" and python_version < "3.12"
prompt-toolkit==3.0.32 ; python_version >= "3.7" and python_version < "3.12"
pydantic==1.10.4 ; python_version >= "3.7" and python_version < "3.12"
pydantic==1.10.6 ; python_version >= "3.7" and python_version < "3.12"
pygments==2.13.0 ; python_version >= "3.7" and python_version < "3.12"
pyobjc-core==8.5.1 ; python_version >= "3.7" and python_version < "3.12" and platform_system == "Darwin"
pyobjc-framework-cocoa==8.5.1 ; python_version >= "3.7" and python_version < "3.12" and platform_system == "Darwin"
pyobjc-framework-corebluetooth==8.5.1 ; python_version >= "3.7" and python_version < "3.12" and platform_system == "Darwin"
pyobjc-framework-libdispatch==8.5.1 ; python_version >= "3.7" and python_version < "3.12" and platform_system == "Darwin"
pyparsing==3.0.9 ; python_version >= "3.7" and python_version < "3.12"
pyreadline==2.1 ; python_version < "3.10" and sys_platform == "win32" and python_version >= "3.7"
pyrsistent==0.19.2 ; python_version >= "3.7" and python_version < "3.12"
pyserial==3.5 ; python_version >= "3.7" and python_version < "3.12"
Expand Down Expand Up @@ -69,9 +68,9 @@ sphinxcontrib-jsmath==1.0.1 ; python_version >= "3.7" and python_version < "3.12
sphinxcontrib-qthelp==1.0.3 ; python_version >= "3.7" and python_version < "3.12"
sphinxcontrib-serializinghtml==1.1.5 ; python_version >= "3.7" and python_version < "3.12"
tomli==2.0.1 ; python_version >= "3.7" and python_version < "3.11"
tqdm==4.64.1 ; python_version >= "3.7" and python_version < "3.12"
tqdm==4.65.0 ; python_version >= "3.7" and python_version < "3.12"
typed-ast==1.5.4 ; python_version >= "3.7" and python_version < "3.8"
typing-extensions==4.4.0 ; python_version >= "3.7" and python_version < "3.12"
typing-extensions==4.5.0 ; python_version >= "3.7" and python_version < "3.12"
unsync==1.4.0 ; python_version >= "3.7" and python_version < "3.12"
upydevice==0.3.8 ; python_version >= "3.7" and python_version < "3.12"
urllib3==1.26.12 ; python_version >= "3.7" and python_version < "3.12"
Expand Down
193 changes: 28 additions & 165 deletions poetry.lock

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

44 changes: 36 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,20 +67,22 @@ distlib = "0.3.6"
importlib-metadata = { version = "==5.2.0", python = '<3.10' }

[tool.poetry.group.dev.dependencies]
autoflake = "^2.0.0"
autopep8 = "^1.5"
bump2version = "^0.5.11"
isort = { version="^5.12.0", python=">=3.8" }
pylint = "^2.7"
black = "^23.0.0"
pre-commit = { version="^3.0.2", python=">=3.8" }
doc8 = "^0.11.0"
docformatter = "^1.4"
mypy = { version = "^1.0", extras = ["dmypy"] }
types-requests = "^2.27.14"
pyupgrade = "^3.3.1"
pylint = "^2.7"
better-exceptions = "^0.3.3"

[tool.poetry.group.lint]
optional = true

[tool.poetry.group.lint.dependencies]
pyupgrade = "^3.3.1"
isort = { version="^5.12.0", python=">=3.8" }
black = "^23.0.0"
ruff = "^0.0.254"

[tool.poetry.group.test]
optional = true

Expand Down Expand Up @@ -154,6 +156,32 @@ src_paths = ["src"]
line_length = 100
honor_noqa = true

[tool.ruff]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
# "I", # isort
# "D", # pydocstyle
"UP", # pyupgrade
"C", # flake8-comprehensions
"B", # flake8-bugbear
# "PT", # flake8-pytest-style
"RUF" # ruff specific rules
]
ignore = [
"E501", # line too long - let black handle.
"C901", # too complex
"C408", # rewrite as literal; makes comprehensions harder sometimes imo
]
line-length = 100
target-version = 'py37'
src = ['micropy']
extend-exclude = ['micropy/lib', 'tests/test_stubs', 'tests/data', 'micropy/utils/__init__.py']

[tool.ruff.pyupgrade]
keep-runtime-typing = true

[tool.pytest.ini_options]
collect_ignore = ['setup.py', 'micropy/lib/*', 'micropy/lib/**/*']
testpaths = "tests"
Expand Down

0 comments on commit f820baa

Please sign in to comment.