Skip to content
Open
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
36 changes: 36 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: end-of-file-fixer
exclude: test_data
- id: trailing-whitespace
exclude: test_data
- id: check-toml
- repo: https://github.com/pappasam/toml-sort
rev: v0.23.0
hooks:
- id: toml-sort-fix
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
# - repo: https://github.com/charliermarsh/ruff-pre-commit
# rev: 'v0.0.261'
# hooks:
# - id: ruff
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.1.1'
hooks:
- id: mypy
exclude: tests|test_data
- repo: local
hooks:
- id: pytest
name: pytest
entry: pytest
language: conda
pass_filenames: false
always_run: true
fail_fast: false
78 changes: 75 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,83 @@
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=61.2"
]

[project]
authors = [
{email = "bwhmather@bwhmather.com", name = "Ben Mather"}
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance"
]
dependencies = [
"pathspec >=0.9.0"
]
description = "The python statement sorter"
dynamic = [
"version"
]
maintainers = [
{email = "bwhmather@bwhmather.com", name = "Ben Mather"}
]
name = "ssort"
readme = "README.rst"
requires-python = ">=3.8"

[project.license]
text = "MIT"

[project.scripts]
ssort = "ssort._main:main"

[project.urls]
Homepage = "https://github.com/bwhmather/ssort"

[tool.black]
force-exclude = 'test_data/samples/*'
line_length = 79

[tool.distutils.bdist_wheel]
universal = 1

[tool.isort]
profile = "black"
multi_line_output = 3
extend_skip = ["test_data/samples"]
line_length = 79
multi_line_output = 3
profile = "black"

[[tool.mypy.overrides]]
module = "pathspec"
ignore_missing_imports = true
module = "pathspec"

[tool.setuptools]
include-package-data = false
license-files = [
"LICENSE"
]

[tool.setuptools.dynamic.version]
attr = "ssort.__version__"

[tool.setuptools.packages.find]
where = ["src"]

[tool.tomlsort]
all = true
in_place = true
spaces_before_inline_comment = 2
spaces_indent_inline_array = 4

[tool.tomlsort.overrides]
"project.classifiers".inline_arrays = false
43 changes: 0 additions & 43 deletions setup.cfg

This file was deleted.

8 changes: 0 additions & 8 deletions setup.py

This file was deleted.

1 change: 0 additions & 1 deletion tests/test_bindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,6 @@ def test_bool_op_bindings_walrus_multiple():


def test_bin_op_bindings():

"""
..code:: python

Expand Down
3 changes: 0 additions & 3 deletions tests/test_requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,6 @@ def test_named_expr_requirements():


def test_bin_op_requirements():

"""
..code:: python

Expand Down Expand Up @@ -995,7 +994,6 @@ def test_starred_requirements():


def test_name_requirements():

"""
..code:: python

Expand All @@ -1006,7 +1004,6 @@ def test_name_requirements():


def test_list_requirements():

"""
..code:: python

Expand Down