Browse Source

updated project

Médéric Hurier 2 months ago
parent
commit
1b01a24f03
14 changed files with 73 additions and 33 deletions
  1. 0
    5
      Makefile
  2. 2
    3
      covers/Makefile
  3. 1
    1
      covers/htmlcov/index.html
  4. 1
    1
      covers/htmlcov/onset___init___py.html
  5. 2
    3
      formats/Makefile
  6. 0
    2
      hooks/Makefile
  7. 0
    3
      lints/Makefile
  8. 0
    2
      packages/Makefile
  9. 2
    3
      pytags/Makefile
  10. 0
    2
      scripts/Makefile
  11. 0
    2
      shells/Makefile
  12. 65
    0
      tags
  13. 0
    3
      tests/Makefile
  14. 0
    3
      types/Makefile

+ 0
- 5
Makefile View File

@@ -4,8 +4,6 @@ MAKEFLAGS += --silent
4 4
 MAKECONFS += $(wildcard */Makefile)
5 5
 MAKEREPOS += $(subst /,, $(dir ${MAKECONFS}))
6 6
 
7
-.DEFAULT_GOAL := check
8
-
9 7
 .venv:
10 8
 	python -m venv .venv --clear --symlinks
11 9
 
@@ -15,8 +13,5 @@ init:
15 13
 clean:
16 14
 	@for dir in ${MAKEREPOS} ; do make clean-$$dir ; done
17 15
 
18
-check:
19
-	@for dir in ${MAKEREPOS} ; do make check-$$dir ; done
20
-
21 16
 commit:
22 17
 	@for dir in ${MAKEREPOS} ; do make commit-$$dir ; done

+ 2
- 3
covers/Makefile View File

@@ -8,9 +8,8 @@ clean-covers:
8 8
 	rm -rf "covers/htmlcov"
9 9
 	find . -name '.coverage' -exec rm -fr {} +
10 10
 
11
-check-covers: ;
12
-
13
-commit-covers: htmlcov;
11
+commit-covers: htmlcov
12
+	git add --all 'covers/htmlcov/'
14 13
 
15 14
 cover: .venv
16 15
 	.venv/bin/coverage run --source ${NAME} -m pytest -q

+ 1
- 1
covers/htmlcov/index.html View File

@@ -107,7 +107,7 @@
107 107
     <div class="content">
108 108
         <p>
109 109
             <a class="nav" href="https://coverage.readthedocs.io">coverage.py v4.5.2</a>,
110
-            created at 2018-12-07 11:04
110
+            created at 2018-12-07 21:29
111 111
         </p>
112 112
     </div>
113 113
 </div>

+ 1
- 1
covers/htmlcov/onset___init___py.html View File

@@ -148,7 +148,7 @@
148 148
     <div class="content">
149 149
         <p>
150 150
             <a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v4.5.2</a>,
151
-            created at 2018-12-07 10:58
151
+            created at 2018-12-07 21:29
152 152
         </p>
153 153
     </div>
154 154
 </div>

+ 2
- 3
formats/Makefile View File

@@ -4,9 +4,8 @@ init-formats: .venv
4 4
 
5 5
 clean-formats: ;
6 6
 
