Skip to content

Commit 8a34e6a

Browse files
committed
Cleanup package and release setup
1 parent 403fc1e commit 8a34e6a

File tree

8 files changed

+56
-19
lines changed

8 files changed

+56
-19
lines changed

.bandit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[bandit]
2+
exclude: test_relint

.editorconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
indent_style = space
7+
indent_size = 4
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
charset = utf-8
11+
end_of_line = lf
12+
max_line_length = 88
13+
14+
[*.{json,yml,yaml,js,jsx}]
15+
indent_size = 2
16+
17+
[LICENSE]
18+
insert_final_newline = false

.fussyfox.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- bandit
2+
- flake8
3+
- isort
4+
- pydocstyle

.travis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
language: python
2+
dist: xenial
23
python:
34
- '3.5'
4-
- '3.6'
5+
- "3.6"
6+
- "3.7"
7+
cache: pip
8+
branches:
9+
only:
10+
- master
511
install: python setup.py develop
612
script: relint **
713
deploy:

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
exclude .* test* relint-pre-commit.sh

requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

setup.cfg

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[metadata]
22
name = relint
33
author = Johannes Hoppe
4-
author-email = [email protected]
5-
summary = Write your own linting rules using regular expressions
6-
description-file = README.rst
7-
description-content-type = text/x-rst; charset=UTF-8
8-
home-page = https://github.com/codingjoe/relint
4+
author_email = [email protected]
5+
description = Write your own linting rules using regular expressions
6+
long_description = file: README.rst
7+
url = https://github.com/codingjoe/relint
98
license = MIT
9+
license_file = LICENSE
1010
classifier =
1111
Development Status :: 4 - Beta
1212
Environment :: Console
@@ -21,16 +21,28 @@ keywords =
2121
linter
2222
regex
2323

24-
[entry_points]
24+
[options]
25+
install_requires = PyYAML
26+
setup_requires = setuptools_scm
27+
py_modules = relint
28+
29+
[options.entry_points]
2530
console_scripts =
2631
relint = relint:main
2732

28-
[pbr]
29-
skip_authors = true
30-
skip_changelog = true
33+
[bdist_wheel]
34+
universal = 1
3135

32-
[pycodestyle]
33-
max_line_length = 99
36+
[flake8]
37+
max_line_length = 88
3438

3539
[pydocstyle]
3640
add_ignore = D1
41+
42+
[isort]
43+
atomic = true
44+
line_length = 88
45+
known_first_party = relint
46+
include_trailing_comma = True
47+
default_section=THIRDPARTY
48+
combine_as_imports = true

setup.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
#!/usr/bin/env python
2-
32
from setuptools import setup
43

5-
setup(
6-
setup_requires=['pbr'],
7-
py_modules=['relint'],
8-
pbr=True,
9-
)
4+
setup(use_scm_version=True)

0 commit comments

Comments
 (0)