diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index bee82d5..ffae90c 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1 @@ -* @{{project.master}} +* @wessel diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 0706835..f7c38f6 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -1,20 +1,20 @@ # Contributing -If you wish to contribute to {{project.name}}, feel free to fork the repository and submit a pull request. -{{project.linter}} is enforced to correct most typo's you make and keep the code style the same throughout the whole project, -so it would be much appreciated if you installed {{project.linter}} to your editor of choice +If you wish to contribute to InHolland ROS2, feel free to fork the repository and submit a pull request. +sonarqube is enforced to correct most typo's you make and keep the code style the same throughout the whole project, +so it would be much appreciated if you installed sonarqube to your editor of choice ## Prerequisites -The following prerequisites must be met before installing {{project.name}}: -{{setup.prerequisites}} +The following prerequisites must be met before installing InHolland ROS2: + ## Setup To get ready to work on the codebase, please do the following: 1. Fork & clone the repository, and make sure you are on the **master** branch -2. Run {{setup.install}} -3. Code your ideas and test them using {{setup.test}} -4. [Submit a pull request](https://github.com/{{project.master}}/{{project.name}}/compare) +2. Run +3. Code your ideas and test them using +4. [Submit a pull request](https://github.com/wessel/InHolland ROS2/compare) ## Testing When creating any new functions, please also create unit tests for them in the `tests` directory. diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index b3be161..311847d 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1 +1,2 @@ -{{project.funding}} +{} + diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 01b6643..eb4500c 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -6,7 +6,8 @@ body: id: package attributes: label: Which part is this bug report for? - options: {{tree.parts}} + options: [''] + validations: required: true - type: textarea @@ -26,7 +27,7 @@ body: attributes: label: Code sample description: Include a reproducible, minimal code sample. This will be automatically formatted into code, so no need for backticks. - render: {{project.lang}} + render: cpp placeholder: | Your code sample should be... ... Minimal - Use as little code as possible that still produces the same problem (and is understandable) @@ -42,9 +43,9 @@ body: - type: input id: lang-version attributes: - label: '{{project.lang}} version' + label: 'cpp version' description: | - Which version of {{project.lang}} are you using? + Which version of cpp are you using? validations: required: true - type: input diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index a5f5423..bd7056e 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,2 +1,6 @@ blank_issues_enabled: false -{{project.contact}} +contact_links: +- about: E-mail + name: email + url: contact@wessel.gg + diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index 14a0911..417f49d 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -10,7 +10,8 @@ body: id: package attributes: label: Which part is this feature request for? - options: {{tree.parts}} + options: [''] + validations: required: false - type: textarea diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index f35130a..59910e1 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,6 +1,6 @@ --- name: Pull Request -about: Propose changes to {{project.name}} +about: Propose changes to InHolland ROS2 title: "[PR] Your changes" labels: pullrequest --- @@ -12,6 +12,6 @@ labels: pullrequest - [ ] Code changes have been tested and there aren't any typos in it **Semantic versioning classification:** -- [ ] This PR changes {{project.name}} core codebase (methods or parameters added) +- [ ] This PR changes InHolland ROS2 core codebase (methods or parameters added) - [ ] This PR includes breaking changes (methods removed or renamed, parameters moved or removed) - [ ] This PR **only** includes non-code changes, like changes to documentation, README, etc. diff --git a/.github/auto_assign.yml b/.github/auto_assign.yml index 3c8d1f2..37f5588 100644 --- a/.github/auto_assign.yml +++ b/.github/auto_assign.yml @@ -1,4 +1,5 @@ addReviewers: true -reviewers: {{project.reviewers}} +reviewers: [wessel] + numberOfReviewers: 0 runOnDraft: true diff --git a/LICENSE b/LICENSE index b4bba09..d115716 100644 --- a/LICENSE +++ b/LICENSE @@ -1,7 +1,7 @@ The MIT License (MIT) -Copyright (c) {{project.license}} +Copyright (c) 2025 Wessel T Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 020ea8d..5d30da6 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ - + -> {{project.name}} +> InHolland ROS2 [![MIT License](https://img.shields.io/badge/license-MIT-007EC7.svg?style=flat-square)](/LICENSE) -{{info.desc}} +Minor Embedded Systems ROS2 Project

diff --git a/init_repo.py b/init_repo.py deleted file mode 100644 index 5527d89..0000000 --- a/init_repo.py +++ /dev/null @@ -1,86 +0,0 @@ -import os -import yaml -import re -import datetime - -file_types = ['LICENSE', 'CODEOWNERS', '.md', '.yml'] -script_name = os.path.basename(__file__) - -def replace_placeholders(file_path, replacements): - with open(file_path, 'r', encoding='utf-8') as file: - content = file.read() - - for placeholder, replacement in replacements.items(): - content = re.sub(re.escape(placeholder), replacement, content) - - with open(file_path, 'w', encoding='utf-8') as file: - file.write(content) - -def initialize_repository(directory, replacements): - for root, _, files in os.walk(directory): - for file in files: - if file == script_name: - continue - if any(file.endswith(file_type) for file_type in file_types): - file_path = os.path.join(root, file) - replace_placeholders(file_path, replacements) - -def parse_input(prompt): - return [item.strip() for item in input(prompt).split(',')] - -def parse_contact(prompt): - contacts = [] - while True: - print(prompt) - name = input(f"\tName\t\t").strip() - if not name: - break - url = input(f"\tURL\t\t").strip() - about = input(f"\tAbout\t\t").strip() - contacts.append({'name': name, 'url': url, 'about': about}) - return {'contact_links': contacts} - -def parse_funding(prompt): - funding = {} - while True: - print(prompt) - key = input(f"\tKey\t\t").strip() - if not key: - break - value = input(f"\tValue\t\t").strip() - funding[key] = value - - return funding - -def main(): - current_year = str(datetime.datetime.now().year) - - replacements = { - "{{project.name}}": input("Project name\t\t"), - "{{info.desc}}": input("Project Description\t"), - "{{project.master}}": input("Master of the repo\t"), - "{{project.license}}": f"{current_year} " + input('License holder\t\t'), - - "{{tree.parts}}": yaml.dump(parse_input("Parts of the repo\t"), default_flow_style=True), - "{{project.lang}}": input("Language used\t\t"), - "{{project.linter}}": input("Linter used\t\t"), - - "{{setup.prerequisites}}": input("Prerequisites\t\t"), - "{{setup.install}}": input("Install command\t\t"), - "{{setup.test}}": input("Test command\t\t"), - - "{{project.logo}}": input("Project logo URL\t"), - "{{project.funding}}": yaml.dump(parse_funding("Funding methods\t\t"), default_flow_style=True), - "{{project.contact}}": yaml.dump(parse_contact("Contact information\t"), default_flow_style=False), - "{{project.reviewers}}": yaml.dump(parse_input("Auto-assign users (x,y)\t"), default_flow_style=True) - } - - directory = input("Initialize directory\t") or '.' - initialize_repository(directory, replacements) - - delete = input("Delete this script? (Y/n)\t") or "y" - if delete.lower() == "y": - os.remove(__file__) - -if __name__ == "__main__": - main()