Skip to content

Commit

Permalink
Adopt ansible-language-server as a workspace
Browse files Browse the repository at this point in the history
Adopt ansible-language-server as a workspace
  • Loading branch information
ssbarnea authored Mar 15, 2024
2 parents c07edf4 + d4fe95d commit aeecbf9
Show file tree
Hide file tree
Showing 197 changed files with 31,950 additions and 1,483 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,6 @@ jobs:
SKIP_PODMAN: 1
SKIP_DOCKER: 1

- name: devel
# this job will install latest version of ansible-language-server
# instead of the one mentioned in lock file
task-name: devel
os: ubuntu-22.04

- name: test (macos)
task-name: test
os: macos-13-large
Expand Down
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ ci:
#- yarn-audit
#- yarn-audit-fix
- yarn-dedupe
exclude: >
(?x)^(
.config/requirements.in|
.*.svg|
packages/ansible-language-server/.*
)$
minimum_pre_commit_version: 2.9.0 # types_or
repos:
- repo: https://github.com/shellcheck-py/shellcheck-py
Expand Down
672 changes: 336 additions & 336 deletions .yarn/releases/yarn-4.0.2.cjs → .yarn/releases/yarn-4.1.1.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ supportedArchitectures:
- darwin
- win32

yarnPath: .yarn/releases/yarn-4.0.2.cjs
yarnPath: .yarn/releases/yarn-4.1.1.cjs
18 changes: 2 additions & 16 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,6 @@ tasks:
cmds:
- echo {{.TASK}}
- echo Done {{.VERSION}}!
devel:
desc: Updates the language server to latest from @main and run all tests
cmds:
- tools/clone-sibling.sh
- yarn link --relative ../ansible-language-server
- task: install
# - tools/dirty.sh
- >
bash -c 'git diff --quiet --exit-code || {
git add package.json yarn.lock &&
echo "Update ansible-language-server" |
git commit --file -
;}'
- tools/dirty.sh
- task: test
- echo "Tests passed, you can now run "task pr" to create a pull request."
clean:
desc: Clean up all files that not tracked by git
cmds:
Expand Down Expand Up @@ -70,6 +54,7 @@ tasks:
sources:
- package.json
- yarn.lock
- node_modules/**/*
interactive: true
build:
desc: Build the project
Expand All @@ -79,6 +64,7 @@ tasks:
# Workaround for https://github.com/redhat-developer/vscode-extension-tester/pull/460#issuecomment-1166315428
# - cd node_modules/vscode-extension-tester && npm update vsce
- yarn run clean
- yarn workspace @ansible/ansible-language-server compile
- yarn run compile
- npx tsc -p ./
sources:
Expand Down
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@
]
},
"dependencies": {
"@ansible/ansible-language-server": "^1.2.1",
"@ansible/ansible-language-server": "workspace:^",
"@redhat-developer/vscode-redhat-telemetry": "^0.7.1",
"@types/ini": "^4.1.0",
"@vscode/webview-ui-toolkit": "^1.4.0",
Expand Down Expand Up @@ -766,7 +766,7 @@
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"typescript": "^5.3.3",
"vscode-extension-tester": "^7.0.0",
"vscode-extension-tester": "^7.2.0",
"warnings-to-errors-webpack-plugin": "^2.3.0",
"webpack": "^5.90.0",
"webpack-cli": "^5.1.4",
Expand Down Expand Up @@ -830,9 +830,12 @@
"coverage-all": "TEST_LIGHTSPEED_URL='http://127.0.0.1:3000' yarn _coverage-all"
},
"version": "2.13.0",
"packageManager": "yarn@4.0.2",
"packageManager": "yarn@4.1.1",
"vsce": {
"dependencies": false,
"yarn": false
}
},
"workspaces": [
"packages/*"
]
}
8 changes: 8 additions & 0 deletions packages/ansible-language-server/.config/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM quay.io/ansible/creator-ee:v24.2.0 as DEFAULT_EE
# This file is updated by dependabot and used to determine not only which
# version of creator-ee we are supposed to use for testing execution
# environments but also to dynamically retrieve the same set of constraints
# for testing outside execution environments.
#
# Do not rename this file to Containerfile due to
# https://github.com/dependabot/dependabot-core/issues/6067
143 changes: 143 additions & 0 deletions packages/ansible-language-server/.config/dictionary.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
Ansible
CFLAGS
Containerfile
Dpkg
FQCN
FQCNs
HORIZONTALLINE
Jenkinsfile
OSTYPE
PYTHONBREAKPOINT
PYTHONHOME
SIGINT
SIGTERM
TLDR
Taskfile
WSLENV
YOLO
alphanums
ansible
ansiblefest
antsibull
apidoc
autocrlf
autofix
automount
autoupdate
backticks
cacheable
chronographer
cmds
codeclimate
codecov
commitish
commitlint
compat
customizer
deps
devel
direnv
dirhtml
dirmngr
docker
doctree
doctrees
dunamai
endfor
envdir
envrc
eqeqeq
githubcli
globbing
globby
hostvars
installdeps
jsdoc
keyrings
lcov
libyaml
lineinfile
linkcheck
linkify
loglevel
lssh
lxml
markdownlint
mkdocs
monospace
mycollection
mymodule
mynamespace
neovim
netcommon
nocolor
noheading
notest
notfound
npmjs
npmrc
nvim
parseable
patchback
pgrep
piptools
pkgcache
podman
preid
prettierrc
preversion
projectuser
pyparsing
pyup
ro
seealso
servernum
setuptools
showcontent
showformat
simplejson
stderr
stdout
suboption
suboptions
testhost
testorg
tls
toctree
todos
towerhost
towncrier
toxenv
tsbuildinfo
unshallow
userdata
uuidv4
venvs
vscodeignore
vsix
whereis
withserver
wordwrap
workdir
xvfb
yammlint

