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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/editorconfig_tools/version.py
*.pyc
EditorConfig_Tools.egg-info/*
build/*
Expand Down
2 changes: 1 addition & 1 deletion editorconfig_tools/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1.0'
from .version import __version__
5 changes: 5 additions & 0 deletions editorconfig_tools/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from .check_editorconfig import main


if __name__ == '__main__':
main()
3 changes: 0 additions & 3 deletions editorconfig_tools/check_editorconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,3 @@ def main():
for error in checker.check(filename, props):
print("%s: %s" % (filename, error))


if __name__ == '__main__':
main()
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[build-system]
requires = ["setuptools>=44", "wheel", "setuptools_scm[toml]>=3.4.3"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
write_to = "editorconfig_tools/version.py"
write_to_template = "__version__ = '{version}'\n"
15 changes: 15 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[metadata]
name = EditorConfig Tools
author = EditorConfig Team
license = BSD-2-Clause AND BSD-3-Clause
description = Tools for correcting files based on EditorConfig files
long_description = file: README.rst

[options]
packages = editorconfig_tools
install_requires = editorconfig; clint
test_suite = test_tools

[options.entry_points]
console_scripts =
check_editorconfig = editorconfig_tools.check_editorconfig:main
21 changes: 0 additions & 21 deletions setup.py

This file was deleted.