Skip to content

Commit

Permalink
fix: update almost all workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmuelbert committed Mar 19, 2024
1 parent c0a86c6 commit 5b137d0
Show file tree
Hide file tree
Showing 123 changed files with 5,112 additions and 3,070 deletions.
3 changes: 3 additions & 0 deletions .codacy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
exclude_paths:
- 'src/3rd-party/**'
5 changes: 5 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ignore:
- 'test'

comment:
require_changes: true
4 changes: 4 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[codespell]
skip = *.ts,./build-*,.git,./3rdparty/*,./cmake/ECM*,format.config.uncrustify.4_spaces
interactive = 3
ignore-words-list = ba,statics,resetable,processinf,nnumber,trun
38 changes: 38 additions & 0 deletions .devcontainer/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Build directories and binary files
build/
out/
cmake-build-*/

# User specific settings
CMakeUserPresets.json

# IDE files
.vs/
.idea/
.vscode/
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# Editor/IDE-specific files and backups
*.swp
*~
_ReSharper*
*.log

# OS Generated Files
.DS_Store
.AppleDouble
.LSOverride
._*
.Spotlight-V100
.Trashes
.Trash-*
$RECYCLE.BIN/
.TemporaryItems
ehthumbs.db
Thumbs.db

# Dockerfile
Dockerfile
6 changes: 6 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM mcr.microsoft.com/vscode/devcontainers/universal:linux

USER codespace

COPY scripts/install-dependencies.sh /tmp/
RUN bash /tmp/install-dependencies.sh
26 changes: 26 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile
{
// "dockerComposeFile": "./docker-compose.yaml",
// "service": "test-connections",
"workspaceFolder": "/workspaces/test-connections",
"name": "test-connections",
"customizations": {
"vscode": {
"extensions": ["ms-python.python"],
"settings": {
"python.defaultInterpreterPath": "/home/vscode/test-connections-env/bin/python3.11"
}
}
},
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Uncomment the next line to run commands after the container is created.
// "postCreateCommand": "cat /etc/os-release",
// Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "devcontainer"
"remoteUser": "vscode",
"overrideCommand": true
}
65 changes: 51 additions & 14 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,72 @@
root = true

# Unix-style newlines with a newline ending every file
# -----------------
# ------------------
# Source code
# -----------------
# ------------------
# All files
# Don't use tabs for indentation.
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
end_of_line = lf
indent_size = 4
# (Please don't specify an indent_size here; that has too many unintended consequences.)

# C++ source files
[*.{cpp,h,hpp}]
max_line_length = 120
insert_final_newline = true
max_line_length = 88
trim_trailing_whitespace = true

# CMake configuration files
[CMakeLists.txt,CMakeSettings.json,*.cmake{,.in}]
indent_size = 2
trim_trailing_whitespace = true

# Override for Makefile
[{Makefile, makefile, GNUmakefile}]
indent_style = tab
indent_size = 4

[*.{py,c,cpp,h,toml}]
indent_size = 4
# CI configuration files
[{.travis.yml,appveyor.yml,Vagrantfile}]
indent_size = 2
trim_trailing_whitespace = true

[*.{yml,yaml,json}]
# Markdown/reStructuredText documentation files
[*.{md,markdown,rst}]
indent_size = 2
trim_trailing_whitespace = true
max_line_length = 120

[*.{bat,cmd}]
# Windows shell scripts
[*.{bat,cmd,ps1}]
end_of_line = crlf
insert_final_newline = false
trim_trailing_whitespace = true

# Unix shell scripts
[*.sh]
end_of_line = lf
insert_final_newline = false
trim_trailing_whitespace = true

# Python scripts
[*.py]
indent_style = space

[*.{md,markdown,js.snap}]
trim_trailing_whitespace = false
max_line_length = 180
# Yaml files
[*.{yml,yaml,json,toml}]
indent_size = 2

# Visual studio property sheets
[*.{props,targets}]
indent_size = 2
indent_style = space

[*.html]
indent_style = space
indent_size = 2

[LICENSE]
insert_final_newline = false
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
docs/node_modules
coverage
app/templates
**/templates
17 changes: 17 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"root": true,
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {"project": ["./docs/tsconfig.json"]},
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/strict-boolean-expressions": [
2,
{
"allowString": false,
"allowNumber": false
}
]
},
"ignorePatterns": ["src/**/*.test.ts", "docs/**/*.test.ts"]
}
5 changes: 5 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[flake8]
# E203 is not PEP8 compliant and is not compatible with black:
# https://black.readthedocs.io/en/stable/the_black_code_style.html#slices
# W503 conflicts with black, too.
ignore = E203,W503
23 changes: 23 additions & 0 deletions .fossa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
# Generated by FOSSA CLI (https://github.com/fossas/fossa-cli)
# Visit https://fossa.com to learn more

version: 2
cli:
server: https://app.fossa.com
fetcher: custom
project: https://github.com/jmuelbert/jmbde-QT
analyze:
modules:
- name: jmbde
type: nuget
target: packaging/chocolatey/jmbde.nuspec
path: packaging/chocolatey
- name: docs
type: pip
target: docs
path: docs
- name: .
type: pip
target: .
path: .
134 changes: 133 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,133 @@
* text=auto eol=lf
.git* export-ignore
.hooks* export-ignore
.editorconfig export-ignore

