diff --git a/build.py b/build.py new file mode 100644 index 0000000..7959370 --- /dev/null +++ b/build.py @@ -0,0 +1,21 @@ +import os +import pathlib +import shutil +import yaml + +def copy_rules(basedir): + with open(os.path.join(basedir, 'version_sets.yaml'), 'r') as file: + version_sets = yaml.safe_load(file) + + for version, base_files in version_sets.items(): + dest = os.path.join(basedir, 'version_sets', version) + if os.path.exists(dest): + shutil.rmtree(dest) + pathlib.Path(dest).mkdir(parents=True) + for f in base_files: + src_file = os.path.join(basedir, 'base_rule_definitions', f) + dest_file = os.path.join(dest, f) + shutil.copyfile(src_file, dest_file) + +if __name__ == "__main__": + copy_rules(basedir='focus_validator/rules') diff --git a/focus_validator/rules/.gitignore b/focus_validator/rules/.gitignore new file mode 100644 index 0000000..0605180 --- /dev/null +++ b/focus_validator/rules/.gitignore @@ -0,0 +1,2 @@ +# Generated by build.py at wheel-time +version_sets/ diff --git a/focus_validator/rules/version_sets.yaml b/focus_validator/rules/version_sets.yaml new file mode 100644 index 0000000..86a15d6 --- /dev/null +++ b/focus_validator/rules/version_sets.yaml @@ -0,0 +1,60 @@ +'0.5': +- FV-D001-0001.yaml +- FV-D001-0002.yaml +- FV-D001-0003.yaml +- FV-D001-0004.yaml +- FV-D002-0001.yaml +- FV-D002-0002.yaml +- FV-D003-0001.yaml +- FV-D003-0002.yaml +- FV-D004-0001.yaml +- FV-D004-0002.yaml +- FV-D004-0003.yaml +- FV-D005-0001.yaml +- FV-D005-0002.yaml +- FV-D005-0003.yaml +- FV-D006-0001.yaml +- FV-D006-0002.yaml +- FV-D006-0003.yaml +- FV-D007-0001.yaml +- FV-D007-0002.yaml +- FV-D007-0003.yaml +- FV-D008-0001.yaml +- FV-D008-0002.yaml +- FV-D008-0003.yaml +- FV-D009-0001.yaml +- FV-D009-0002.yaml +- FV-D009-0003.yaml +- FV-D010-0001.yaml +- FV-D010-0002.yaml +- FV-D010-0003.yaml +- FV-D011-0001.yaml +- FV-D011-0002.yaml +- FV-D011-0003.yaml +- FV-D012-0001.yaml +- FV-D012-0002.yaml +- FV-D012-0003.yaml +- FV-D013-0001.yaml +- FV-D013-0002.yaml +- FV-D013-0003.yaml +- FV-D014-0001.yaml +- FV-D014-0002.yaml +- FV-D015-0001.yaml +- FV-D015-0002.yaml +- FV-D015-0003.yaml +- FV-D015-0004.yaml +- FV-D016-0001.yaml +- FV-D016-0002.yaml +- FV-D016-0003.yaml +- FV-D017-0001.yaml +- FV-D017-0002.yaml +- FV-D017-0003.yaml +- FV-D018-0001.yaml +- FV-D018-0002.yaml +- FV-D018-0003.yaml +- FV-M001-0001.yaml +- FV-M001-0002.yaml +- FV-M001-0003.yaml +- FV-M002-0001.yaml +- FV-M002-0002.yaml +- FV-M002-0003.yaml diff --git a/focus_validator/rules/version_sets/0.5/FV-D001-0001.yaml b/focus_validator/rules/version_sets/0.5/FV-D001-0001.yaml deleted file mode 120000 index 4bcf5b5..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D001-0001.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D001-0001.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D001-0002.yaml b/focus_validator/rules/version_sets/0.5/FV-D001-0002.yaml deleted file mode 120000 index 2c7e15e..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D001-0002.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D001-0002.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D001-0003.yaml b/focus_validator/rules/version_sets/0.5/FV-D001-0003.yaml deleted file mode 120000 index ec90fc1..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D001-0003.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D001-0003.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D001-0004.yaml b/focus_validator/rules/version_sets/0.5/FV-D001-0004.yaml deleted file mode 120000 index ed757eb..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D001-0004.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D001-0004.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D002-0001.yaml b/focus_validator/rules/version_sets/0.5/FV-D002-0001.yaml deleted file mode 120000 index 02086c6..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D002-0001.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D002-0001.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D002-0002.yaml b/focus_validator/rules/version_sets/0.5/FV-D002-0002.yaml deleted file mode 120000 index 8ef80bc..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D002-0002.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D002-0002.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D003-0001.yaml b/focus_validator/rules/version_sets/0.5/FV-D003-0001.yaml deleted file mode 120000 index e77d2c1..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D003-0001.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D003-0001.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D003-0002.yaml b/focus_validator/rules/version_sets/0.5/FV-D003-0002.yaml deleted file mode 120000 index 29c5e03..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D003-0002.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D003-0002.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D004-0001.yaml b/focus_validator/rules/version_sets/0.5/FV-D004-0001.yaml deleted file mode 120000 index a93f4b7..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D004-0001.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D004-0001.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D004-0002.yaml b/focus_validator/rules/version_sets/0.5/FV-D004-0002.yaml deleted file mode 120000 index b0602a8..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D004-0002.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D004-0002.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D004-0003.yaml b/focus_validator/rules/version_sets/0.5/FV-D004-0003.yaml deleted file mode 120000 index 389277a..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D004-0003.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D004-0003.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D005-0001.yaml b/focus_validator/rules/version_sets/0.5/FV-D005-0001.yaml deleted file mode 120000 index 6d5f94a..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D005-0001.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D005-0001.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D005-0002.yaml b/focus_validator/rules/version_sets/0.5/FV-D005-0002.yaml deleted file mode 120000 index 32f5465..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D005-0002.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D005-0002.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D005-0003.yaml b/focus_validator/rules/version_sets/0.5/FV-D005-0003.yaml deleted file mode 120000 index bbee430..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D005-0003.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D005-0003.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D006-0001.yaml b/focus_validator/rules/version_sets/0.5/FV-D006-0001.yaml deleted file mode 120000 index 8e16a1c..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D006-0001.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D006-0001.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D006-0002.yaml b/focus_validator/rules/version_sets/0.5/FV-D006-0002.yaml deleted file mode 120000 index 88e4cbc..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D006-0002.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D006-0002.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D006-0003.yaml b/focus_validator/rules/version_sets/0.5/FV-D006-0003.yaml deleted file mode 120000 index b9a757c..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D006-0003.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D006-0003.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D007-0001.yaml b/focus_validator/rules/version_sets/0.5/FV-D007-0001.yaml deleted file mode 120000 index 4f78ee5..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D007-0001.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D007-0001.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D007-0002.yaml b/focus_validator/rules/version_sets/0.5/FV-D007-0002.yaml deleted file mode 120000 index 9c3db63..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D007-0002.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D007-0002.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D007-0003.yaml b/focus_validator/rules/version_sets/0.5/FV-D007-0003.yaml deleted file mode 120000 index ba6f50a..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D007-0003.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D007-0003.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D008-0001.yaml b/focus_validator/rules/version_sets/0.5/FV-D008-0001.yaml deleted file mode 120000 index 1640433..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D008-0001.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D008-0001.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D008-0002.yaml b/focus_validator/rules/version_sets/0.5/FV-D008-0002.yaml deleted file mode 120000 index c02783b..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D008-0002.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D008-0002.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D008-0003.yaml b/focus_validator/rules/version_sets/0.5/FV-D008-0003.yaml deleted file mode 120000 index 8f00221..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D008-0003.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D008-0003.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D009-0001.yaml b/focus_validator/rules/version_sets/0.5/FV-D009-0001.yaml deleted file mode 120000 index 368d590..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D009-0001.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D009-0001.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D009-0002.yaml b/focus_validator/rules/version_sets/0.5/FV-D009-0002.yaml deleted file mode 120000 index 2405772..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D009-0002.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D009-0002.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D009-0003.yaml b/focus_validator/rules/version_sets/0.5/FV-D009-0003.yaml deleted file mode 120000 index a523bc8..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D009-0003.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D009-0003.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D010-0001.yaml b/focus_validator/rules/version_sets/0.5/FV-D010-0001.yaml deleted file mode 120000 index 1357b5d..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D010-0001.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D010-0001.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D010-0002.yaml b/focus_validator/rules/version_sets/0.5/FV-D010-0002.yaml deleted file mode 120000 index cd76c95..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D010-0002.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D010-0002.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D010-0003.yaml b/focus_validator/rules/version_sets/0.5/FV-D010-0003.yaml deleted file mode 120000 index b7d100f..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D010-0003.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D010-0003.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D011-0001.yaml b/focus_validator/rules/version_sets/0.5/FV-D011-0001.yaml deleted file mode 120000 index 75e3aad..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D011-0001.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D011-0001.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D011-0002.yaml b/focus_validator/rules/version_sets/0.5/FV-D011-0002.yaml deleted file mode 120000 index 7b382bc..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D011-0002.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D011-0002.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D011-0003.yaml b/focus_validator/rules/version_sets/0.5/FV-D011-0003.yaml deleted file mode 120000 index 61f6fd4..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D011-0003.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D011-0003.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D012-0001.yaml b/focus_validator/rules/version_sets/0.5/FV-D012-0001.yaml deleted file mode 120000 index 1e9e641..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D012-0001.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D012-0001.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D012-0002.yaml b/focus_validator/rules/version_sets/0.5/FV-D012-0002.yaml deleted file mode 120000 index be582ec..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D012-0002.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D012-0002.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D012-0003.yaml b/focus_validator/rules/version_sets/0.5/FV-D012-0003.yaml deleted file mode 120000 index 4cfb13b..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D012-0003.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D012-0003.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D013-0001.yaml b/focus_validator/rules/version_sets/0.5/FV-D013-0001.yaml deleted file mode 120000 index 25188de..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D013-0001.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D013-0001.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D013-0002.yaml b/focus_validator/rules/version_sets/0.5/FV-D013-0002.yaml deleted file mode 120000 index b32d2a3..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D013-0002.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D013-0002.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D013-0003.yaml b/focus_validator/rules/version_sets/0.5/FV-D013-0003.yaml deleted file mode 120000 index bf23ef9..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D013-0003.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D013-0003.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D014-0001.yaml b/focus_validator/rules/version_sets/0.5/FV-D014-0001.yaml deleted file mode 120000 index 049b62b..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D014-0001.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D014-0001.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D014-0002.yaml b/focus_validator/rules/version_sets/0.5/FV-D014-0002.yaml deleted file mode 120000 index c7dd9f1..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D014-0002.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D014-0002.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D015-0001.yaml b/focus_validator/rules/version_sets/0.5/FV-D015-0001.yaml deleted file mode 120000 index a24ec44..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D015-0001.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D015-0001.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D015-0002.yaml b/focus_validator/rules/version_sets/0.5/FV-D015-0002.yaml deleted file mode 120000 index 79c9fb8..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D015-0002.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D015-0002.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D015-0003.yaml b/focus_validator/rules/version_sets/0.5/FV-D015-0003.yaml deleted file mode 120000 index 7d24efb..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D015-0003.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D015-0003.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D015-0004.yaml b/focus_validator/rules/version_sets/0.5/FV-D015-0004.yaml deleted file mode 120000 index c0181be..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D015-0004.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D015-0004.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D016-0001.yaml b/focus_validator/rules/version_sets/0.5/FV-D016-0001.yaml deleted file mode 120000 index 2be25df..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D016-0001.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D016-0001.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D016-0002.yaml b/focus_validator/rules/version_sets/0.5/FV-D016-0002.yaml deleted file mode 120000 index 45979de..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D016-0002.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D016-0002.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D016-0003.yaml b/focus_validator/rules/version_sets/0.5/FV-D016-0003.yaml deleted file mode 120000 index 7775e96..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D016-0003.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D016-0003.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D017-0001.yaml b/focus_validator/rules/version_sets/0.5/FV-D017-0001.yaml deleted file mode 120000 index e2d4dba..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D017-0001.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D017-0001.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D017-0002.yaml b/focus_validator/rules/version_sets/0.5/FV-D017-0002.yaml deleted file mode 120000 index ba541bd..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D017-0002.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D017-0002.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D017-0003.yaml b/focus_validator/rules/version_sets/0.5/FV-D017-0003.yaml deleted file mode 120000 index 58d0afe..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D017-0003.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D017-0003.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D018-0001.yaml b/focus_validator/rules/version_sets/0.5/FV-D018-0001.yaml deleted file mode 120000 index bc4ec53..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D018-0001.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D018-0001.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D018-0002.yaml b/focus_validator/rules/version_sets/0.5/FV-D018-0002.yaml deleted file mode 120000 index 2877388..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D018-0002.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D018-0002.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-D018-0003.yaml b/focus_validator/rules/version_sets/0.5/FV-D018-0003.yaml deleted file mode 120000 index 6274407..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-D018-0003.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-D018-0003.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-M001-0001.yaml b/focus_validator/rules/version_sets/0.5/FV-M001-0001.yaml deleted file mode 120000 index 7770868..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-M001-0001.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-M001-0001.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-M001-0002.yaml b/focus_validator/rules/version_sets/0.5/FV-M001-0002.yaml deleted file mode 120000 index ed859f5..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-M001-0002.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-M001-0002.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-M001-0003.yaml b/focus_validator/rules/version_sets/0.5/FV-M001-0003.yaml deleted file mode 120000 index dbb95d4..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-M001-0003.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-M001-0003.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-M002-0001.yaml b/focus_validator/rules/version_sets/0.5/FV-M002-0001.yaml deleted file mode 120000 index 8ba19c4..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-M002-0001.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-M002-0001.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-M002-0002.yaml b/focus_validator/rules/version_sets/0.5/FV-M002-0002.yaml deleted file mode 120000 index 21902b4..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-M002-0002.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-M002-0002.yaml \ No newline at end of file diff --git a/focus_validator/rules/version_sets/0.5/FV-M002-0003.yaml b/focus_validator/rules/version_sets/0.5/FV-M002-0003.yaml deleted file mode 120000 index f31f6da..0000000 --- a/focus_validator/rules/version_sets/0.5/FV-M002-0003.yaml +++ /dev/null @@ -1 +0,0 @@ -../../base_rule_definitions/FV-M002-0003.yaml \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 59444f7..e56dc06 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,8 +6,16 @@ authors = [] readme = "README.md" packages = [{ include = "focus_validator" }] include = [ - { path = "focus_validator/rules/version_sets/0.5/*", format = ["sdist", "wheel"] } + { path = "focus_validator/rules/version_sets/0.5/*" } ] +# TODO: For some reason, this doesn't exclude anything +exclude = [ + { path = "focus_validator/rules/base_rule_definitions/*" } +] + +[tool.poetry.build] +generate-setup-file = false +script = "build.py" [tool.poetry.dependencies] python = "^3.8.3" @@ -45,7 +53,7 @@ pre-commit = "^3.3.3" bump2version = "^1.0.1" [build-system] -requires = ["poetry-core"] +requires = ["poetry-core", "pyyaml"] build-backend = "poetry.core.masonry.api" [tool.poetry.scripts] diff --git a/tests/test_match_check_id_rule_config_file.py b/tests/test_match_check_id_rule_config_file.py index d011b02..18620c7 100644 --- a/tests/test_match_check_id_rule_config_file.py +++ b/tests/test_match_check_id_rule_config_file.py @@ -15,16 +15,3 @@ def test_match_check_id_in_base_definitions(self): rule = Rule.load_yaml(rule_path=rule_path) self.assertIsInstance(rule, Rule) self.assertEqual(rule.check_id, Path(name).stem) - - def test_version_sets(self): - for root, dirs, files in os.walk( - "focus_validator/rules/version_sets", topdown=False - ): - for name in files: - rule_path = os.path.join(root, name) - self.assertTrue( - os.path.islink(rule_path), f"path not a sym link, {rule_path}" - ) - self.assertTrue( - Path(rule_path).exists(), f"invalid sym link, {rule_path}" - )