Skip to content

Commit e4ce905

Browse files
committed
Update badge location, precommits; add isort
1 parent 8e68b0a commit e4ce905

File tree

7 files changed

+24
-8
lines changed

7 files changed

+24
-8
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
repos:
22

3+
# Automatically sort imports
4+
- repo: https://github.com/PyCQA/isort
5+
rev: 5.6.4
6+
hooks:
7+
- id: isort
8+
39
# Automatic source code formatting
410
- repo: https://github.com/psf/black
5-
rev: 20.8b1
11+
rev: 21.4b2
612
hooks:
713
- id: black
814
args: [--safe, --quiet]

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ProcRunner
1111
:target: https://anaconda.org/conda-forge/procrunner
1212
:alt: Conda Version
1313

14-
.. image:: https://dev.azure.com/procrunner/procrunner/_apis/build/status/CI?branchName=master
14+
.. image:: https://dev.azure.com/DLS-tooling/procrunner/_apis/build/status/CI?branchName=master
1515
:target: https://github.com/DiamondLightSource/python-procrunner/commits/master
1616
:alt: Build status
1717

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[build-system]
2+
requires = ["setuptools >= 40.6.0", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[tool.isort]
6+
profile="black"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4-
from setuptools import setup, find_packages
4+
from setuptools import find_packages, setup
55

66
with open("README.rst") as readme_file:
77
readme = readme_file.read()

tests/test_procrunner.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import copy
2-
from unittest import mock
32
import os
43
import pathlib
5-
import procrunner
6-
import pytest
74
import sys
5+
from unittest import mock
6+
7+
import pytest
8+
9+
import procrunner
810

911

1012
@mock.patch("procrunner._NonBlockingStreamReader")

tests/test_procrunner_resolution.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import os
22
import sys
33

4-
import procrunner
54
import pytest
65

6+
import procrunner
7+
78

89
def PEP519(path):
910
class MockObject:

tests/test_procrunner_system.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
import sys
44
import timeit
55

6-
import procrunner
76
import pytest
87

8+
import procrunner
9+
910

1011
def test_simple_command_invocation():
1112
if os.name == "nt":

0 commit comments

Comments
 (0)