# Custom attribute to mark sources as using our C code style.
[attr]our-c-style whitespace=tab-in-indent format.clang-format-6.0

# Custom attribute to mark sources as generated.
# Do not perform whitespace checks. Do not format.
[attr]generated whitespace=-tab-in-indent,-indent-with-non-tab -format.clang-format-6.0

* text=auto !eol svneol=native#text/plain
*.gitattributes text svneol=native#text/plain

# Scriptish formats
*.[1-9] eol=lf
*.bash eol=lf
*.sh eol=lf
*.sh.in eol=lf

*.bat eol=crlf
*.bat.in eol=crlf
*.sln eol=crlf
*.vcproj eol=crlf
*.vcxproj eol=crlf

*.bat text svneol=native#text/plain
*.bsh text svneol=native#text/x-beanshell
*.cgi text svneol=native#text/plain
*.cmd text svneol=native#text/plain
*.js text svneol=native#text/javascript
*.php text svneol=native#text/x-php
*.pl text svneol=native#text/x-perl
*.pm text svneol=native#text/x-perl
*.py text svneol=native#text/x-python
configure eol=lf svneol=LF#text/x-sh

# Image formats
*.bmp binary svneol=unset#image/bmp
*.gif binary svneol=unset#image/gif
*.ico binary svneol=unset#image/ico
*.jpeg binary svneol=unset#image/jpeg
*.jpg binary svneol=unset#image/jpeg
*.png binary svneol=unset#image/png
*.tif binary svneol=unset#image/tiff
*.tiff binary svneol=unset#image/tiff
*.svg text svneol=native#image/svg%2Bxml

# Data formats
*.pdf binary svneol=unset#application/pdf
*.avi binary svneol=unset#video/avi
*.doc binary svneol=unset#application/msword
*.dsp text svneol=crlf#text/plain
*.dsw text svneol=crlf#text/plain
*.eps binary svneol=unset#application/postscript
*.gz binary svneol=unset#application/gzip
*.mov binary svneol=unset#video/quicktime
*.mp3 binary svneol=unset#audio/mpeg
*.ppt binary svneol=unset#application/vnd.ms-powerpoint
*.ps binary svneol=unset#application/postscript
*.psd binary svneol=unset#application/photoshop
*.rdf binary svneol=unset#text/rdf
*.rss text svneol=unset#text/xml
*.rtf binary svneol=unset#text/rtf
*.sln text svneol=native#text/plain
*.swf binary svneol=unset#application/x-shockwave-flash
*.tgz binary svneol=unset#application/gzip
*.vcproj text svneol=native#text/xml
*.vcxproj text svneol=native#text/xml
*.vsprops text svneol=native#text/xml
*.wav binary svneol=unset#audio/wav
*.xls binary svneol=unset#application/vnd.ms-excel
*.zip binary svneol=unset#application/zip

# Text formats
.htaccess text svneol=native#text/plain
*.bbk text svneol=native#text/xml
*.cmake text svneol=native#text/plain
*.css text svneol=native#text/css
*.dtd text svneol=native#text/xml
*.htm text svneol=native#text/html
*.html text svneol=native#text/html
*.ini text svneol=native#text/plain
*.log text svneol=native#text/plain
*.mak text svneol=native#text/plain
*.qbk text svneol=native#text/plain
*.rst text svneol=native#text/plain conflict-marker-size=100
*.sql text svneol=native#text/x-sql
*.txt text svneol=native#text/plain
*.xhtml text svneol=native#text/xhtml%2Bxml
*.xml text svneol=native#text/xml
*.xsd text svneol=native#text/xml
*.xsl text svneol=native#text/xml
*.xslt text svneol=native#text/xml
*.xul text svneol=native#text/xul
*.yml text svneol=native#text/plain
boost-no-inspect text svneol=native#text/plain
CHANGES text svneol=native#text/plain
COPYING text svneol=native#text/plain
INSTALL text svneol=native#text/plain
Jamfile text svneol=native#text/plain
Jamroot text svneol=native#text/plain
Jamfile.v2 text svneol=native#text/plain
Jamrules text svneol=native#text/plain
Makefile* text svneol=native#text/plain
README text svneol=native#text/plain
TODO text svneol=native#text/plain

# Code formats
*.c text svneol=native#text/plain
*.cpp text svneol=native#text/plain
*.h text svneol=native#text/plain
*.hpp text svneol=native#text/plain
*.ipp text svneol=native#text/plain
*.tpp text svneol=native#text/plain
*.jam text svneol=native#text/plain
*.java text svneol=native#text/plain

# Source files
*.ui text
# Fix GitHub thinking our translations are TypeScript
*.ts linguist-language=XML

# Don't count the translation files in the language stats
translations/* linguist-vendored

.tag export-subst
.gitignore export-ignore
.gitattributes export-ignore
.mailmap export-ignore
.tx export-ignore
.LICENSE-HEADER export-ignore
.travis.yml export-ignore
1 change: 0 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@ pages/* . @jmuelbert
*.yml @jmuelbert
Rakefile @jmuelbert
Gemfile @jmuelbert

Loading

0 comments on commit 5b137d0

Please sign in to comment.