7
-check-formats: ;
8
-
9
-commit-formats: format;
7
+commit-formats: format
8
+	git add --all **/*.py
10 9
 
11 10
 format: .venv
12 11
 	.venv/bin/black --config='black.ini' .

+ 0
- 2
hooks/Makefile View File

@@ -1,8 +1,6 @@
1 1
 init-hooks:
2 2
 	git config --global core.hooksPath hooks/
3 3
 
4
-check-hooks: ;
5
-
6 4
 clean-hooks: ;
7 5
 
8 6
 commit-hooks: ;

+ 0
- 3
lints/Makefile View File

@@ -6,9 +6,6 @@ init-lints: .venv
6 6
 
7 7
 clean-lints: ;
8 8
 
9
-check-lints: .venv
10
-	.venv/bin/pylint --errors-only ${NAME} | grep ".py" || true
11
-
12 9
 commit-lints: lint;
13 10
 
14 11
 lint: .venv

+ 0
- 2
packages/Makefile View File

@@ -5,8 +5,6 @@ clean-packages:
5 5
 	rm -rf build/lib/
6 6
 	rm -rf dist/*.whl
7 7
 
8
-check-packages: ;
9
-
10 8
 commit-packages: package;
11 9
 
12 10
 package: .venv clean-packages

+ 2
- 3
pytags/Makefile View File

@@ -1,12 +1,11 @@
1 1
 init-pytags:
2 2
 	ln -fs 'pytags/ctags' '.ctags'
3 3
 
4
-check-pytags: ;
5
-
6 4
 clean-pytags:
7 5
 	rm -f tags
8 6
 
9
-commit-pytags: tag;
7
+commit-pytags: tag
8
+	git add tags
10 9
 
11 10
 tag:
12 11
 	ctags .

+ 0
- 2
scripts/Makefile View File

@@ -2,6 +2,4 @@ init-scripts: ;
2 2
 
3 3
 clean-scripts: ;
4 4
 
5
-check-scripts: ;
6
-
7 5
 commit-scripts: ;

+ 0
- 2
shells/Makefile View File

@@ -4,8 +4,6 @@ init-shells: .venv
4 4
 
5 5
 clean-shells: ;
6 6
 
7
-check-shells: ;
8
-
9 7
 commit-shells: ;
10 8
 
11 9
 shell: .venv

+ 65
- 0
tags View File

@@ -0,0 +1,65 @@
1
+!_TAG_FILE_FORMAT	2	/extended format; --format=1 will not append ;" to lines/
2
+!_TAG_FILE_SORTED	1	/0=unsorted, 1=sorted, 2=foldcase/
3
+!_TAG_PROGRAM_AUTHOR	Darren Hiebert	/dhiebert@users.sourceforge.net/
4
+!_TAG_PROGRAM_NAME	Exuberant Ctags	//
5
+!_TAG_PROGRAM_URL	http://ctags.sourceforge.net	/official site/
6
+!_TAG_PROGRAM_VERSION	5.9~svn20110310	//
7
+OnSet	tests/test_onset.py	/^class OnSet(RuleBasedStateMachine):$/;"	c
8
+TestOnSet	tests/test_onset.py	/^TestOnSet = OnSet.TestCase$/;"	v
9
+author	setup.py	/^    author="Médéric Hurier",$/;"	v
10
+author_email	setup.py	/^    author_email="dev@fmind.me",$/;"	v
11
+c	ipython.py	/^c = get_config()$/;"	v
12
+c	shells/ipython.py	/^c = get_config()$/;"	v
13
+classifiers	setup.py	/^    classifiers=[$/;"	v
14
+description	setup.py	/^    description="Run set operations on files.",$/;"	v
15
+difference	onset/__init__.py	/^def difference(s: set, t: set) -> None:$/;"	f
16
+difference	tests/test_onset.py	/^    def difference(self, t):$/;"	m	class:OnSet
17
+disjunction	onset/__init__.py	/^def disjunction(s: set, t: set) -> None:$/;"	f
18
+disjunction	tests/test_onset.py	/^    def disjunction(self, t):$/;"	m	class:OnSet
19
+extras_require	setup.py	/^    extras_require={$/;"	v
20
+from_file	scripts/console.py	/^def from_file(path: str) -> set:$/;"	f
21
+from_oper	scripts/console.py	/^def from_oper(oper: str) -> Callable[[set, set], None]:$/;"	f
22
+info	setup.py	/^info = dict($/;"	v
23
+install_requires	setup.py	/^    install_requires=requires(),$/;"	v
24
+intersection	onset/__init__.py	/^def intersection(s: set, t: set) -> None:$/;"	f
25
+intersection	tests/test_onset.py	/^    def intersection(self, t):$/;"	m	class:OnSet
26
+intset	tests/test_onset.py	/^intset = strategies.sets(strategies.integers())$/;"	v
27
+is_set	tests/test_onset.py	/^    def is_set(self):$/;"	m	class:OnSet
28
+keywords	setup.py	/^    keywords="set file utility operation",$/;"	v
29
+license	setup.py	/^    license="AGPL-3.0",$/;"	v
30
+long_description	setup.py	/^    long_description=open("README.md", "r").read(),$/;"	v
31
+long_description_content_type	setup.py	/^    long_description_content_type="text\/markdown",$/;"	v
32
+main	scripts/console.py	/^def main(args=None):$/;"	f
33
+name	setup.py	/^    name="onset",$/;"	v
34
+package_dir	setup.py	/^    package_dir={"onset.scripts": "scripts"},$/;"	v
35
+packages	setup.py	/^    packages=["onset", "onset.scripts"],$/;"	v
36
+parser	scripts/console.py	/^parser = argparse.ArgumentParser(description=__doc__)$/;"	v
37
+requires	setup.py	/^def requires(requirements="requirements.txt"):$/;"	f
38
+root	setup.py	/^root = os.path.abspath(os.path.dirname(__file__))$/;"	v
39
+s	tests/test_onset.py	/^    s = intset.example()$/;"	v	class:OnSet
40
+test_difference_not_commutative	tests/test_onset.py	/^def test_difference_not_commutative(s, t):$/;"	f
41
+test_difference_on_empty	tests/test_onset.py	/^def test_difference_on_empty(s):$/;"	f
42
+test_difference_with_empty	tests/test_onset.py	/^def test_difference_with_empty(s):$/;"	f
43
+test_difference_with_self	tests/test_onset.py	/^def test_difference_with_self(s):$/;"	f
44
+test_difference_with_subset	tests/test_onset.py	/^def test_difference_with_subset(s, t):$/;"	f
45
+test_disjunction_is_associative	tests/test_onset.py	/^def test_disjunction_is_associative(s, t, r):$/;"	f
46
+test_disjunction_is_commutative	tests/test_onset.py	/^def test_disjunction_is_commutative(s, t):$/;"	f
47
+test_disjunction_with_empty	tests/test_onset.py	/^def test_disjunction_with_empty(s):$/;"	f
48
+test_disjunction_with_self	tests/test_onset.py	/^def test_disjunction_with_self(s):$/;"	f
49
+test_disjunction_with_subset	tests/test_onset.py	/^def test_disjunction_with_subset(s, t):$/;"	f
50
+test_intersection_is_associative	tests/test_onset.py	/^def test_intersection_is_associative(s, t, r):$/;"	f
51
+test_intersection_is_commutative	tests/test_onset.py	/^def test_intersection_is_commutative(s, t):$/;"	f
52
+test_intersection_is_subset	tests/test_onset.py	/^def test_intersection_is_subset(s, t):$/;"	f
53
+test_intersection_with_empty	tests/test_onset.py	/^def test_intersection_with_empty(s):$/;"	f
54
+test_intersection_with_self	tests/test_onset.py	/^def test_intersection_with_self(s):$/;"	f
55
+test_intersection_with_subset	tests/test_onset.py	/^def test_intersection_with_subset(s, t):$/;"	f
56
+test_union_is_associative	tests/test_onset.py	/^def test_union_is_associative(s, t, r):$/;"	f
57
+test_union_is_commutative	tests/test_onset.py	/^def test_union_is_commutative(s, t):$/;"	f
58
+test_union_is_superset	tests/test_onset.py	/^def test_union_is_superset(s, t):$/;"	f
59
+test_union_with_empty	tests/test_onset.py	/^def test_union_with_empty(s):$/;"	f
60
+test_union_with_self	tests/test_onset.py	/^def test_union_with_self(s):$/;"	f
61
+test_union_with_subset	tests/test_onset.py	/^def test_union_with_subset(s, t):$/;"	f
62
+union	onset/__init__.py	/^def union(s: set, t: set) -> None:$/;"	f
63
+union	tests/test_onset.py	/^    def union(self, t):$/;"	m	class:OnSet
64
+url	setup.py	/^    url="https:\/\/git.fmind.me\/fmind\/onset",$/;"	v
65
+version	setup.py	/^    version="1.0.12",$/;"	v

+ 0
- 3
tests/Makefile View File

@@ -6,9 +6,6 @@ clean-tests:
6 6
 	find . -name '.hypothesis' -exec rm -fr {} +
7 7
 	find . -name '.pytest_cache' -exec rm -fr {} +
8 8
 
9
-check-tests: .venv
10
-	.venv/bin/pytest --quiet --tb=line | grep ".py" || true
11
-
12 9
 commit-tests: test;
13 10
 
14 11
 test: .venv

+ 0
- 3
types/Makefile View File

@@ -5,9 +5,6 @@ init-types: .venv
5 5
 clean-types:
6 6
 	find . -name '.mypy_cache' -exec rm -fr {} +
7 7
 
8
-check-types: .venv
9
-	.venv/bin/mypy . | grep ".py" || true
10
-
11 8
 commit-types: type;
12 9
 
13 10
 type: .venv