# names and usernames:
Ganesh
Maciążek
Nalawade
Tomasz
dbaeumer
esbenp
fredericgiquel
ganeshrn
hbenl
kimbernator
koalaman
mxschmitt
priyamsahoo
ssbarnea
timonwong
tomaciazek
webknjaz
yaegassy
2 changes: 2 additions & 0 deletions packages/ansible-language-server/.config/mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[mypy]
exclude = (out|test/fixtures)
29 changes: 29 additions & 0 deletions packages/ansible-language-server/.config/requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# testing and linting, do not put version constraints here as they
# conflict with the locked version taken from creator-ee requirements.txt
ansible-core
ansible-lint
# end-of dependencies for which we allow pre-releases
click
lxml
pip-tools
pre-commit
pyparsing
# vscode integration
flake8 # vscode integration
mypy # vscode integration
pylint # vscode integration
# docs
argparse-manpage
cairosvg
markdown-include
mkdocs
mkdocs-exclude
mkdocs-git-revision-date-localized-plugin
mkdocs-material
mkdocs-material-extensions
mkdocs-multirepo-plugin
mkdocstrings
mkdocstrings-python
pillow
pymdown-extensions
slugify
17 changes: 17 additions & 0 deletions packages/ansible-language-server/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true

# Set default charset
charset = utf-8

# Indent with 2 spaces for JavaScript & TypeScript
[*.{js,ts,json}]
indent_style = space
indent_size = 2
12 changes: 12 additions & 0 deletions packages/ansible-language-server/.envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
# Helps direnv 2.32.1+ auto activate virtualenv but we do not require
# developers to use it.
# https://github.com/direnv/direnv/wiki/Python

# This VIRTUAL_ENV value is also configured inside .vscode/settings.json:
export HOSTNAME="${HOSTNAME:-localhost}"
export VIRTUAL_ENV="${PWD}/out/venvs/${HOSTNAME}"

# Activate virtualenv (creates it if needed)
layout python
source_up 2>/dev/null || true
19 changes: 19 additions & 0 deletions packages/ansible-language-server/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "https://json.schemastore.org/eslintrc",
"env": {
"commonjs": true,
"es2021": true,
"node": true
},
"extends": ["plugin:@typescript-eslint/recommended", "prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"rules": {
"eqeqeq": ["error", "smart"],
"prefer-template": "warn"
}
}
8 changes: 8 additions & 0 deletions packages/ansible-language-server/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Set default behavior to automatically normalize line endings.
* text=auto

docs/changelog.md merge=union

*.lock text -diff
package.json text eol=lf
package-lock.json text -diff
2 changes: 2 additions & 0 deletions packages/ansible-language-server/.github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Global Owners
* @ansible/devtools
5 changes: 5 additions & 0 deletions packages/ansible-language-server/.github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Community Code of Conduct

Please see the official [Ansible Community Code of Conduct][coc].

[coc]: https://docs.ansible.com/ansible/latest/community/code_of_conduct.html
Loading

0 comments on commit aeecbf9

Please sign in to comment.